/* SkyPanda, on paper.
 *
 * The app is a 70s screen-printed idiom: flat colour, ink hairlines, warm
 * paper, and no blur anywhere. The palette below is lifted from Sunset
 * Boulevard in `SkyPandaShared/Theme.swift` rather than eyeballed, so the site
 * and the app are the same cream and the same ink.
 *
 * Modern here means the layout, not the surface. Full-bleed bands of alternating
 * colour, a hard type scale with real jumps in it, asymmetric hero, overlapping
 * device art and generous air. What it does not mean is soft shadows, glass or
 * gradients, all of which would quietly turn this into a different brand.
 *
 * Two faces. Georgia carries every heading and every sentence, because it is
 * what the app sets its words in. A tight uppercase system sans carries the
 * eyebrows, nav and labels: a hundred-year-old serif next to plain modern
 * grotesque lettering is an editorial pairing rather than a compromise, and it
 * is what keeps the page from reading as a pastiche.
 */

:root {
    --paper: #F2E8D5;
    --paper-card: #FAF3E3;
    --paper-sunken: #EADCC2;
    --paper-light: #FDF8EC;
    --ink: #1F1A14;
    --ink-soft: #5B5044;
    --ink-faint: #716658;
    --ink-line: #3A2E22;

    --burnt-orange: #C85A1E;
    --rust: #A63D1C;
    --mustard: #E3A33C;
    --amber: #E8892B;
    --deep-teal: #3F6469;
    --dusty-teal: #4A7C7C;
    --sage: #7D9576;
    --sky: #A9C7D3;

    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --edge: 1px solid var(--ink-line);
    --measure: 68rem;
    --prose: 36rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    /* The print grain the app lays over its paper, as one tiled data URI.
     * Felt at arm's length, invisible at reading distance. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

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

/* `hidden` is a presentation hint and loses to any `display` an author sets —
 * and this stylesheet sets `display: block` on every image. So the hero showed
 * the screenshot and the live panel side by side the moment one was swapped for
 * the other, which is a very quiet way for an attribute to stop meaning what it
 * says. */
[hidden] { display: none !important; }

a { color: var(--rust); text-underline-offset: 2px; }
a:hover { color: var(--burnt-orange); }

/* ---- Rhythm ------------------------------------------------------------ */

.band { padding: 5.5rem 1.5rem; }
.band > .inner { max-width: var(--measure); margin: 0 auto; }

.band.teal {
    background: var(--deep-teal);
    color: var(--paper-card);
    border-top: var(--edge);
    border-bottom: var(--edge);
}
.band.teal h2, .band.teal h3, .band.teal .eyebrow { color: var(--paper-card); }
.band.teal p { color: #DCE7E4; }

.band.sunken { background: var(--paper-sunken); border-top: var(--edge); border-bottom: var(--edge); }

/* ---- Type -------------------------------------------------------------- */

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rust);
    margin: 0 0 0.9rem;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 1rem; }

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1.1rem; }

.lede {
    font-size: clamp(1.12rem, 2.1vw, 1.35rem);
    color: var(--ink-soft);
    max-width: var(--prose);
}

.section-head { max-width: var(--prose); margin-bottom: 3rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ---- The masthead rule ------------------------------------------------- */

.stripes { display: flex; height: 9px; border: var(--edge); }
.stripes span { flex: 1; }
.stripes span:nth-child(1) { background: var(--deep-teal); }
.stripes span:nth-child(2) { background: var(--mustard); }
.stripes span:nth-child(3) { background: var(--amber); }
.stripes span:nth-child(4) { background: var(--rust); }

.rule-short { width: 84px; margin-bottom: 1.5rem; }

/* ---- Navigation -------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: var(--edge);
}
.nav .inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* The app's own masthead, not a reconstruction of it.
 *
 * `SkyPandaHeaderArt` is one raster: wordmark, rainbow and badge together.
 * The app carries it as a single asset for a reason recorded in STATUS, that
 * composing the three as separate pieces never got the stripes to meet the
 * badge correctly, and that is just as true in CSS. So the site opens with
 * exactly the image the app opens with. */
.nav .mark {
    display: block;
    margin-right: auto;
    line-height: 0;
    flex: 0 1 auto;
    min-width: 0;
}
.nav .mark img {
    height: 54px;
    width: auto;
    /* Never taller than the row, and free to shrink on a narrow phone rather
     * than pushing the button off the edge. */
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 30rem) {
    .nav .mark img { height: 42px; }
    .nav .inner { gap: 0.75rem; padding-left: 1rem; padding-right: 1rem; }
    .nav .button { padding: 0.6rem 0.85rem; font-size: 0.72rem; }
}

.nav .links { display: flex; gap: 1.6rem; font-family: var(--sans); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.nav .links a { color: var(--ink-soft); text-decoration: none; }
.nav .links a:hover { color: var(--rust); }

@media (max-width: 46rem) { .nav .links { display: none; } }

/* ---- Buttons ----------------------------------------------------------- */

.button {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--rust);
    color: var(--paper-light);
    border: var(--edge);
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--ink-line);
    padding: 0.72rem 1.3rem;
    text-decoration: none;
    transition: transform 90ms ease, box-shadow 90ms ease;
}
.button:hover {
    color: var(--paper-light);
    /* Pressed into the page rather than lifted off it. */
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink-line);
}
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { color: var(--ink); }
.button.pale { background: var(--mustard); color: var(--ink); }
.button.pale:hover { color: var(--ink); }

/* ---- Hero -------------------------------------------------------------- */

/* The bottom padding is load-bearing, not spacing.
 *
 * It was zero, so the hero's box ended on the same pixel as the phone's, and
 * `overflow: hidden` then cut off everything that legitimately sits outside a
 * phone's border box: its 8px drop shadow, and the panda leaning on the corner
 * at `bottom: -6%`. Both were sliced flat by the teal band under the fold.
 *
 * It only showed up once the heading got shorter. While the copy column was the
 * taller of the two it set the row height and the phone was centred inside it
 * with room to spare; the moment the phone became the tallest thing in the row,
 * it defined the row exactly and had nothing left underneath. */
.hero { padding: 4.5rem 1.5rem 3.5rem; overflow: hidden; }
.hero .inner {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

/* The tagline under the name, and it has to be smaller than the name.
 *
 * This was `display: block` and nothing else, so it rendered at the full h1
 * size. That was survivable while the line was three words; once the app's own
 * name took the h1 — which Google's OAuth review requires it to — the heading
 * became five lines of display type, pushed the buttons off the fold and
 * stretched the disc behind the phone into a lozenge. A subtitle set at the
 * size of the title is not a subtitle. */
.hero h1 .script {
    display: block;
    font-size: 0.38em;
    line-height: 1.2;
    letter-spacing: 0;
    margin-top: 0.55rem;
    color: var(--ink-soft);
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 2rem; }
.hero .note { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint);
    letter-spacing: 0.04em; margin: 0; }

/* The device, sat on a printed disc so it is not floating on nothing. */
.device-stage { position: relative; display: flex; justify-content: center; }
.device-stage::before {
    content: "";
    position: absolute;
    /* Round, and it has to be stated rather than hoped for.
     *
     * This was `inset: 12% -6% 18% -6%` with a 50% radius, which is not a disc:
     * it is an ellipse the shape of whatever box it lands in, and on a wide
     * screen that box is half the page across and only as tall as the phone. It
     * drew a long orange lozenge behind the device. An aspect ratio is the only
     * way to keep a circle circular when the thing it sits in is not. */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(108%, 26rem);
    aspect-ratio: 1;
    background: var(--mustard);
    border: var(--edge);
    border-radius: 50%;
    z-index: 0;
}
.device {
    position: relative;
    z-index: 1;
    width: min(300px, 78%);
    border: 2px solid var(--ink-line);
    border-radius: 34px;
    box-shadow: 8px 8px 0 var(--ink-line);
    background: var(--paper-card);
}

/* ---- The live Today screen -------------------------------------------- */
/*
 * The same panel the app draws, in HTML, for wherever the visitor is reading
 * from. It replaces the screenshot only once real weather has arrived — see
 * today.js — so this whole block is dormant on a page whose fetch failed.
 *
 * Sized in em against a root font-size set on the frame itself, so the screen
 * scales as one piece when the column narrows. Setting each value in rem
 * instead left the type at desktop size inside a 240px phone, which is exactly
 * the sort of thing a screenshot never shows you.
 *
 * `pointer-events: none` is not styling but a statement: nothing here opens,
 * and a card that invites a tap and then does nothing is worse than a picture.
 */
.device-live {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    padding: 0 0 0.6em;
    font-size: 10px;
    /* A phone's proportions, so the screen has a fixed height to scroll
     * inside. Left to grow with its content it was a very tall rectangle that
     * scrolled the page instead of itself. */
    aspect-ratio: 300 / 652;
    user-select: none;
}

@media (min-width: 40rem) {
    .device-live { font-size: 11px; }
}

/* The scrolling middle. Masthead above and tab bar below stay put, as they do
 * in the app.
 *
 * `overscroll-behavior` matters more than it looks: without it, reaching the
 * bottom of the outlook hands the scroll to the page and the whole hero jumps,
 * which reads as the site fighting you. */
.dv-screen {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.dv-screen::-webkit-scrollbar { display: none; }

/* Grab, and keep the cursor while dragging. The `grabbing` state has to live on
 * the element rather than on :active, because the pointer is captured and may
 * be well outside the phone by the time somebody lets go. */
.dv-screen { cursor: grab; }
.dv-screen.is-dragging { cursor: grabbing; user-select: none; }

/* Nothing inside a page is a control. The tabs are, and they are outside it. */
.dv-page { pointer-events: none; }

.dv-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 1.4em 0.2em;
    font-family: var(--sans);
    font-size: 1.05em;
    font-weight: 600;
    color: var(--ink);
}
.dv-notch {
    width: 7em;
    height: 2.1em;
    border-radius: 1.1em;
    background: var(--ink);
}
.dv-battery {
    width: 2.4em;
    height: 1.2em;
    border: 1.5px solid var(--ink);
    border-radius: 0.35em;
    background: linear-gradient(to right, var(--ink) 70%, transparent 70%);
    background-clip: content-box;
    padding: 1px;
}

.dv-masthead { padding: 0.5em 0.9em 0.6em; }
.dv-masthead img { width: 100%; height: auto; }

.dv-card {
    margin: 0 0.9em 0.7em;
    padding: 0.9em;
    background: var(--paper-card);
    border: 1.5px solid var(--ink-line);
    border-radius: 1.4em;
}

.dv-place {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35em;
    color: var(--ink);
}
.dv-approx {
    margin: 0.15em 0 0;
    font-family: var(--sans);
    font-size: 0.85em;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
}

.dv-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    margin-top: 0.3em;
}
.dv-reading {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 4.4em;
    line-height: 1;
    color: var(--ink);
}
/* Set small and lifted to cap height, as the app sets it. Georgia's own degree
 * glyph is far too large at display size and drifts away from the digits. */
.dv-deg { font-size: 0.42em; vertical-align: super; }
.dv-condition {
    margin: 0.1em 0 0;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35em;
    color: var(--ink);
}
.dv-art { flex: 0 0 auto; line-height: 0; }

.dv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4em;
    margin: 0.9em 0 0;
    padding-top: 0.8em;
    border-top: 1px solid rgba(58, 46, 34, 0.18);
    text-align: center;
}
/* Mark, then number, then label — the app's order, which is why `dd` sits
 * above `dt` here. The list stays a description list in the markup because that
 * is what it is; only the painting order changes. */
.dv-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
/* Sized in em rather than px, so the marks follow the panel when it steps up a
 * size on a wide screen instead of staying at the phone-sized 22. */
.dv-stat-art { order: 0; line-height: 0; }
.dv-stat-art svg { width: 2.2em; height: 2.2em; }
.dv-stats dd { order: 1; }
.dv-stats dt { order: 2; }
.dv-stats dt {
    font-family: var(--sans);
    font-size: 0.7em;
    color: var(--ink-faint);
    white-space: nowrap;
}
/* The wind is the longest of the four and the only one that can overflow its
 * column, so it is the one allowed to set smaller rather than every label being
 * shrunk to accommodate it. */
.dv-stats dd {
    margin: 0.1em 0 0.05em;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1em;
    color: var(--ink);
    white-space: nowrap;
}
.dv-stats .dv-wind { font-size: 0.86em; }

.dv-card h3 {
    margin: 0 0 0.15em;
    font-family: var(--serif);
    font-size: 1.35em;
    color: var(--ink);
}
.dv-summary, .dv-note-copy i {
    margin: 0;
    font-family: var(--serif);
    font-style: normal;
    font-size: 0.98em;
    color: var(--ink-soft);
}

/* ---- Happening now ------------------------------------------------------ */
/*
 * The one dark card on a screen of cream ones, which is how the app sets it:
 * this is the only panel that interrupts, and it should look like it does.
 */
.dv-now {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0.9em 0.7em;
    padding: 0.7em 0.9em;
    background: var(--deep-teal);
    border: 1.5px solid var(--ink-line);
    border-radius: 1.4em;
}
.dv-now-art { flex: 0 0 auto; line-height: 0; }
.dv-now-copy { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.dv-now-chip {
    align-self: flex-start;
    padding: 0.25em 0.6em;
    border: 1px solid rgba(227, 163, 60, 0.55);
    border-radius: 100px;
    background: rgba(31, 26, 20, 0.85);
    font-family: var(--sans);
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #F0D9A0;
}
.dv-now-title {
    font-family: var(--serif);
    font-size: 1.15em;
    color: var(--paper-light);
}
.dv-now-detail {
    font-family: var(--serif);
    font-style: normal;
    font-size: 0.92em;
    line-height: 1.35;
    color: rgba(253, 248, 236, 0.92);
}

.dv-note-list { list-style: none; margin: 0.5em 0 0; padding: 0; }
.dv-note-list li {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.45em 0;
    border-top: 1px solid rgba(58, 46, 34, 0.14);
}
.dv-note-list li:first-child { border-top: 0; }
.dv-note-art { flex: 0 0 auto; line-height: 0; }
.dv-note-copy { display: flex; flex-direction: column; min-width: 0; }
.dv-note-copy b {
    font-family: var(--serif);
    font-size: 1.05em;
    color: var(--ink);
}

/* The hours, scrolled rather than fitted.
 *
 * A fixed six-column grid under a heading reading "Next 48 Hours" was a heading
 * writing a cheque the panel could not cash. Columns of a fixed width in a
 * scroller instead, so the strip carries the day and plainly runs off the edge,
 * which is the thing that says it can be pulled.
 *
 * This is the one place inside a page that takes pointer events. Everything
 * else is deliberately inert — see `.dv-page` — but scrolling is looking rather
 * than acting, which is the same reason the screen itself scrolls. */
.dv-strip {
    display: flex;
    gap: 0.2em;
    margin-top: 0.6em;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    pointer-events: auto;
    cursor: grab;
}
.dv-strip::-webkit-scrollbar { display: none; }
.dv-strip.is-dragging { cursor: grabbing; user-select: none; }
/* Allowed to grow, so the strip is right whether there are six hours or a day
 * of them: with a handful they spread across the card as the old grid did, and
 * with a day there is no free space to grow into and they overflow and scroll.
 * That matters beyond tidiness, because the two states are minutes apart on a
 * deploy, and a strip that ends two thirds of the way across the card reads as
 * a rendering fault rather than as a shorter forecast. */
.dv-hour {
    display: flex;
    flex: 1 0 3.5em;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    min-width: 0;
}
.dv-hour-label {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.92em;
    color: var(--ink);
}
.dv-hour-temp {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05em;
    color: var(--ink);
}
.dv-hour-rain {
    font-family: var(--serif);
    font-size: 0.85em;
    color: var(--deep-teal);
    min-height: 1em;
}

/* ---- The outlook ------------------------------------------------------- */

.dv-days { margin-top: 0.4em; }
.dv-day {
    display: grid;
    grid-template-columns: 3.4em 2em 1fr 2.2em;
    align-items: center;
    gap: 0.5em;
    padding: 0.32em 0;
    border-top: 1px solid rgba(58, 46, 34, 0.14);
}
.dv-day:first-child { border-top: 0; }
.dv-day-name { font-family: var(--serif); font-weight: 700; font-size: 1em; color: var(--ink); }
.dv-day-low { font-family: var(--serif); font-weight: 700; font-size: 0.95em; color: var(--ink-soft); text-align: right; }
.dv-day-high { font-family: var(--serif); font-weight: 700; font-size: 0.95em; color: var(--ink); }
/* The range bar, drawn against the whole outlook's spread so the shape of the
 * fortnight reads down the column rather than each row being its own scale. */
.dv-day-bar { height: 0.45em; border-radius: 100px; background: rgba(58, 46, 34, 0.13); position: relative; }
.dv-day-bar span {
    position: absolute;
    top: 0; bottom: 0;
    border-radius: 100px;
    background: linear-gradient(to right, var(--mustard), var(--burnt-orange));
}

/* The other four screens are photographs, cropped to the content area. Full
 * bleed inside the frame: they already carry their own masthead, and the frame
 * supplies the one status bar and the one tab bar. */
.dv-page img { width: 100%; height: auto; display: block; }

/* ---- The stamp --------------------------------------------------------- */
/*
 * A rubber stamp across the screen behind it, which is exactly what it is: the
 * screen is real enough to be worth showing and not real enough to use. Set at
 * an angle and in the page's uppercase sans, because a straight, serif version
 * of this reads as a system error rather than as an aside.
 *
 * Placed on the frame rather than inside the scrolling screen. In the flow it
 * landed under whatever the page held, which on a short screen is a caption
 * rather than a stamp; inside the scroller it slid away the moment anybody
 * moved, which stops it saying the thing it is for.
 */
.dv-stamp {
    position: absolute;
    z-index: 4;
    top: 58%;
    left: 50%;
    margin: 0;
    width: max-content;
    max-width: 82%;
    transform: translate(-50%, -50%) rotate(-9deg);
    font-family: var(--sans);
    font-size: 1.55em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: var(--rust);
    /* Nearly opaque, and it has to be: three of the four screens behind it are
     * photographs, and one of them is a radar map in full colour. At 86% the
     * type was competing with green rain. */
    background: rgba(250, 243, 227, 0.95);
    border: 3px solid var(--rust);
    border-radius: 0.5em;
    padding: 0.55em 0.9em;
    box-shadow: 0 0 0 4px rgba(250, 243, 227, 0.55);
}

/* ---- The tab bar ------------------------------------------------------- */

.dv-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 0.2em;
    margin: 0.3em 0.5em 0;
    padding: 0.45em 0.35em;
    background: #241C14;
    border-radius: 1.4em;
    color: #CFC0A6;
}
.dv-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.78em;
    color: inherit;
    background: none;
    border: 0;
    padding: 0.42em 0 0.3em;
    border-radius: 0.9em;
    cursor: pointer;
}
.dv-tab svg { width: 1.9em; height: 1.9em; display: block; }
.dv-tab:hover { color: var(--paper-light); }
.dv-tab.on, .dv-tab.on:hover { color: var(--paper-light); background: var(--burnt-orange); }
.dv-tab:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }

/* Offered under the phone, in the page's own voice rather than the app's.
 * Quiet on purpose: it is a courtesy, not the thing the hero is selling. */
.device-locate {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: none;
    border: 0;
    border-bottom: 1.5px solid var(--rust);
    padding: 0.2rem 0;
    cursor: pointer;
}
.device-locate:hover { color: var(--rust); }
.device-locate:disabled { cursor: default; opacity: 0.7; }

/* The waving panda from the tour, which is the current character.
 *
 * It was the old one: a rubber-hose mascot in a blue shirt and red shorts,
 * still in the asset catalogue and still used by some weather states, but
 * drawn before the redesign. Standing it beside a screenshot of the current
 * app put two generations of the character on one screen, which is worse
 * than having no character there at all.
 */
/* Low and to the left, so it leans on the corner of the phone rather than
 * standing in front of the screen. Sat any higher it covered the first hour
 * of the forecast, which is the one column somebody is actually reading. */
.hero .panda-peek {
    position: absolute;
    z-index: 2;
    width: 150px;
    left: -30px;
    bottom: -6%;
    filter: drop-shadow(3px 3px 0 rgba(31, 26, 20, 0.18));
}

@media (max-width: 52rem) {
    .hero .inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero .panda-peek { width: 112px; left: 0; bottom: -4%; }
}

/* ---- Numbers strip ----------------------------------------------------- */

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.figures div { padding: 0 1.5rem; border-left: 1px solid rgba(250, 243, 227, 0.28); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.figures span { font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: #BFD2CE; display: block; margin-top: 0.6rem; }

@media (max-width: 46rem) {
    .figures { grid-template-columns: 1fr; gap: 2rem; }
    .figures div { border-left: 0; padding: 0; }
}

/* ---- Feature grid ------------------------------------------------------ */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 60rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--paper-card);
    border: var(--edge);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 4px 4px 0 var(--ink-line);
}
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }
.card .pip {
    width: 40px; height: 40px; border-radius: 50%;
    border: var(--edge); margin-bottom: 1.1rem;
}
.card:nth-child(6n+1) .pip { background: var(--burnt-orange); }
.card:nth-child(6n+2) .pip { background: var(--dusty-teal); }
.card:nth-child(6n+3) .pip { background: var(--mustard); }
.card:nth-child(6n+4) .pip { background: var(--sage); }
.card:nth-child(6n+5) .pip { background: var(--sky); }
.card:nth-child(6n+6) .pip { background: var(--rust); }

/* ---- Alternating picture rows ------------------------------------------ */

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}
.row:last-child { margin-bottom: 0; }
.row.flip .art { order: -1; }

.row .art { display: flex; justify-content: center; }
.row .art img { width: min(270px, 80%); }
.row .art .shot {
    border: 2px solid var(--ink-line);
    border-radius: 30px;
    box-shadow: 7px 7px 0 var(--ink-line);
}

@media (max-width: 52rem) {
    .row { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
    .row.flip .art { order: 0; }
}

/* ---- Steps ------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps > div { counter-increment: step; }
.steps > div::before {
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    font-size: 1.5rem; font-weight: bold;
    background: var(--paper-card); color: var(--ink);
    border: var(--edge); border-radius: 50%;
    box-shadow: 3px 3px 0 var(--ink-line);
    margin-bottom: 1.2rem;
}
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Screenshot shelf -------------------------------------------------- */

.shelf {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    /* Wide content scrolls in its own box; the page body never does. */
    scroll-snap-type: x mandatory;
}
.shelf figure { margin: 0; scroll-snap-align: start; }
.shelf img {
    border: 2px solid var(--ink-line);
    border-radius: 26px;
    box-shadow: 6px 6px 0 var(--ink-line);
    background: var(--paper-card);
}
.shelf figcaption {
    font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-faint); margin-top: 1rem;
}

/* ---- Honest list ------------------------------------------------------- */

.plain { list-style: none; padding: 0; margin: 0; max-width: var(--prose); }
.plain li { border-top: var(--edge); padding: 1.1rem 0; }
.plain li:last-child { border-bottom: var(--edge); }
.plain b { display: block; }
.plain span { color: var(--ink-soft); }

/* ---- Call to action ---------------------------------------------------- */

.cta { text-align: center; }
.cta .inner { max-width: 40rem; }
.cta .stripes { width: 120px; margin: 0 auto 1.75rem; }
.cta p { margin-left: auto; margin-right: auto; }

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

footer.site {
    background: var(--ink);
    color: var(--paper-sunken);
    padding: 4rem 1.5rem 2.5rem;
}
footer.site .inner { max-width: var(--measure); margin: 0 auto; }
footer.site .cols {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
footer.site h4 {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-faint); margin: 0 0 1rem;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 0.6rem; }
footer.site a { color: var(--paper-sunken); text-decoration: none; }
footer.site a:hover { color: var(--mustard); }
/* The same masthead in its dark variant, which is the same artwork with the
 * letterforms flipped to cream. The app keeps one for exactly this case:
 * the wordmark is a raster with baked-in ink, so it disappears on anything
 * dark unless the other file is used. */
footer.site .mark {
    height: 47px;
    width: auto;
    max-width: 100%;
    margin: 0 0 1rem;
}
footer.site .blurb { color: var(--ink-faint); font-size: 0.95rem; max-width: 22rem; }
footer.site .fine {
    border-top: 1px solid #3A2E22; padding-top: 1.5rem;
    font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint);
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
@media (max-width: 52rem) {
    footer.site .cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---- Legal and support pages ------------------------------------------- */

.page { max-width: var(--prose); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 0.5rem; }
.page h2 { font-size: 1.5rem; margin: 3rem 0 0.75rem; }
.page h3 { font-size: 1.1rem; margin: 2rem 0 0.4rem; }
.page ul { padding-left: 1.15rem; }
.page li { margin-bottom: 0.5rem; }

.dateline {
    font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-faint); margin: 0 0 2rem;
}

.panel {
    background: var(--paper-card);
    border: var(--edge);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ink-line);
    padding: 1.4rem 1.5rem;
    margin: 2rem 0;
}
.panel h3 { margin-top: 0; }
.panel :last-child { margin-bottom: 0; }
.panel.sunken { background: var(--paper-sunken); }

.rows { margin: 1.5rem 0; }
.row-item { border-top: var(--edge); padding: 1rem 0; }
.row-item:last-child { border-bottom: var(--edge); }
.row-item b { display: block; }
.row-item span { color: var(--ink-soft); }

.crumbs { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em;
    text-transform: uppercase; margin-top: 3rem; }
.crumbs a { text-decoration: none; }

/* ---- Arrival ------------------------------------------------------------
 *
 * One orchestrated page load rather than a fidget per element. Anything that
 * moves does so once, on the way in, and nothing moves on scroll: a legal page
 * that animates while somebody is trying to read it is an insult.
 */

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.hero .copy > *, .hero .device-stage {
    animation: rise 620ms cubic-bezier(0.22, 0.68, 0.28, 1) backwards;
}
.hero .copy > :nth-child(1) { animation-delay: 40ms; }
.hero .copy > :nth-child(2) { animation-delay: 110ms; }
.hero .copy > :nth-child(3) { animation-delay: 180ms; }
.hero .copy > :nth-child(4) { animation-delay: 250ms; }
.hero .device-stage { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* Paper has no dark mode, and inverting a print idiom gives something that is
 * neither. The page keeps its cream in either setting, as the app does with a
 * light theme selected. */
