:root {
    --ink: #182434;
    --ink-muted: #526172;
    --paper: #fbf8f1;
    --paper-deep: #eee7da;
    --ocean: #0c5065;
    --ocean-dark: #063544;
    --coral: #d35d45;
    --gold: #d7a943;
    --line: #d4cec2;
    --focus: #8f250f;
    --serif: Georgia, Cambria, "Times New Roman", Times, serif;
    --sans: "Segoe UI", Calibri, Candara, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }

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

.page-shell {
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-180%);
    padding: 0.65rem 0.9rem;
    color: #fff;
    background: var(--ocean-dark);
    border-radius: 0.25rem;
}

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

.site-notice {
    margin: 0;
    padding: 0.45rem 1rem;
    color: #fff;
    background: var(--ocean-dark);
    text-align: center;
    font-size: 0.84rem;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(251, 248, 241, 0.96);
}

.header-content,
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-content { min-height: 6.25rem; }

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

.brand-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: #fff;
    background: var(--coral);
    border: 3px solid var(--ink);
    border-radius: 50% 42% 50% 42%;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-5deg);
}

.brand-name,
.brand-tagline { display: block; }

.brand-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.brand-tagline {
    margin-top: 0.22rem;
    color: var(--ink-muted);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.section-nav a {
    color: var(--ocean-dark);
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35rem;
}

.section-nav a[aria-current="location"] { color: var(--coral); }

.hero {
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0;
    background:
        radial-gradient(circle at 85% 8%, rgba(215, 169, 67, 0.32), transparent 20rem),
        linear-gradient(135deg, #faf6ea 0%, #e8f0ec 50%, #d7e5e3 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-grid > * { min-width: 0; }

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--ocean);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.1; }

h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.3rem);
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

h1 span { color: var(--coral); font-style: italic; }

.hero-copy {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    color: #354759;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.6rem 1rem;
    border: 2px solid var(--ocean-dark);
    border-radius: 0.25rem;
    font-weight: 800;
    text-decoration: none;
}

.button-primary { color: #fff; background: var(--ocean-dark); }
.button-secondary { color: var(--ocean-dark); background: transparent; }
.button:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.orientation-card {
    padding: 1.5rem;
    color: #f8f7f0;
    background: var(--ocean-dark);
    border: 1px solid #2c6878;
    border-radius: 0.5rem;
    box-shadow: 0.8rem 0.8rem 0 var(--gold);
}

.card-kicker { color: #f5d57e; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.orientation-card > p { margin: 0.8rem 0 1.5rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
.orientation-card dl { margin: 0; }
.orientation-card dl div { padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.orientation-card dl div + div { margin-top: 0.85rem; }
.orientation-card dt { color: #f5d57e; font-weight: 800; }
.orientation-card dd { margin: 0.15rem 0 0; color: #d8e5e6; font-size: 0.9rem; }

.knowledge-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.knowledge-section-light { background: var(--paper); }
.knowledge-section-dark { color: #f6f1e7; background: #182434; }
.knowledge-section-dark .eyebrow { color: #f5d57e; }
.knowledge-section-dark .section-heading p:not(.eyebrow) { color: #c7d2d4; }

.section-heading { max-width: 44rem; }
.section-heading h2,
.invitation h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.7rem); letter-spacing: -0.045em; }
.section-heading p:not(.eyebrow) { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.1rem; }

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.topic-card { min-height: 16rem; padding: 1.5rem; border-radius: 0.35rem; }
.topic-card-warm { background: #efd9bf; border-top: 0.5rem solid var(--coral); }
.topic-card-slate { color: #f8f7f0; background: #48626d; border-top: 0.5rem solid var(--gold); }
.topic-card-night { color: #f8f7f0; background: #223d4b; border: 1px solid #456876; }
.topic-number { margin: 0; color: var(--coral); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.topic-card-slate .topic-number, .topic-card-night .topic-number { color: #f5d57e; }
.topic-card h3 { margin: 2.4rem 0 0; font-size: 1.9rem; }
.topic-card h3 + p { margin-top: 0.65rem; }
.topic-note { margin: 1.15rem 0 0; font-size: 0.84rem; font-style: italic; }

.invitation { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--paper-deep); }
.invitation-content { max-width: 52rem; }
.invitation p:not(.eyebrow) { max-width: 43rem; margin: 1rem 0 0; color: var(--ink-muted); font-size: 1.1rem; }

.site-footer { padding: 2rem 0; color: #d9e2df; background: #101a27; font-size: 0.9rem; }
.site-footer p { max-width: 40rem; margin: 0; }
.site-footer p + p { color: #9eafb4; font-size: 0.8rem; text-align: right; }

.theme-nightfall { --paper: #eef2ee; --paper-deep: #dae2df; --ocean: #203f57; --ocean-dark: #162c3d; --coral: #a53f53; }

@media (max-width: 760px) {
    .page-shell { width: min(100% - 2rem, 1120px); }
    .header-content, .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1.2rem; }
    .header-content { min-height: auto; }
    .section-nav { justify-content: flex-start; }
    .hero-grid, .topic-grid { grid-template-columns: 1fr; }
    h1 { font-size: clamp(2.3rem, 12vw, 3.25rem); }
    .hero-copy { font-size: 1.05rem; }
    .hero-actions .button { flex: 1 1 100%; justify-content: center; }
    .orientation-card { max-width: 32rem; box-shadow: 0.55rem 0.55rem 0 var(--gold); }
    .site-footer p + p { margin-top: 0.8rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
