* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f5f7f8;
    --text: #172026;
    --muted: #5f6b73;
    --border: #dfe4e7;
    --primary: #155e75;
    --primary-hover: #0e4d60;
    --header-background: rgba(255, 255, 255, 0.96);
    --shadow: 0 16px 45px rgba(13, 31, 39, 0.1);
    --content-width: 1160px;
    --hero-text: #172026;
    --hero-kicker-color: #0e4d60;
    --hero-button-background: #172026;
    --hero-button-text: #ffffff;
    --font-sans: "Atkinson Hyperlegible", "Noto Sans", "Segoe UI", Arial, sans-serif;
    --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --background: #000000;
    --surface: #000000;
    --surface-muted: #111111;
    --text: #f7f7f7;
    --muted: #b8b8b8;
    --border: #2c2c2c;
    --primary: #67c7e3;
    --primary-hover: #93d9ed;
    --header-background: rgba(0, 0, 0, 0.96);
    --shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    --hero-text: #f7f7f7;
    --hero-kicker-color: #cbedf7;
    --hero-button-background: #ffffff;
    --hero-button-text: #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    transition: background-color 180ms ease, color 180ms ease;
}

a {
    color: var(--primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    transform: translateY(-160%);
    background: var(--text);
    color: var(--background);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--header-background);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 78px;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--background);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-text {
    display: flex;
    white-space: nowrap;
    line-height: 1.15;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
}

.main-nav a {
    color: var(--text);
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--primary);
}

.theme-toggle,
.menu-toggle {
    display: inline-grid;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    width: 42px;
    height: 42px;
}

.icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.icon-sun {
    display: none;
}

html[data-theme="dark"] .icon-moon {
    display: none;
}

html[data-theme="dark"] .icon-sun {
    display: block;
}

.menu-toggle {
    display: none;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    background: var(--background);
}

.hero-inner {
    display: grid;
    min-height: clamp(480px, 60vh, 600px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 1.2rem;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-photo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1595 / 1457;
}

.hero-photo {
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-mask-image: radial-gradient(ellipse 115% 115% at center, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 115% 115% at center, #000 72%, transparent 100%);
}

.hero-content {
    order: -1;
    padding-block: 4rem;
    color: var(--hero-text);
}

.hero-content h1 {
    max-width: 620px;
    margin: 0 0 1.2rem;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.8vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--hero-kicker-color);
}

.hero blockquote {
    max-width: 620px;
    margin: 0 0 2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero cite {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.82;
}

.button {
    display: inline-flex;
    padding: 0.82rem 1.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--hero-button-background);
    color: var(--hero-button-text);
    font-weight: 750;
    text-decoration: none;
    text-shadow: none;
}

.welcome-section,
.news-section,
.listing-page,
.content-page {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.welcome-section,
.news-section {
    padding-block: clamp(1rem, 2vw, 1.75rem);
}

.welcome-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    isolation: isolate;
}

.news-section {
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
    padding-bottom: clamp(1.4rem, 2.5vw, 2.1rem);
}

.welcome-section::before {
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    content: "";
    background: var(--surface-muted);
}

.newcomers-page {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.newcomers-header {
    max-width: 850px;
    margin: 0 auto 3rem;
    text-align: center;
}

.newcomers-kicker {
    margin: 0 0 0.35rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newcomers-header h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.8vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.newcomers-header > p:last-child {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.newcomers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.newcomers-card {
    min-height: 100%;
    padding: clamp(1.35rem, 2.5vw, 1.8rem);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
}

.newcomers-card h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.newcomers-card p {
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.section-heading h2,
.page-header h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.8vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.news-section .section-heading-row {
    margin-bottom: 1.2rem;
}

.news-section .section-heading h2 {
    line-height: 1.1;
}

.welcome-copy {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding-inline: clamp(0.75rem, 1.5vw, 1.25rem);
    color: var(--muted);
    font-size: 1.14rem;
    text-align: center;
}

.welcome-section .section-heading h2,
.welcome-copy p {
    white-space: normal;
}

.welcome-copy p {
    flex-basis: 100%;
    margin: 0;
}

.welcome-copy .welcome-button {
    margin-inline: auto;
}

.welcome-button {
    font-size: 1rem;
    line-height: 1.65;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.article-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.article-card-image:hover img {
    transform: scale(1.04);
}

.article-card-image--contain {
    background: var(--surface-muted);
}

.article-card-image--contain img {
    object-fit: contain;
}

.article-card-body {
    display: flex;
    flex: 1;
    padding: 1.7rem;
    flex-direction: column;
}

.article-card time,
.page-header time {
    color: var(--muted);
    font-size: 0.92rem;
}

.article-card h2 {
    margin: 0.65rem 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.28;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.article-card p {
    color: var(--muted);
}

.article-card .text-link {
    margin-top: auto;
}

.article-card-read-more {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.text-link {
    font-weight: 750;
}

.news-all-link {
    display: inline-block;
    margin-top: 1.4rem;
    text-decoration: none;
}

.quick-links {
    background: var(--surface-muted);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: clamp(1.25rem, 2vw, 1.75rem);
    gap: 1rem;
}

.quick-links-grid a {
    display: grid;
    padding: 1.4rem;
    border-left: 3px solid var(--primary);
    color: var(--text);
    text-decoration: none;
}

.quick-links-grid span {
    color: var(--muted);
    font-size: 0.95rem;
}

.quick-links-grid strong {
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

.page-header {
    max-width: 850px;
    margin: 0 auto 3rem;
    text-align: center;
}

.page-header .lead {
    color: var(--muted);
    font-size: 1.18rem;
}

.content-body {
    max-width: 780px;
    margin-inline: auto;
}

.content-body h2 {
    margin-top: 2.4rem;
    font-family: var(--font-serif);
    font-size: 1.8rem;
}

.content-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.3rem;
    border-left: 4px solid var(--primary);
    background: var(--surface-muted);
}

.empty-state {
    max-width: 780px;
    margin-inline: auto;
}

.pagination {
    display: flex;
    margin-top: 3rem;
    padding: 0;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.page-link {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr auto auto;
    padding-block: 2rem;
    align-items: center;
    gap: 1.5rem;
    color: var(--muted);
    font-size: 0.87rem;
}

.footer-inner nav {
    display: flex;
    gap: 1rem;
}

.footer-inner a {
    color: var(--text);
}

.powered-by {
    text-align: right;
}

@media (max-width: 920px) {
    .header-inner {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        padding: 1.2rem;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        background: var(--background);
    }

    .main-nav.is-open {
        display: flex;
    }

    .card-grid,
    .newcomers-grid,
    .quick-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .powered-by {
        text-align: left;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
        gap: 2rem;
    }

}

@media (max-width: 640px) {
    .hero {
        padding-block: 3rem;
    }

    .hero-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-photo {
        background-position: 57% center;
    }

    .welcome-section,
    .card-grid,
    .newcomers-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        flex-direction: column;
    }

    .welcome-copy {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .welcome-section .section-heading h2,
    .welcome-copy p {
        white-space: normal;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
