:root {
    /* Logo-sampled spectrum — saturated, structural */
    --arc-red:    #D9462D;
    --arc-orange: #F08A28;
    --arc-yellow: #F4C81F;
    --arc-green:  #2FA856;
    --arc-teal:   #1A9BAB;
    --arc-blue:   #2D5BA8;

    /* Surface */
    --bg:    #FBF7F0;
    --ink:   #1F1A14;
    --muted: #6B6256;
    --rule:  #E8E0D1;

    --arc-gradient: linear-gradient(
        90deg,
        var(--arc-red) 0%,
        var(--arc-orange) 20%,
        var(--arc-yellow) 40%,
        var(--arc-green) 60%,
        var(--arc-teal) 80%,
        var(--arc-blue) 100%
    );

    --font-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
    --font-body: "Manrope", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ===================== Home ===================== */

.page-home {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100dvh;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 5vw, 3rem);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.hero-logo {
    width: clamp(140px, 18vw, 220px);
    height: auto;
    display: block;
}

.hero-wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0;
    text-wrap: balance;
    font-variation-settings: "opsz" 96, "SOFT" 50;
}

.signature-arc {
    width: clamp(220px, 36vw, 380px);
    height: auto;
    display: block;
    margin-top: -0.75rem;
}

.signature-arc path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-arc 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

@keyframes draw-arc {
    to { stroke-dashoffset: 0; }
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.125rem, 2.1vw, 1.4rem);
    line-height: 1.35;
    color: var(--ink);
    max-width: 28ch;
    margin: 0.5rem 0 0;
    text-wrap: balance;
}

.hero-note {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 40ch;
    margin: 0;
    text-wrap: balance;
}

.hero-note a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.hero-note a:hover,
.hero-note a:focus-visible {
    color: var(--arc-orange);
}

.site-foot {
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
    position: relative;
}

.site-foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--arc-gradient);
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.foot-inner a {
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-inner a:hover,
.foot-inner a:focus-visible {
    color: var(--arc-orange);
    border-bottom-color: var(--arc-orange);
}

/* ===================== Legal ===================== */

.page-legal {
    min-height: 100dvh;
    position: relative;
}

.page-legal::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--arc-gradient);
    z-index: 10;
}

.legal-shell {
    max-width: 68ch;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem) 5rem;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
}

.legal-header-logo {
    width: 48px;
    height: 48px;
    display: block;
}

.legal-header-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
}

.legal-back {
    margin-left: auto;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.legal-back:hover,
.legal-back:focus-visible {
    color: var(--arc-blue);
    border-bottom-color: var(--arc-blue);
}

.page-legal h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
    line-height: 1.2;
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.005em;
}

.page-legal h1:first-of-type {
    margin-top: 0;
}

.page-legal dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin: 0;
}

.page-legal dt {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1.25rem;
}

.page-legal dt:first-of-type {
    margin-top: 0;
}

.page-legal dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
}

@media (min-width: 640px) {
    .page-legal dl {
        grid-template-columns: 12rem 1fr;
        gap: 0.85rem 1.75rem;
        align-items: baseline;
    }
    .page-legal dt {
        margin-top: 0;
    }
}
