* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #24213d;
    --accent: #5142a0;
}

body {
    margin: 0;
    font: 16px/1.85 system-ui, sans-serif;
    color: var(--ink);
    background: #f7f6f3;
}

a {
    color: #5142a0;
    text-underline-offset: 4px;
}

.header, main, footer {
    max-width: 1180px;
    margin: auto;
    padding: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #d8d5e4;
}

.brand {
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    background: #25213e;
    color: white;
    padding: 48px;
    border-radius: 6px 48px 6px 6px;
    align-items: center;
}

h1 {
    font-size: clamp(30px, 4vw, 49px);
    line-height: 1.25;
    margin: 12px 0 22px;
}

h2 {
    font-size: 27px;
    line-height: 1.4;
}

h3 {
    line-height: 1.5;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
}

.hero .eyebrow {
    color: #8fe5d7;
}

.cta {
    display: inline-block;
    padding: 12px 22px;
    background: #a9eadb;
    color: #173c39;
    border-radius: 4px;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero aside {
    margin: 0;
}

.topics, .check {
    margin-top: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.topic {
    background: white;
    border: 1px solid #dedbe8;
    padding: 18px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: start;
}

.topic p {
    font-size: 15px;
}

.check, .article {
    background: white;
    padding: clamp(20px, 4vw, 45px);
    border-top: 4px solid #6d5ed1;
}

.article {
    max-width: 850px;
    margin: auto;
}

.article img {
    width: min(100%, 520px);
}

footer {
    border-top: 1px solid #d8d5e4;
    font-size: 14px;
}


/* Homepage and accessibility */
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 12px; }
a:focus-visible { outline: 3px solid #008477; outline-offset: 4px; }
nav a[aria-current="page"] { font-weight: 800; text-decoration-thickness: 3px; }
.hero-visual { margin: 0; min-width: 0; }
.hero-visual img { width: 100%; border-radius: 12px; }
.hero-visual figcaption { color: #d6e9e6; font-size: 14px; margin-top: 12px; }
.topic { grid-template-columns: minmax(0, 1fr); padding: 20px; }
.topic img { width: 100%; aspect-ratio: 520 / 350; object-fit: contain; background: #f4f2fa; }
.topic h3 { margin: 8px 0; }
.topic p { margin: 0; }
.hero > *, .topic > * { min-width: 0; }
body { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .header { align-items: flex-start; flex-direction: column; }
    .hero, .grid { grid-template-columns: 1fr; }
    .hero { padding: 24px; border-radius: 8px 28px 8px 8px; }
    main { padding: 14px; }
    nav { gap: 12px 18px; }
}
