/* Shared styles for every page: fonts, design tokens, reset, logo, footer. */

/* Fonts are self-hosted (latin subset) so the site makes no request to Google. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

/* Design tokens, taken from the Claude Design handoff (README, "Design Tokens"). */
:root {
    --ink: #1A1A1E;
    --paper: #F7F5F3;
    --white: #FFFFFF;
    --coral: #FF5A45;
    --coral-dark: #E8402C;
    --coral-light: #FF7A5A;
    --coral-text: #C0301F;
    --coral-tint: #FFEDE9;
    --gold: #D4AF37;
    --kiwi: #8DBF3A;
    --success: #22B573;
    --error: #C2410C;
    --line: #E6E1DC;
    --line-soft: #F0EDE9;
    --text-2: #4A4744;
    --text-3: #6E6A66;
    --text-4: #8A8580;
    --placeholder: #A39D97;
    --bubble-other: #DDD7D1;
    --font-serif: "Fraunces", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, Menlo, monospace;
    --radius: 15px;
    --container: 1200px;
    --ease-out: cubic-bezier(.22, .8, .25, 1);
}

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

html {
    scroll-behavior: smooth;
    /* Keep anchor targets clear of the pinned header. */
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--coral);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
}

/* Visible keyboard focus everywhere (the design only shows hover states). */
:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Word mark: "kiwi" + "zz" in coral (footer, legal pages). */
.wordmark {
    font: 900 24px/1 var(--font-serif);
    letter-spacing: -.8px;
}

.wordmark span {
    color: var(--coral);
}

/* Footer, shared by the home page and the legal pages. */
.site-footer {
    padding: 40px 24px 48px;
    border-top: 1px solid var(--line);
}

.site-footer .wordmark,
.site-footer .wordmark:hover {
    color: var(--ink);
    text-decoration: none;
}

.site-footer .wordmark span {
    color: var(--coral);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__copy {
    font: 500 13.5px/1 var(--font-sans);
    color: var(--text-3);
}

.site-footer__nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    flex-wrap: wrap;
}

.site-footer__nav a {
    font: 500 13.5px/1 var(--font-sans);
    color: var(--text-2);
    /* Legal pages underline links in the text, never in the footer. */
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--coral);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
