/* petart.ai "Coming Soon" landing page, from the design in
   Downloads/index.html with the email signup taken out for now. The
   hedgehog portrait's spines and ruff are drawn by site.js. Light and dark
   follow the visitor's system setting. */
:root {
    --bg: #f3f2f2;
    --surface: #eae9e9;
    --text: #201f1d;
    --muted: color-mix(in srgb, #201f1d 72%, transparent);
    --accent: #b68235;
    --accent-strong: #7d5411;
    --divider: color-mix(in srgb, #201f1d 16%, transparent);
    --canvas-a: #efe6d6;
    --canvas-b: #e2d3b8;
    --ink: #3a2f22;
    --spine: #6b5638;
    --spine-tip: #4a3a24;
    --face: #e9d2ae;
    --ruff: #fbf7ef;
    --ruff-line: #c9bba2;
    --shadow: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
    --heading: "Cormorant Garamond", Georgia, serif;
    --body: "Lora", Georgia, serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1b1916;
        --surface: #26231f;
        --text: #efe9df;
        --muted: color-mix(in srgb, #efe9df 72%, transparent);
        --accent: #d6a35a;
        --accent-strong: #e9bd7c;
        --divider: color-mix(in srgb, #efe9df 16%, transparent);
        --canvas-a: #3a3022;
        --canvas-b: #2a2219;
        --ink: #f1e3c4;
        --spine: #a88a5c;
        --spine-tip: #7a6240;
        --face: #c9ad84;
        --ruff: #e9e1d1;
        --ruff-line: #a8997f;
        --shadow: 0 12px 32px rgba(0, 0, 0, .5);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4.5vw, 56px);
}

/* Nav */
header { border-bottom: 1px solid var(--divider); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand {
    font-family: var(--heading);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -.01em;
    text-decoration: none;
    color: var(--text);
}
.brand span { color: var(--accent); }

.nav .pill {
    margin-left: auto;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 4px 12px;
}

/* Hero */
main { flex: 1; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    padding-block: clamp(40px, 7vw, 88px);
}

.kicker {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--accent); }

h1 {
    font-family: var(--heading);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 80px);
    line-height: .98;
    letter-spacing: -.015em;
    margin: 0;
    text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent-strong); }

.legend-line {
    font-family: var(--heading);
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.25;
    margin: 28px 0 0;
    color: var(--muted);
    min-height: 2.5em;
}
.legend-line strong {
    font-weight: 500;
    color: var(--text);
    display: inline-block;
    transition: opacity .35s ease, transform .35s ease;
}
.legend-line strong.out { opacity: 0; transform: translateY(6px); }

.lede { max-width: 46ch; margin: 18px 0 0; color: var(--muted); }

/* Portrait */
figure { margin: 0; }

.frame {
    position: relative;
    padding: 14px;
    background: linear-gradient(135deg, #d9b46f, #9c6f2c 40%, #e6c88a 60%, #8a5f22);
    box-shadow: var(--shadow);
    border-radius: 2px;
}
.frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 240, 210, .55);
    pointer-events: none;
}

.canvas {
    position: relative;
    aspect-ratio: 4 / 5;
    background: radial-gradient(ellipse at 50% 38%, var(--canvas-a), var(--canvas-b) 75%);
    outline: 1px solid rgba(0, 0, 0, .25);
    overflow: hidden;
}
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.plaque {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    margin-top: 16px;
    font-size: 13px;
}
.plaque .no { color: var(--accent-strong); font-feature-settings: "tnum" 1; }
.plaque strong {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity .35s;
}
.plaque strong.out { opacity: 0; }

/* How it will work */
.steps {
    border-top: 1px solid var(--divider);
    padding-block: clamp(40px, 6vw, 64px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
}
.steps h2 {
    grid-column: 1 / -1;
    font-family: var(--heading);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 36px);
    margin: 0 0 -8px;
}
.step { border-top: 1px solid var(--accent); padding-top: 18px; }
.step .n { font-family: var(--heading); font-size: 40px; line-height: 1; color: var(--accent-strong); }
.step h3 { font-family: var(--heading); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 12px 0 0; }
.step p { font-size: 15px; line-height: 1.6; margin: 6px 0 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--divider); }
.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    figure { max-width: 420px; width: 100%; margin-inline: auto; order: -1; }
    .steps { grid-template-columns: 1fr; }
    .steps h2 { margin-bottom: 0; }
}

@media (max-width: 420px) {
    .nav .pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .legend-line strong, .plaque strong { transition: none; }
}
