:root {
    color-scheme: light;

    /* Apple design tokens — .designs/apple/DESIGN.md */
    --canvas: #ffffff;
    --canvas-parchment: #f5f5f7;
    --surface-pearl: #fafafc;
    --surface-tile-1: #272729;
    --surface-tile-2: #2a2a2c;
    --surface-tile-3: #252527;
    --surface-black: #000000;
    --surface-chip-translucent: rgba(210, 210, 215, 0.64);

    --ink: #1d1d1f;
    --ink-muted-80: #333333;
    --ink-muted-48: #7a7a7a;
    --body-on-dark: #ffffff;
    --body-muted: #cccccc;

    --primary: #0066cc;
    --primary-focus: #0071e3;
    --primary-on-dark: #2997ff;
    --on-primary: #ffffff;

    --hairline: #e0e0e0;
    --divider-soft: #f0f0f0;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 18px;
    --radius-pill: 9999px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 17px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 80px;

    /* The one product shadow in the system */
    --shadow-product: 3px 5px 30px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Global nav ---------- */

.global-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 44px;
    background: var(--surface-black);
}

.global-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.global-nav-brand {
    color: var(--body-on-dark);
    font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    text-decoration: none;
}

.global-nav-links {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.global-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--body-on-dark);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.global-nav-links a:hover {
    color: var(--body-muted);
}

/* ---------- Tiles (full-bleed, the color change is the divider) ---------- */

.tile {
    width: 100%;
    padding: var(--space-section) var(--space-lg);
}

.tile-inner {
    max-width: 980px;
    margin: 0 auto;
}

.tile-light {
    background: var(--canvas);
    color: var(--ink);
}

.tile-parchment {
    background: var(--canvas-parchment);
    color: var(--ink);
}

.tile-dark {
    background: var(--surface-tile-1);
    color: var(--body-on-dark);
}

.tile-dark-2 {
    background: var(--surface-tile-2);
    color: var(--body-on-dark);
}

.tile-dark-3 {
    background: var(--surface-tile-3);
    color: var(--body-on-dark);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
    font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
    margin: 0;
}

.eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
}

.tile-dark .eyebrow,
.tile-dark-2 .eyebrow,
.tile-dark-3 .eyebrow {
    color: var(--primary-on-dark);
}

.hero-display {
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
}

.display-lg {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}

.lead {
    margin: var(--space-xs) 0 0;
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0.196px;
}

.lead-airy {
    margin: var(--space-xs) 0 0;
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0;
}

.tile-dark .lead,
.tile-dark-2 .lead,
.tile-dark-3 .lead,
.tile-dark .lead-airy,
.tile-dark-2 .lead-airy,
.tile-dark-3 .lead-airy {
    color: var(--body-muted);
}

/* ---------- Buttons & links ---------- */

.button {
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--on-primary);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.button:active {
    transform: scale(0.95);
}

.button-secondary {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.button-secondary:hover {
    background: rgba(0, 102, 204, 0.06);
}

.button-dark {
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--body-on-dark);
    font-size: 14px;
    letter-spacing: -0.224px;
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-focus);
}

.tile-dark a,
.tile-dark-2 a,
.tile-dark-3 a {
    color: var(--primary-on-dark);
}

.tile-dark a:hover,
.tile-dark-2 a:hover,
.tile-dark-3 a:hover {
    color: #6bb4ff;
}

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

.button:focus-visible {
    outline-color: var(--primary-focus);
}

/* ---------- Utility cards ---------- */

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

.card {
    padding: var(--space-lg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
}

.card .eyebrow {
    color: var(--ink-muted-48);
}

.card h2 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
    margin: 0 0 var(--space-sm);
}

.card p {
    margin: 0 0 var(--space-md);
    color: var(--ink-muted-80);
}

address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 var(--space-md);
    font-style: normal;
    color: var(--ink-muted-80);
    font-size: 14px;
    letter-spacing: -0.224px;
    line-height: 1.43;
}

address strong {
    color: var(--ink);
    font-size: 17px;
    letter-spacing: -0.374px;
}

.contact-details {
    gap: 6px;
    margin: 0;
}

/* ---------- Link lists (social + resources) ---------- */

.link-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 480px;
}

.link-list a {
    display: block;
    padding: 6px 0;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.tile-dark .link-list a:hover,
.tile-dark-2 .link-list a:hover,
.tile-dark-3 .link-list a:hover {
    color: var(--primary-on-dark);
}

.tile-light .link-list a:hover,
.tile-parchment .link-list a:hover {
    color: var(--primary-focus);
}

.link-list span {
    display: block;
    color: var(--ink-muted-80);
    font-size: 14px;
    letter-spacing: -0.224px;
}

.tile-dark .link-list span,
.tile-dark-2 .link-list span,
.tile-dark-3 .link-list span {
    color: var(--body-muted);
}

.link-list-numbered {
    counter-reset: resource;
}

.link-list-numbered li {
    position: relative;
    padding-left: 28px;
}

.link-list-numbered li::before {
    content: counter(resource);
    counter-increment: resource;
    position: absolute;
    left: 4px;
    top: var(--space-xs);
    color: var(--ink-muted-48);
    font-size: 12px;
    letter-spacing: -0.12px;
}

/* ---------- Section layout inside a tile ---------- */

.section-head {
    max-width: 640px;
    margin: 0 0 var(--space-xl);
}

.section-head p {
    margin: var(--space-xs) 0 0;
    color: var(--ink-muted-80);
}

.tile-dark .section-head p,
.tile-dark-2 .section-head p,
.tile-dark-3 .section-head p {
    color: var(--body-muted);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* ---------- Footer ---------- */

.footer {
    padding: 64px var(--space-lg);
    background: var(--canvas-parchment);
    color: var(--ink-muted-80);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

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

.footer h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    margin: 0 0 var(--space-xs);
}

.footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: -0.12px;
    line-height: 1.6;
    color: var(--ink-muted-48);
}

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 833px) {
    .global-nav-links {
        gap: 20px;
    }
}

@media (max-width: 734px) {
    .tile {
        padding: var(--space-xxl) var(--space-md);
    }

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

    .global-nav-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .global-nav-brand {
        font-size: 14px;
    }

    .global-nav-links a {
        font-size: 11px;
    }
}

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

    a,
    .button {
        transition: none;
    }

    .button:active {
        transform: none;
    }
}
