/*
    The pages anyone can read: the front page and the docs. They borrow the app's colours, its type and its
    drawings from site.css. This file is their frame: the bar across the top, the foot, the things a page of
    writing needs, and the layout of the docs. The front page's own sections are in home.css.
*/

.pub { --wide: 72rem; --pad: clamp(var(--gutter), 4vw, 2.5rem); --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.skip { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .6rem 1rem; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top) + .6rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The bar across the top: the name, the way round, and the way in. */
.pub-top { --bottle-at: calc(var(--pad) + 4.3rem); gap: 1rem; padding-inline: var(--pad); }
.pub-top .wordmark { height: 1.7rem; }
.pub-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 1.9rem); margin-left: auto; }
.pub-nav a { padding: .4rem 0; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.pub-nav a:hover, .pub-nav a:focus-visible, .pub-nav a[aria-current="page"] { color: var(--text); }
.pub-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.pub-wide { display: none; }

/* The way in for someone who has a cellar is a quiet link, and the button beside it is the page's one ask. */

.pub-ask {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-left: clamp(.6rem, 2vw, 1.2rem);
    padding: 0 1.1rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-gold);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pub-ask:hover, .pub-ask:focus-visible { background: var(--gold-bright); }

/* The foot: what Kept is in a line, and every page there is to read. */
.pub-foot { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.pub-foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; max-width: var(--wide); margin-inline: auto; padding: 2.4rem var(--pad) 2rem; }
.pub-foot .wordmark { height: 1.7rem; }
.pub-foot-about { grid-column: 1 / -1; }
.pub-foot-about p { margin: .8rem 0 0; font: 400 1.15rem/1.4 var(--serif); }
.pub-foot-about p.muted { margin-top: .2rem; font: .88rem var(--sans); }
.pub-foot h2 { margin: 0 0 .5rem; color: var(--faint); font: 600 .78rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.pub-foot nav a { display: block; padding: .6rem 0; color: var(--muted); font-size: .92rem; line-height: 1.5; text-decoration: none; }
.pub-foot nav a:hover, .pub-foot nav a:focus-visible { color: var(--text); }

/* A long list in the foot, folded under its heading on a phone: one line across, with a plus that turns as it opens. */
.pub-foot nav:has(.pub-fold) { grid-column: 1 / -1; }
.pub-foot-in:has(.pub-fold) { row-gap: 0; }
.pub-foot-in:has(.pub-fold) .pub-foot-about { margin-bottom: 1.8rem; }
.pub-fold { border-top: 1px solid var(--line); }
.pub-fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; }
.pub-fold summary::-webkit-details-marker { display: none; }
.pub-fold summary::after { content: "+"; color: var(--muted); font: 400 1.4rem/1 var(--sans); transition: rotate .2s; }
.pub-fold[open] summary::after { rotate: 45deg; }
.pub-fold summary h2 { margin: 0; }
.pub-fold[open] { padding-bottom: .6rem; }

/* The line under everything: whose it is, and the two pages that say on what terms. */
.pub-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; max-width: var(--wide); margin: 0 auto; padding: 1rem var(--pad) calc(env(safe-area-inset-bottom) + 1.6rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.pub-legal a { margin-left: 1.1rem; color: var(--muted); }
.pub-legal a:first-child { margin-left: 0; }
.pub-legal a:hover, .pub-legal a:focus-visible { color: var(--text); }

/* The privacy policy and the terms: a page of writing with nothing beside it. */
.legal { margin-inline: auto; padding: clamp(1.6rem, 5vw, 3rem) var(--pad) 0; }

/* Something to type or to read exactly: a command, a request, an answer. The script adds a button that copies it. */
.code { position: relative; border: 1px solid var(--line); border-radius: 16px; background: #0a0808; overflow: hidden; }
.code-name { display: flex; align-items: center; min-height: 2.5rem; margin: 0; padding: 0 5rem 0 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.code pre { margin: 0; padding: 1rem; overflow-x: auto; color: #eadfd5; font: .82rem/1.65 var(--mono); tab-size: 2; }
.code pre code { padding: 0; background: none; font: inherit; }
.code .k { color: var(--gold-bright); }
.code .s { color: #a5dbb0; }
.code .v { color: #f2a0ad; font-style: italic; }
.code .c { color: #8f807a; }
.code pre.wraps { white-space: pre-wrap; }
.code-copy { position: absolute; top: .38rem; right: .5rem; min-height: 28px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); font: 500 .76rem var(--sans); cursor: pointer; }
.code-copy:hover, .code-copy:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.code:not(:has(.code-name)) pre { padding-right: 4.6rem; }

/* Things that rise into place as they are scrolled to, for anyone who has not asked for less movement. Without the script nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
    .js .rises { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
    .js .rises.in { opacity: 1; translate: 0 0; }
}

/*
    The docs: a menu down the side and the page. On a phone the menu folds away above the page, and holds what is on
    the page and a box that finds a section in any guide. On a desk the menu stands beside the page, with the open
    page's sections under its name.
*/
.docs { display: grid; gap: 1.2rem; max-width: var(--wide); margin-inline: auto; padding: 1.1rem var(--pad) 0; }
.docs-side { min-width: 0; }
.docs-fold { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.docs-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 1rem; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.docs-fold > summary::-webkit-details-marker { display: none; }
.docs-fold > summary::after { content: "▾"; color: var(--muted); }
.docs-fold[open] > summary::after { rotate: 180deg; }
.docs-menu { display: grid; gap: .1rem; padding: 0 .5rem .6rem; }
.docs-menu.docs-rail, .docs-find.docs-rail { display: none; }
.docs-menu a { display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--muted); font-size: .95rem; text-decoration: none; }
.docs-menu a:hover, .docs-menu a:focus-visible { color: var(--text); background: rgba(255, 255, 255, .04); }
.docs-menu a[aria-current="page"] { background: var(--surface-raised); color: var(--text); font-weight: 600; }
.docs-apart { width: calc(100% - 1.4rem); margin: .5rem .7rem; border: 0; border-top: 1px solid var(--line); }

/* What is on the open page: first in the fold, and under the page's own name in the menu beside it. The script fills both. */
.docs-here { padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.docs-here[hidden] { display: none; }
.docs-here::before { content: "On this page"; display: block; padding: .2rem .7rem .3rem; color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.docs-here a, .docs-sections a { padding: .36rem .7rem; border-radius: 0 10px 10px 0; font-size: .9rem; line-height: 1.35; }
.docs-here a { padding-block: .55rem; }
.docs-sections { display: grid; gap: .05rem; margin: .1rem 0 .35rem .7rem; padding-left: .2rem; border-left: 1px solid var(--line); }
.docs-here a[aria-current="true"], .docs-sections a[aria-current="true"] { color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }

/* The box that finds a section in any guide, and what it found: each section's heading, its guide, and its first words. */
.docs-find { position: relative; padding: 0 .5rem .6rem; }
.docs-find input { width: 100%; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 1rem; }
.docs-find input::placeholder { color: var(--faint); }
.docs-find input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.docs-found { display: grid; gap: .1rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.docs-found[hidden] { display: none; }
.docs-found a { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.docs-found a:hover, .docs-found a:focus-visible { background: rgba(255, 255, 255, .05); }
.docs-found strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.docs-found small { display: block; margin-top: .1rem; color: var(--faint); font-size: .76rem; letter-spacing: .04em; }
.docs-found span { display: block; margin-top: .2rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.docs-found p { margin: .3rem .7rem .4rem; color: var(--muted); font-size: .88rem; }

/* On a phone, a long way down a guide: the way back to its contents. */
.docs-contents { position: fixed; right: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom) + 1rem); z-index: 6; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--bg-rgb) / .92); color: var(--text); font: 600 .9rem var(--sans); box-shadow: 0 10px 26px rgb(0 0 0 / .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: opacity .2s ease, translate .2s ease; }
.docs-contents[hidden] { display: none; }
.docs-contents.is-away { opacity: 0; translate: 0 8px; pointer-events: none; }
.docs-contents:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Signed in, the app's tabs are at the foot too, and Add stands proud of them: Contents waits above it. */
.has-tabs .docs-contents { bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 8px + 1.9rem); }

.docs-main { min-width: 0; max-width: 46rem; }
.docs-main .eyebrow { display: none; margin: 0 0 .6rem; color: var(--faint); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.docs-main h1 { margin: 0 0 .7rem; font-size: clamp(2.1rem, 6.5vw, 2.9rem); line-height: 1.1; text-wrap: balance; }
.docs-lede { margin: 0 0 1.6rem; color: var(--muted); font-size: 1.12rem; line-height: 1.6; text-wrap: pretty; }
.docs-lede a { color: inherit; text-decoration-color: rgb(var(--gold-rgb) / .6); text-underline-offset: .18em; }
.docs-main h2 { clear: right; margin: 2.8rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.55rem; line-height: 1.2; scroll-margin-top: 4.6rem; text-wrap: balance; }
.docs-main h3 { margin: 2rem 0 .5rem; font: 400 1.28rem/1.3 var(--serif); scroll-margin-top: 4.6rem; text-wrap: balance; }
.docs-main p, .docs-main li { line-height: 1.68; text-wrap: pretty; }
.docs-main p { margin: .7rem 0; }
.docs-main ul, .docs-main ol { margin: .7rem 0; padding-left: 1.25rem; }
.docs-main li + li { margin-top: .4rem; }
.docs-main li::marker { color: var(--gold); }
.docs-main strong { color: var(--text); font-weight: 650; }

/* A label as the app shows it, set like the control it names; and an example of what the app writes, in quotes, as the app writes it. */
.docs-main b { padding: .04em .32em; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.docs-main strong b { padding: 0; background: none; font-weight: inherit; }
.docs-main samp { color: var(--text); font: inherit; font-weight: 500; }
.docs-main samp::before { content: "“"; color: var(--muted); }
.docs-main samp::after { content: "”"; color: var(--muted); }
.docs-main :not(pre) > code { padding: .12em .38em; border-radius: 6px; background: rgba(255, 255, 255, .07); font: .88em var(--mono); overflow-wrap: anywhere; }
.docs-main .code { margin: 1rem 0 1.4rem; }
.docs-main .chips { margin-inline: 0; padding: 0; }

/* A line beside the guides, and a credit owed: quieter than the writing around them. */
.docs-aside { color: var(--muted); font-size: .95rem; }
.docs-credit { color: var(--faint); font-size: .84rem; }

/* More of the same kind, folded until it is wanted: every grape Kept knows by another name. */
.docs-more { margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 14px; }
.docs-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0 1rem; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.docs-more > summary::-webkit-details-marker { display: none; }
.docs-more > summary::after { content: "▾"; color: var(--muted); }
.docs-more[open] > summary::after { rotate: 180deg; }
.docs-more > :not(summary) { margin-inline: .6rem; }
.docs-more[open] { padding-bottom: .6rem; }

/* A heading can be linked to: the script puts a mark beside it that shows when the heading is pointed at. */
.docs-anchor { margin-left: .4rem; color: var(--muted); font: 400 .8em var(--sans); text-decoration: none; opacity: 0; }
h2:hover > .docs-anchor, h3:hover > .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }

/* What a guide holds, under its opening paragraph: each section numbered, a tap away, with the time the guide takes to read. */
.docs-toc { max-width: 36rem; margin: 1.2rem 0 1.8rem; }
.docs-main .docs-toc-head { margin: 0 0 .25rem; color: var(--muted); font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.docs-main .docs-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: section; }
.docs-main .docs-toc li { margin: 0; line-height: 1.3; counter-increment: section; border-bottom: 1px solid var(--line); }
.docs-toc li:last-child { border-bottom: 0; }
.docs-toc a { display: flex; align-items: center; gap: .9rem; min-height: 46px; padding: .35rem .1rem; color: var(--text); font: 500 1rem/1.3 var(--sans); text-decoration: none; }
.docs-toc a::before { content: counter(section); flex: none; width: 1.4rem; color: var(--gold-bright); font: 400 1.08rem/1 var(--serif); }
.docs-toc a::after { content: "›"; margin-left: auto; padding-left: .6rem; color: var(--muted); font-size: 1.15rem; }
.docs-toc a:hover, .docs-toc a:focus-visible { color: var(--gold-bright); }
.docs-toc a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }

/* A table scrolls sideways inside its own box, so that a wide one does not push the page about. */
.docs-table { margin: 1rem 0 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.docs-table th, .docs-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table th { background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
.docs-table td:first-child { min-width: 7.5rem; }
.docs-table caption { padding: .75rem .8rem .35rem; color: var(--text); font: 400 1.05rem/1.3 var(--serif); text-align: left; caption-side: top; text-wrap: balance; }

/* A row about a kind of wine carries its color as a dot, and the key under the table says which is which. */
.docs-table tr[class^="is-"] td:first-child::before, .docs-table-key span::before {
    content: ""; display: inline-block; width: .56rem; height: .56rem; margin-right: .5rem; border-radius: 50%; vertical-align: .08em; background: var(--dot);
}
.docs-table .is-red { --dot: #9b2a3c; }
.docs-table .is-white { --dot: #e3d394; }
.docs-table .is-sparkling { --dot: transparent; }
.docs-table .is-sparkling td:first-child::before, .docs-table-key .is-sparkling::before { box-shadow: inset 0 0 0 1.5px #f1e7c4; }
.docs-main .docs-table-key { display: flex; justify-content: center; gap: 1.1rem; margin: 0; padding: .55rem .8rem .7rem; border-top: 1px solid var(--line); color: var(--muted); font: 500 .78rem/1.3 var(--sans); }

/*
    On a phone a table is drawn as one plate: its caption across the top in the serif, its rows under one another with a hairline
    between, each row's first cell as its heading and every other cell under it, named by its column where the table has three or
    more. A table of short pairs keeps them side by side, as a label and its grape.
*/
@media (max-width: 39.99rem) {
    .docs-table { overflow: visible; padding: .2rem 1rem .25rem; border-radius: 16px; background: var(--surface); }
    .docs-table caption { display: block; padding: .8rem 0 .45rem; font-size: 1.15rem; text-align: center; }
    .docs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .docs-table table, .docs-table tbody, .docs-table tr, .docs-table td { display: block; }
    .docs-table tr { padding: .55rem 0 .58rem; border-bottom: 1px solid var(--line); }
    .docs-table tbody tr:last-child { border-bottom: 0; }
    .docs-table td { padding: .08rem 0; border: 0; line-height: 1.42; }
    .docs-table td:first-child { min-width: 0; color: var(--text); font-weight: 600; }
    .docs-table td:not(:first-child) { font-size: .94rem; }
    .docs-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-top: .3rem; color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
    .docs-table.is-pairs tr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: .75rem; align-items: baseline; }
    .docs-table.is-pairs td:not(:first-child) { color: var(--muted); }
    .docs-main .docs-table-key { margin: 0 -1rem; }
    .tool .docs-table { background: none; }
}

/*
    A fact worth having, set apart from the instructions around it by a rule above it and a gold word, with no box. It narrows beside a
    drawing rather than running under it. Two in a row read as one group, under the one word.
*/
.docs-fact { display: flow-root; margin: 1.8rem 0 1.5rem; padding: .95rem 0 0; border-top: 1px solid var(--line); }
.docs-main .docs-fact-name { margin: 0 0 .3rem; font: 400 1.18rem/1.3 var(--serif); color: var(--text); text-wrap: balance; }
.docs-fact-name::before { content: "Worth knowing"; display: block; margin-bottom: .35rem; color: var(--gold-bright); font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.docs-main .docs-fact p:not(.docs-fact-name) { margin: .4rem 0 0; font-size: .96rem; line-height: 1.6; }
.docs-fact + .docs-fact { margin-top: -.4rem; padding-top: 1rem; border-top: 0; }
.docs-fact + .docs-fact .docs-fact-name::before { content: none; }

/* A drawing that teaches: wide, with its labels in it. */
.docs-plate { clear: both; max-width: 36rem; margin: 1.6rem 0; }
.docs-plate svg { height: auto; border-radius: 16px; }
.docs-plate figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; line-height: 1.5; text-wrap: pretty; }

/*
    A how-to: a screen of the app drawn small, with numbered marks, and the steps beside it under the same numbers. On a phone
    the screen stands over its steps; on a wider page it stands beside them. The screen is drawn in the app's own colors and
    type, smaller than life, and its marks sit on the edge of what they point at.
*/
.docs-howto { clear: both; display: grid; gap: 1.15rem; max-width: 40rem; margin: 1.3rem 0 1.5rem; }
.docs-screen { position: relative; width: min(100%, 18.5rem); margin: 0 auto; }
.docs-screen-face {
    display: flex; flex-direction: column; gap: .5rem; padding: .95rem 1rem 1.05rem; border: 1px solid #3a3233; border-radius: 24px;
    background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); color: var(--text); font: 400 .8rem/1.38 var(--sans);
}
.docs-screen b { padding: 0; border-radius: 0; background: none; color: inherit; font-weight: inherit; }
.docs-screen .is-marked { position: relative; }
.docs-screen .is-crumb { color: var(--muted); font: 600 .6rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.docs-screen .is-title { margin-top: -.2rem; font: 400 1.32rem/1.15 var(--serif); }
.docs-screen .is-heading { font-weight: 600; font-size: .86rem; }
.docs-screen .is-count { color: var(--muted); font: 600 .58rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.docs-screen .is-bar { display: block; height: 2px; margin-top: -.25rem; border-radius: 2px; background: var(--line); }
.docs-screen .is-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.docs-screen .is-faint { display: block; color: var(--muted); font-size: .72rem; }
.docs-screen .is-wine { display: flex; align-items: center; gap: .6rem; }
.docs-screen .is-label { position: relative; flex: none; width: 1.9rem; height: 2.5rem; border-radius: 6px; background: linear-gradient(180deg, #a9b85a, #6d7d33); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12); }
.docs-screen .is-label::after { content: ""; position: absolute; inset: 42% 18% 14%; border-radius: 2px; background: #f3ecd9; }
.docs-screen .is-label.is-red { background: linear-gradient(180deg, #5b1d28, #2f0f15); }
.docs-screen .is-name { display: block; font: 400 1.02rem/1.2 var(--serif); }
.docs-screen .is-card { display: block; padding: .5rem .65rem .55rem; border: 1px solid rgb(var(--gold-rgb) / .45); border-radius: 12px; }
.docs-screen .is-kicker { display: block; color: var(--muted); font: 600 .55rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.docs-screen .is-spot { display: block; margin: .1rem 0 .15rem; font: 400 1rem/1.2 var(--serif); }
.docs-screen .is-row { display: flex; align-items: center; gap: .6rem; }
.docs-screen .is-ends { justify-content: space-between; }
.docs-screen .is-open { font-weight: 600; }
.docs-screen .is-open::before { content: "▾ "; color: var(--muted); }
.docs-screen .is-chips { display: flex; gap: .3rem; overflow: hidden; }
.docs-screen .is-chips span { flex: none; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; }
.docs-screen .is-chips .is-on { border-color: var(--muted); color: var(--text); }
.docs-screen .is-rack { display: block; width: 100%; height: auto; }
.docs-screen .is-button { display: block; flex: 1; padding: .48rem .6rem; border-radius: 999px; background: var(--gold); color: #1b1415; font-weight: 600; text-align: center; }
.docs-screen .is-link { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.docs-screen .is-field { display: block; }
.docs-screen .is-label-text { display: block; margin-bottom: .2rem; font-weight: 600; font-size: .72rem; }
.docs-screen .is-box { display: block; padding: .38rem .55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.docs-screen .is-select::after { content: "⌄"; float: right; color: var(--muted); }
.docs-screen .is-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.docs-screen .is-inline { display: inline; }
.docs-screen .is-block { display: block; }
.docs-screen .is-sans { font: 600 .86rem/1.3 var(--sans); }
.docs-screen .is-middle { justify-content: center; gap: 1.6rem; }
.docs-screen .is-middle-text { text-align: center; }
.docs-screen .is-stage { display: inline-block; margin-top: .2rem; color: var(--ok, #8fbf7f); font-size: .7rem; font-weight: 600; }
.docs-screen .is-label.is-photo { width: 2.6rem; height: 3.5rem; border-radius: 8px; }
.docs-screen .is-card.is-plain { border-color: var(--line); }
.docs-screen .is-tick { flex: none; width: .95rem; height: .95rem; border-radius: 4px; background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); position: relative; }
.docs-screen .is-tick::after { content: "✓"; position: absolute; inset: 0; color: #1b1415; font: 700 .65rem/.95rem var(--sans); text-align: center; }
.docs-screen .is-card .is-row { margin-top: .35rem; }
.docs-screen-face.is-tray { background: linear-gradient(180deg, #1d2a38, #121a23); border-color: #33404d; }
.docs-screen .is-rounds { display: flex; gap: .3rem; }
.docs-screen .is-rounds i { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(0, 0, 0, .28); color: var(--text); font: 400 .8rem/1.5rem var(--sans); font-style: normal; text-align: center; }
.docs-screen .is-pill { padding: .05rem .45rem; border: 1px solid var(--gold-bright); border-radius: 999px; font-size: .68rem; font-weight: 600; }
.docs-screen .is-link.is-plain { text-decoration: none; }
.docs-screen .is-snap { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px dashed rgb(var(--gold-rgb) / .6); border-radius: 12px; font: 400 .95rem/1.2 var(--serif); }
.docs-screen .is-plate { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: radial-gradient(circle at 50% 55%, #f3ecd9 0 34%, #8b5a3c 35% 45%, #f3ecd9 46% 52%, transparent 53%), #3a2a2c; }
.docs-screen .is-hint { color: var(--faint); }
.docs-screen-face.is-room { align-items: center; text-align: center; background: radial-gradient(120% 60% at 50% 0, #3a1a1f, var(--surface) 70%); }
.docs-screen .is-code { display: block; width: 6.4rem; padding: .55rem; border-radius: 12px; background: #fff; }
.docs-screen .is-code svg { display: block; width: 100%; height: auto; }
.docs-screen .is-gold { color: var(--gold-bright); }
.docs-screen .is-guests { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.docs-screen .is-guests span { padding: .12rem .5rem; border: 1px solid rgb(var(--gold-rgb) / .5); border-radius: 999px; background: rgb(var(--gold-rgb) / .1); font-size: .7rem; }
.docs-screen .is-room .is-ends { align-self: stretch; align-items: center; }
.docs-screen .is-button.is-short { flex: 0 1 auto; padding-inline: 1.1rem; }
.docs-screen .is-button samp { padding: 0; background: none; color: inherit; font: inherit; }
.docs-screen samp::before, .docs-screen samp::after { content: none; }
.docs-screen .is-chips.is-marked { overflow: visible; flex-wrap: wrap; }
.docs-screen .is-bar-top { margin: -.2rem 0 .1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.docs-screen .is-word { font: 400 1.05rem/1 var(--serif); }
.docs-screen .is-bubble { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--text); }
.docs-screen .is-bubble svg { width: 1rem; height: 1rem; }
.docs-screen .is-asked { align-self: flex-end; max-width: 85%; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.docs-screen .is-input { display: flex; align-items: center; justify-content: space-between; padding: .25rem .25rem .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); }
.docs-screen .is-send { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: #1b1415; font: 700 .85rem/1.6rem var(--sans); font-style: normal; text-align: center; }
.docs-screen .is-choices { display: flex; flex-direction: column; gap: .35rem; }
.docs-screen .is-choice { display: flex; align-items: flex-start; gap: .45rem; font-size: .74rem; }
.docs-screen .is-choice i { flex: none; width: .85rem; height: .85rem; margin-top: .1rem; border: 1.5px solid var(--muted); border-radius: 50%; }
.docs-screen .is-choice.is-on i { border-color: var(--gold); box-shadow: inset 0 0 0 2.5px var(--surface), inset 0 0 0 6px var(--gold); }
.docs-screen .is-choice b { font-weight: 600; }
.docs-screen .is-button.is-ghost { border: 1px solid var(--muted); background: none; color: var(--text); }
.docs-mark {
    position: absolute; top: 50%; left: -1.65rem; translate: 0 -50%; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #f1e7c4;
    box-shadow: 0 0 0 3px var(--bg); color: #1b1415; font: 600 .76rem/1.45rem var(--sans); font-style: normal; text-align: center;
}
.docs-mark.is-right { left: auto; right: -1.65rem; }
.docs-main .docs-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.docs-main .docs-steps > li { position: relative; padding-left: 2.2rem; counter-increment: step; }
.docs-main .docs-steps > li + li { margin-top: .75rem; }
.docs-steps > li::before {
    content: counter(step); position: absolute; top: .14rem; left: 0; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #f1e7c4;
    color: #1b1415; font: 600 .76rem/1.45rem var(--sans); text-align: center;
}

/* A drink's wheel, as a row of its families in their own colors. */
.docs-wheels { display: grid; gap: .9rem; margin: 1rem 0 1.4rem; }
.docs-main .docs-wheel-name { margin: 0 0 .35rem; font: 400 1.1rem/1.3 var(--serif); }
.docs-main .docs-wheel-name::first-letter { text-transform: uppercase; }
.docs-main .docs-wheel ul { display: flex; flex-wrap: wrap; gap: .3rem .35rem; margin: 0; padding: 0; list-style: none; }
.docs-main .docs-wheel li { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .14rem .55rem .14rem .4rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; line-height: 1.4; }
.docs-wheel li::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: var(--family); }

/* The two ways into the guides, on the first page. */
.docs-doors { display: grid; gap: .8rem; margin: 1.4rem 0 .4rem; }
.docs-door { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, translate .15s; }
.docs-door:hover, .docs-door:focus-visible { border-color: rgb(var(--gold-rgb) / .55); translate: 0 -2px; }
.docs-door .docs-plate { margin: 0; max-width: none; }
.docs-door .docs-plate svg { border-radius: 0; }
.docs-door strong { display: block; padding: .8rem 1.1rem 0; font: 400 1.3rem/1.3 var(--serif); }
.docs-door span { display: block; padding: .2rem 1.1rem 1rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.docs-main .docs-cards-group { margin: 1.2rem 0 -.6rem; color: var(--faint); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* The switch between the two halves, at the head of the menu. */
.docs-halves { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin: 0 .5rem .6rem; padding: .25rem; border: 1px solid var(--line); border-radius: 12px; }
.docs-halves a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.docs-halves a:hover, .docs-halves a:focus-visible { color: var(--text); }
.docs-halves a[aria-current="true"] { background: var(--surface-raised); color: var(--text); font-weight: 600; }
.docs-group { margin: .7rem 0 .15rem; padding: 0 .7rem; color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.docs-rail-only { display: none; }

.docs-note { margin: 1.2rem 0; padding: .9rem 1.1rem; border: 1px solid rgb(var(--gold-rgb) / .3); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgb(var(--gold-rgb) / .05); }
.docs-note p { margin: 0; }
.docs-note p + p { margin-top: .5rem; }

/* The guides as cards, on the first of them. */
.docs-cards { display: grid; gap: .8rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.docs-main .docs-cards { padding-left: 0; }
.docs-cards li { margin: 0; }
.docs-cards a { display: block; height: 100%; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, translate .15s; }
.docs-cards a:hover, .docs-cards a:focus-visible { border-color: rgb(var(--gold-rgb) / .55); translate: 0 -2px; }
.docs-cards strong { display: block; font: 600 1.04rem/1.35 var(--sans); color: var(--text); }
.docs-cards strong::after { content: " ›"; color: var(--gold); }
.docs-cards span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* The way to the guide before and the guide after. */
.docs-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 3.4rem; }
.docs-next a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.docs-next a:hover, .docs-next a:focus-visible { border-color: rgb(var(--gold-rgb) / .55); }
.docs-next a:last-child:not(:first-child), .docs-next a.after { text-align: right; }
.docs-next a.after:only-child { grid-column: 2; }
.docs-next small { margin: 0; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.docs-next strong { display: block; font: 600 1rem/1.3 var(--sans); color: var(--text); }

/* A tool in the reference: its name, what it does, and what it takes. */
.tool { margin: 1rem 0 1.4rem; padding: 1.1rem 1.1rem .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 4.6rem; }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.docs-main .tool h3 { margin: 0; font: 600 1.05rem var(--mono); color: var(--gold-bright); }
.tool-title { color: var(--muted); font-size: .92rem; }
.tool .docs-table { margin-bottom: .9rem; background: rgba(0, 0, 0, .2); }
.tool > p { margin: .6rem 0 .9rem; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.reads { color: var(--ok); }
.badge.changes { color: var(--gold-bright); }
.badge.stays { color: var(--danger); }
.needed { color: var(--gold-bright); font-size: .76rem; font-weight: 600; }

@media (min-width: 40rem) {
    .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-howto { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; column-gap: 2.4rem; }
    .docs-screen { margin: 0 0 0 1.65rem; width: auto; }
}

@media (min-width: 44rem) {
    .pub-wide { display: inline; }
    .pub-foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; column-gap: 2rem; }
    .pub-foot-about { grid-column: auto; }
    .pub-foot nav a { padding: .3rem 0; }
    .pub-foot nav:has(.pub-fold) { grid-column: auto; }
    .pub-foot-in:has(.pub-fold) { row-gap: 2rem; }
    .pub-foot-in:has(.pub-fold) .pub-foot-about { margin-bottom: 0; }
    .pub-fold { border-top: 0; }
    .pub-fold summary { display: block; min-height: 0; cursor: default; pointer-events: none; }
    .pub-fold summary::after { content: none; }
    .pub-fold summary h2 { margin: 0 0 .5rem; }
}

/* On a desk the menu stands beside the page and stays in view. The page has it twice: folded for a phone, and plain for here. */
@media (min-width: 58rem) {
    .docs { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 3.2rem; padding-top: 2.6rem; }
    .docs-side { position: sticky; top: 5.2rem; align-self: start; max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .docs-fold, .docs-contents { display: none; }

    /* The rail beside the page lists the guide's sections under its name, so the list at the top of the page is for a phone. */
    .docs-toc { display: none; }
    .docs-menu.docs-rail { display: grid; }
    .docs-rail-only { display: block; }
    .docs-rail-only .docs-halves { margin: 0 0 .8rem; }
    .docs-doors { grid-template-columns: 1fr 1fr; }
    .docs-find.docs-rail { display: block; padding: 0 0 .8rem; }
    .docs-menu { padding: 0; }
    .docs-main .eyebrow { display: block; }

    /* A line of writing stays short enough to read on a desk: about eighty letters. Tables, code and drawings keep the page's width. */
    .docs-main > p, .docs-main > ul, .docs-main > ol, .docs-main > .docs-note, .docs-main .docs-lede { max-width: 40rem; }
}

/* The drawings (_Scene) are styled in drawings.css, which the app loads too. */

/*
    The press kit, in the front page's room (body.home): the hero, Kept's pages in a strip to swipe through, what Kept is in three lengths to
    copy, the film band, everything Kept does, the facts, how to write about Kept, the mark, and where to write. One column on a phone; the
    strip lies flat across a desk, its phones a little out of step. The only gold is in the headline.
*/
.press-hero { padding-block: clamp(2.4rem, 8vw, 5rem) clamp(1.4rem, 4vw, 2.4rem); }
.press-hero h1 { max-width: 16ch; margin: 0; font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: 1.03; letter-spacing: -.008em; text-wrap: balance; }
.press-hero h1 em { color: var(--gold); font-style: normal; }
.press-hero .lede { max-width: 40rem; margin-bottom: 0; }
.press-jump { display: flex; gap: .45rem; margin: clamp(1.4rem, 4vw, 2rem) calc(-1 * var(--pad)) 0; padding: .1rem var(--pad) .3rem; overflow-x: auto; scrollbar-width: none; }
.press-jump::-webkit-scrollbar { display: none; }
.press-jump a { flex: none; padding: .42rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .02); color: var(--text); font-size: .88rem; text-decoration: none; }
.press-jump a:hover, .press-jump a:focus-visible { border-color: var(--muted); }

.press-heading { margin: 0 0 .8rem; font-size: clamp(1.9rem, 5.4vw, 2.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -.006em; }
.press-sub { max-width: 38rem; margin: 0 0 clamp(1.4rem, 4vw, 2.2rem); color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.14rem); line-height: 1.6; }
.press-sub a, .press-note a, .press-small a, .press-share a, .press-rules a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: .18em; }
.press-part { padding-block: clamp(2.2rem, 6vw, 3.8rem); }

/* Kept's pages as a phone shows them: a strip to swipe through on a phone, all six side by side on a desk. */
.press-shots-band { --edge: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad))); padding-block: clamp(1.6rem, 5vw, 2.8rem) clamp(1.6rem, 5vw, 3rem); }
.press-shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 15rem); gap: 1rem; margin: 0; padding: .4rem var(--edge) 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); list-style: none; scrollbar-width: thin; }
.press-shots li { margin: 0; scroll-snap-align: start; }
.press-shots a { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #000; box-shadow: 0 1.4rem 2.6rem -1.2rem rgba(0, 0, 0, .85); transition: transform .3s ease, border-color .3s ease; }
.press-shots a:hover, .press-shots a:focus-visible { border-color: var(--muted); transform: translateY(-4px); }
.press-shots img { display: block; width: 100%; height: auto; }
.press-shots p { margin: .8rem .2rem 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.press-shots strong { display: block; margin-bottom: .15rem; color: var(--text); font-weight: 600; }

/* What Kept is, in three lengths, each with its button to copy it (public.js adds the button). The one line is set large. */
.press-briefs { display: grid; gap: 1rem; align-items: start; }
.press-brief { position: relative; padding: 1.3rem 1.3rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.press-brief h3 { margin: 0 5.5rem .8rem 0; color: var(--faint); font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.press-brief p { margin: 0; color: #e4ddd3; font-size: 1.02rem; line-height: 1.7; }
.press-brief.is-line p { color: var(--text); font: 400 clamp(1.35rem, 4.2vw, 1.8rem)/1.35 var(--serif); text-wrap: balance; }
.press-copy { position: absolute; top: .95rem; right: .95rem; padding: .34rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font: 500 .8rem/1.3 var(--sans); cursor: pointer; }
.press-copy:hover, .press-copy:focus-visible { border-color: var(--muted); color: var(--text); }

/* The film band: the part of Kept that is patent pending, in three steps. */
.press-film { padding-block: clamp(3rem, 9vw, 5.6rem); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .32) 16%, rgba(0, 0, 0, .32) 84%, rgba(0, 0, 0, 0)); }
.press-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.press-steps li { margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); counter-increment: step; }
.press-steps .drawing-tile { margin: 0 0 1.1rem; }
.press-steps h3::before { content: counter(step); margin-right: .6rem; color: var(--faint); font: 500 .95rem/1 var(--sans); }
.press-steps h3 { margin: 0 0 .45rem; font: 400 1.32rem/1.25 var(--serif); }
.press-steps p { margin: 0; color: var(--muted); line-height: 1.65; }
.press-note { max-width: 46rem; margin: 1.6rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.press-note a { white-space: nowrap; }

/* Everything Kept does: a card for each part, by what a person is doing, each a way to the page that says it in full. */
.press-group { margin: 2.4rem 0 .8rem; color: var(--faint); font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.press-sub + .press-group { margin-top: 0; }
.press-does { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.press-does li { margin: 0; }
.press-does a, .press-business { display: block; height: 100%; padding: .9rem 1rem .95rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.press-does a:hover, .press-does a:focus-visible, .press-business:hover, .press-business:focus-visible { border-color: var(--line-strong); background-color: var(--surface-raised); }
.press-does strong, .press-business strong { display: block; margin-bottom: .25rem; color: var(--text); font: 400 1.12rem/1.3 var(--serif); }
.press-does span, .press-business span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.press-business { max-width: 50rem; padding: 1.4rem 1.4rem 1.5rem; background: linear-gradient(135deg, rgb(var(--ember-rgb) / .38), var(--surface) 62%); }
.press-business strong { font-size: 1.35rem; }

/* The facts, a label over each on a phone and beside it on a wider screen. */
.press-facts { max-width: 52rem; margin: 0; border-top: 1px solid var(--line); }
.press-facts > div { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.press-facts dt { color: var(--faint); font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.press-facts dd { margin: 0; line-height: 1.55; }
.press-facts a { color: var(--text); }

/* How to write about Kept, and the pages to link to. */
.press-rules { display: grid; gap: .75rem; max-width: 46rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.press-rules li { position: relative; margin: 0; padding-left: 1.6rem; line-height: 1.65; }
.press-rules li::before { content: ""; position: absolute; top: .6em; left: .15rem; width: .5rem; height: .5rem; border: 1px solid var(--muted); border-radius: 50%; }
.press-rules strong { color: var(--text); font-weight: 600; }
.press-links-head { margin: 0 0 .7rem; color: var(--muted); }
.press-links { display: grid; gap: .5rem; max-width: 52rem; margin: 0; padding: 0; list-style: none; }
.press-links li { margin: 0; }
.press-links a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.press-links a:hover, .press-links a:focus-visible { border-color: var(--line-strong); }
.press-links span { color: var(--muted); font: .84rem var(--mono); overflow-wrap: anywhere; }

/* The mark in three forms, and Kept's colours. */
.press-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.press-marks li { margin: 0; }
/* The mark is drawn for paper, so it is shown on paper, which is also how a writer will use it. */
.press-mark { display: grid; place-items: center; min-height: 10rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f5f1ea; }
.press-mark img { max-width: 100%; height: auto; }
.press-marks p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; margin: .6rem .2rem 0; font-size: .9rem; }
.press-marks p strong { color: var(--text); font-weight: 600; }
.press-marks p a { color: var(--muted); }
.press-colours { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.4rem; color: var(--muted); font-size: .86rem; }
.press-colours span { display: inline-flex; align-items: center; gap: .5rem; }
.press-colours i { width: 1.1rem; height: 1.1rem; border: 1px solid var(--line-strong); border-radius: 5px; }
.press-share, .press-small { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.press-contact { padding-bottom: clamp(3rem, 9vw, 5.6rem); }

@media (min-width: 40rem) {
    .press-jump { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
    .press-does, .press-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .press-facts > div { grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}

@media (min-width: 52rem) {
    .press-briefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .press-brief.is-line { grid-column: 1 / -1; }
    .press-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    /* On a desk the hero stands in the middle, over the strip of Kept's pages. */
    .press-hero, .press-shots-band .home-wrap { text-align: center; }
    .press-hero h1, .press-hero .lede, .press-shots-band .press-sub { margin-inline: auto; }
    .press-hero h1 { max-width: 20ch; }
    .press-jump { justify-content: center; }
    .press-does { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .press-shots { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: var(--wide); margin-inline: auto; padding: .4rem var(--pad) 2.4rem; overflow: visible; }
    .press-shots li:nth-child(even) { margin-top: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .press-shots a { transition: none; }
    .press-shots a:hover, .press-shots a:focus-visible { transform: none; }
}

/*
    The places drinks come from: a page of drawings to choose from, a page for each place, and a page for two side by side. Each is a single
    column to read on a phone, with the drawing the full width of it. The comparison's own parts are the map sheet's (map-*).
*/
.atlas-head { padding-bottom: 0; }
.atlas-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.atlas-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .92rem; text-decoration: none; }
.atlas-jump a:hover, .atlas-jump a:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.atlas-part { padding-block: clamp(2rem, 6vw, 3.4rem) 0; scroll-margin-top: 5rem; }
.atlas-part > h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
.atlas-country h3 { margin: 1.5rem 0 .6rem; color: var(--faint); font-family: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 64rem) {
    .atlas-countries { display: flex; flex-wrap: wrap; gap: 0 .8rem; }
    .atlas-country { flex: 0 0 calc(var(--across) * (100% - 5 * .8rem) / 6 + (var(--across) - 1) * .8rem); min-width: 0; }
    .atlas-country .atlas { grid-template-columns: repeat(var(--across), minmax(0, 1fr)); }
}
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 46%), 1fr)); gap: .8rem; }
.atlas-card { display: grid; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--text); text-decoration: none; transition: border-color .2s, translate .2s; }
.atlas-card:hover, .atlas-card:focus-visible { border-color: var(--gold); translate: 0 -2px; }
.atlas-card svg { display: block; width: 100%; height: auto; }
.atlas-text { display: grid; gap: .2rem; padding: .6rem .7rem .75rem; }
.atlas-text b { font-family: var(--serif); font-size: 1.08rem; font-weight: 400; line-height: 1.2; }
.atlas-text span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.atlas-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0 1.4rem; list-style: none; margin: 0; padding: 0; }
.atlas-pairs li { border-top: 1px solid var(--line); }
.atlas-pairs a { display: grid; gap: .1rem; min-height: 52px; padding: .6rem 0; color: var(--text); text-decoration: none; }
.atlas-pairs b { font-size: .96rem; font-weight: 500; }
.atlas-pairs i { color: var(--muted); font-style: normal; }
.atlas-pairs span { color: var(--muted); font-size: .84rem; }
.atlas-pairs a:hover b, .atlas-pairs a:focus-visible b { color: var(--gold-bright); }

.place-wrap { display: grid; gap: 1.6rem; max-width: 44rem; margin-inline: auto; padding: 0 var(--pad) 1rem; }
.place-hero svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.place-head { display: grid; gap: .3rem; margin-top: -.3rem; }
.place-head h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.08; }
.place-page .map-kicker { margin: 0; color: var(--gold-bright); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.place-known { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.place-known span { color: var(--faint); }
.place-tale { display: grid; gap: .8rem; }
.place-tale h2 { margin: 0; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.2; }
.place-tale > p { margin: 0; font-size: 1.08rem; line-height: 1.65; }
.place-part { display: grid; gap: .7rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.place-part > h2, .place-page .map-why h3, .place-page .map-inglass h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.25; }
.place-part > p { margin: 0; line-height: 1.55; }
.place-bottles { display: grid; gap: .35rem; list-style: none; margin: 0; padding: 0; line-height: 1.4; }
.place-bottles li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.place-bottles a { color: var(--text); text-underline-offset: 3px; }
.place-inside { display: grid; }
.place-inside details { border-bottom: 1px solid var(--line); }
.place-inside summary { display: grid; gap: .05rem; padding: .6rem 1.4rem .6rem 0; cursor: pointer; list-style: none; position: relative; }
.place-inside summary::-webkit-details-marker { display: none; }
.place-inside summary::after { content: "\203A"; position: absolute; right: .2rem; top: .7rem; color: var(--gold-bright); transition: rotate .2s; }
.place-inside details[open] summary::after { rotate: 90deg; }
.place-inside summary b { font-weight: 500; }
.place-inside summary span { color: var(--muted); font-size: .84rem; }
.place-inside p { margin: 0 0 .8rem; line-height: 1.55; }
.place-read { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.place-read a { color: var(--gold-bright); text-underline-offset: 3px; }
.place-more { display: flex; flex-wrap: wrap; gap: .45rem; }
.place-more a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .88rem; text-decoration: none; }
.place-more a:hover, .place-more a:focus-visible { border-color: var(--gold); }
.place-pair-title { margin: 0; font-size: clamp(1.9rem, 7vw, 2.7rem); line-height: 1.12; }
.place-pair-title i { color: var(--muted); font-size: .7em; font-style: normal; }
.place-page .map-answer h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.place-page .map-go { text-align: center; text-decoration: none; }
.place-page .map-bottle { min-height: 4rem; }
.place-start { display: grid; justify-items: start; gap: .7rem; max-width: 44rem; margin: clamp(2rem, 6vw, 3.4rem) auto 0; padding-block: 1.4rem 0; }
.place-start h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; }
.place-start > p { margin: 0; color: var(--muted); line-height: 1.55; }
.place-start .home-small { margin: 0; }

/*
    A grape's or a style's page, in the place pages' frame: its scales as rows of steps in each scale's own color, its wheel lit, the glass it
    is served in on a shelf beside how to serve it, and its names, kinds and foods as quiet lists.
*/
.drink-scales { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.drink-scales li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) 7rem; align-items: center; gap: .8rem; font-size: .92rem; }
.drink-scales b { color: var(--muted); font-weight: 500; }
.drink-bar { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 4px; }
.drink-bar i { height: 8px; border-radius: 4px; background: var(--line-strong); }
.drink-bar i.is-on { background: var(--hue); }
.drink-wheel { margin: .4rem 0 0; }
.drink-wheel .glass-wheel { width: min(100%, 24rem); }
.drink-wheel figcaption { color: var(--muted); font-size: .92rem; line-height: 1.5; text-align: center; }
.drink-names { display: grid; list-style: none; margin: 0; padding: 0; }
.drink-names li { display: grid; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.drink-names li:last-child { border-bottom: 0; }
.drink-names b { font-weight: 600; }
.drink-names span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.drink-serve { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; column-gap: 1.1rem; }
.drink-serve .serve-glass { display: block; width: 100%; height: auto; border-radius: 14px; }
.drink-page .place-part > div { display: grid; gap: .45rem; }
.drink-page .place-part > div > h2 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.25; }
.drink-page .place-part > div > p { margin: 0; line-height: 1.55; }
.drink-page .place-part > div > p b { font-weight: 600; }
.drink-hero-glass { display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: linear-gradient(#3a2418, #140c0a); }
.drink-hero-glass .serve-glass { width: min(62%, 15rem); height: auto; }
.drink-foods, .drink-mix { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.drink-foods li { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.drink-mix { display: grid; gap: 0; }
.drink-mix li { padding: .5rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.drink-mix li:last-child { border-bottom: 0; color: var(--muted); }
.drink-list .map-offer b small { color: var(--gold-bright); font-size: .82rem; font-weight: 500; }
.drink-index .docs-plate { max-width: none; margin: 0; }

/*
    The atlas: the world on a sheet at the head of the page, with a plate for each part of it, each a map with its places numbered and named beside
    it. All of it is drawn like an old printed atlas, on the page's own dark. The maps fill the phone's width, and on a wider screen a plate's map and
    its names sit side by side.
*/
.atlas-page { --atlas-wide: 76rem; }
.atlas-page .k-wine { --kind: #c2465e; --on-kind: #fff6ea; }
.atlas-page .k-spirits { --kind: #df9a5f; --on-kind: #1c120a; }
.atlas-page .k-beer { --kind: #e6bd57; --on-kind: #1c120a; }
.atlas-page .k-cider { --kind: #a4c163; --on-kind: #141a0a; }
.atlas-page .k-sake { --kind: #d6e5ea; --on-kind: #12191c; }
.atlas-page .k-cocktails { --kind: #63bcc2; --on-kind: #0c1a1c; }
.atlas-page .is-off { display: none !important; }
.atlas-title { max-width: 46rem; margin-inline: auto; padding: clamp(1.8rem, 6vw, 3.6rem) var(--pad) 1.4rem; text-align: center; }
.atlas-title .map-kicker { margin: 0 0 .5rem; color: var(--gold-bright); font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.atlas-title h1 { margin: 0; font-size: clamp(2.3rem, 9vw, 4rem); line-height: 1.06; text-wrap: balance; }
.atlas-lead { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }
.atlas-count { margin: .9rem 0 0; color: var(--gold-bright); font-size: .86rem; letter-spacing: .04em; }
.atlas-sheet { display: grid; gap: .9rem; max-width: var(--atlas-wide); margin-inline: auto; padding-inline: var(--pad); }
.atlas-world { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgb(0 0 0 / .45); }
.atlas-frame rect { fill: rgb(var(--gold-rgb) / .05); stroke: var(--gold-bright); stroke-width: 1; stroke-dasharray: 4 3; transition: fill .2s; }
.atlas-frame:hover rect, .atlas-frame:focus-visible rect { fill: rgb(var(--gold-rgb) / .25); }
.atlas-dot { fill: var(--kind); stroke: #0f1a20; stroke-width: .7; pointer-events: none; }
.atlas-dot.is-yours { stroke: #ffe39c; stroke-width: 1.6; }
.plate-sea { fill: #8fb3bf; font-family: var(--serif); font-size: 10.5px; font-style: italic; letter-spacing: .08em; text-anchor: middle; opacity: .85; }
.plate-land { fill: #e4d2b0; font-family: var(--serif); font-size: 11.5px; letter-spacing: .14em; text-anchor: middle; text-transform: uppercase; opacity: .8; }
.atlas-world .plate-sea { font-size: 12px; }
.atlas-plates-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; }
.atlas-plates-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--gold-bright); font-size: .88rem; text-underline-offset: 3px; }
.atlas-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.atlas-filter[hidden] { display: none; }
.atlas-filter button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: 500 .88rem var(--sans); cursor: pointer; }
.atlas-filter button i { width: .62rem; height: .62rem; border-radius: 50%; background: var(--kind); }
.atlas-filter button.is-on { border-color: var(--gold); background: rgb(var(--gold-rgb) / .16); color: var(--gold-bright); }
.atlas-keyline { display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 0; color: var(--muted); font-size: .86rem; }
.atlas-yours-mark { width: .8rem; height: .8rem; border: 2px solid #ffe39c; border-radius: 50%; }

.atlas-plates { display: grid; gap: clamp(2.4rem, 7vw, 4.4rem); max-width: var(--atlas-wide); margin: clamp(2.4rem, 7vw, 4.4rem) auto 0; padding-inline: var(--pad); }
.plate { scroll-margin-top: 5rem; }
.plate > header { display: grid; gap: .3rem; margin-bottom: .9rem; }
.plate h2 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; }
.plate > header p { margin: 0; max-width: 44rem; color: var(--muted); line-height: 1.5; }
.plate-body { display: grid; gap: 1rem; }
.plate-map { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 34px rgb(0 0 0 / .4); }
.plate-pin { cursor: pointer; }
.plate-ring { fill: var(--kind); stroke: #0f1a20; stroke-width: 1; }
.plate-pin.is-yours .plate-ring { stroke: #ffe39c; stroke-width: 2.4; }
.plate-pin text { fill: var(--on-kind); font: 700 12px var(--sans); text-anchor: middle; }
.plate-pin:hover .plate-ring, .plate-pin:focus-visible .plate-ring { stroke: #fff; stroke-width: 2; }
.plate-lead { fill: none; stroke: var(--kind); stroke-width: 1; }
.plate-home { fill: var(--kind); }
.plate-key { display: grid; list-style: none; margin: 0; padding: 0; }
.plate-key li { border-bottom: 1px solid var(--line); }
.plate-key a { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0 .55rem; align-items: start; padding: .55rem 0; color: var(--text); text-decoration: none; }
.plate-key a:hover b, .plate-key a:focus-visible b { color: var(--gold-bright); }
.plate-number { grid-row: span 2; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--kind); color: var(--on-kind); font-size: .78rem; font-weight: 700; }
.plate-key .is-yours .plate-number { box-shadow: 0 0 0 2px #ffe39c; }
.plate-key b { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; line-height: 1.25; }
.plate-key small { color: var(--muted); font-size: .82rem; line-height: 1.35; }

.atlas-page > .atlas-part { max-width: var(--atlas-wide); margin-inline: auto; padding: clamp(2.4rem, 7vw, 4.4rem) var(--pad) 0; }
.atlas-page > .atlas-part > h2 { font-size: clamp(1.8rem, 5.6vw, 2.6rem); line-height: 1.12; }
.atlas-part-lead { max-width: 44rem; margin: 0 0 1rem; color: var(--muted); line-height: 1.55; }
.atlas-pair-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: .9rem; }
.atlas-pair-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); color: var(--text); text-decoration: none; transition: border-color .2s; }
.atlas-pair-card:hover, .atlas-pair-card:focus-visible { border-color: var(--gold); }
.atlas-pair-card svg { display: block; width: 100%; height: auto; }
.atlas-pair-card > span { display: grid; gap: .2rem; padding: .8rem 1rem .95rem; }
.atlas-pair-card b { color: var(--muted); font-size: .84rem; font-weight: 500; }
.atlas-pair-card i { font-style: normal; opacity: .75; }
.atlas-pair-card strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.atlas-all-pairs { margin-top: .9rem; }
.atlas-all-pairs > summary { display: flex; align-items: center; min-height: 44px; color: var(--gold-bright); cursor: pointer; list-style: none; }
.atlas-all-pairs > summary::-webkit-details-marker { display: none; }
.atlas-all-pairs > summary::after { content: "\00a0\203A"; }
.atlas-read { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: .7rem; }
.atlas-read a { display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.atlas-read a:hover, .atlas-read a:focus-visible { border-color: var(--gold); }
.atlas-read b { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; }
.atlas-read span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.atlas-yours-way { max-width: 26rem; margin: 2.4rem auto 0; padding-inline: var(--pad); }
.atlas-yours-way .map-go { text-align: center; text-decoration: none; }
.atlas-page .place-start { padding-inline: var(--pad); }
@media (min-width: 64rem) {
    .plate-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 1.8rem; }
    .plate-small .plate-body { grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); }
    .plate:nth-child(even):not(.plate-small) .plate-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
    .plate:nth-child(even) .plate-map { order: 2; }
}
