:root {
    color-scheme: light dark;
    --ink: #2f3a45;
    --ink-soft: #52606d;
    --paper: #fffdf7;
    --paper-deep: #f5f0e4;
    --line: rgba(47, 58, 69, 0.14);
    --card: rgba(255, 255, 255, 0.78);
    --shadow: 0 18px 50px rgba(47, 58, 69, 0.09);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 85% 5%, rgba(47, 58, 69, 0.09), transparent 27rem),
        linear-gradient(180deg, var(--paper), var(--paper-deep));
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 24px;
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(255, 253, 247, 0.82);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 750;
    gap: 10px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    border-radius: 11px;
    display: block;
    height: 38px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(47, 58, 69, 0.16);
    width: 38px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

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

.hero {
    padding: 104px 0 80px;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(3.1rem, 8vw, 6.6rem);
    margin: 0;
    max-width: 900px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 18px;
}

h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.lede {
    color: var(--ink-soft);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    margin: 28px 0 0;
    max-width: 700px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    border: 1px solid var(--ink);
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    padding: 12px 20px;
    text-decoration: none;
}

.button.primary {
    background: var(--ink);
    color: var(--paper);
}

.button.secondary {
    background: transparent;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.card p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.section {
    padding: 36px 0 76px;
}

.section-copy {
    color: var(--ink-soft);
    max-width: 720px;
}

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

.contact-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.email-link {
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-note {
    border-top: 1px solid var(--line);
    margin-bottom: 90px;
    max-width: 820px;
    padding-top: 36px;
}

.contact-note p {
    color: var(--ink-soft);
}

.page-header {
    padding: 72px 0 38px;
}

.page-header h1 {
    font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-header .lede {
    margin-top: 20px;
}

.document {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
    padding-bottom: 90px;
}

.document section,
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
}

.document p:last-child,
.document ul:last-child {
    margin-bottom: 0;
}

.document li + li {
    margin-top: 8px;
}

.notice {
    border-left: 4px solid var(--ink);
}

.faq {
    display: grid;
    gap: 14px;
    max-width: 820px;
    padding-bottom: 90px;
}

.faq details {
    padding: 0;
}

.faq summary {
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    list-style: none;
    padding: 22px 56px 22px 24px;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    position: absolute;
    right: 24px;
    top: 16px;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p,
.faq details ol {
    color: var(--ink-soft);
    margin: 0;
    padding: 0 24px 24px;
}

.faq details ol {
    padding-left: 44px;
}

.contact-box {
    background: var(--ink);
    border-radius: var(--radius);
    color: var(--paper);
    margin-bottom: 90px;
    padding: 34px;
}

.contact-box p {
    color: rgba(255, 253, 247, 0.78);
}

.contact-box a {
    font-weight: 750;
}

.meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0 44px;
}

.footer-row {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 18px;
}

/* Tablet + phone layout */
@media (max-width: 760px) {
    .shell {
        padding-left: 28px;
        padding-right: 28px;
    }

    /*
      This is the important part:
      the header gets extra side spacing on iPhone.
    */
    .site-header .shell {
        padding-left: 34px;
        padding-right: 34px;
    }

    .hero {
        padding-top: 72px;
        padding-bottom: 56px;
    }

    h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .lede {
        font-size: 1.05rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .document section,
    .faq details,
    .contact-box {
        padding: 24px;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        min-height: auto;
        padding: 18px 0;
    }

    .brand {
        width: 100%;
    }

    .nav-links {
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
        width: 100%;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* Smaller iPhones */
@media (max-width: 390px) {
    .shell {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-header .shell {
        padding-left: 30px;
        padding-right: 30px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .actions {
        width: 100%;
    }

    h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .card,
    .document section,
    .faq details,
    .contact-box {
        padding: 22px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef1f3;
        --ink-soft: #b4bec7;
        --paper: #182027;
        --paper-deep: #10161b;
        --line: rgba(238, 241, 243, 0.13);
        --card: rgba(35, 45, 54, 0.78);
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    }

    .site-header {
        background: rgba(24, 32, 39, 0.84);
    }

    .button.primary,
    .contact-box {
        background: #eef1f3;
        color: #2f3a45;
    }

    .button {
        border-color: #eef1f3;
    }

    .button.primary {
        color: #182027;
    }

    .contact-box p {
        color: rgba(47, 58, 69, 0.76);
    }
}
