/*
    The front page. It borrows the app's colours, its type and its drawings from site.css, and its frame
    from public.css, and lays the app's own pieces out as a page to read: wide on a desk, one column on a
    phone. Nothing here is used inside a cellar.
*/

/* The room the page is in: warm black, lit from the top left by the red every hero has (--ember-rgb), with a little gold from the right. */
body.home {
    background:
        radial-gradient(64rem 36rem at 10% -8rem, rgb(var(--ember-rgb) / .56), rgb(var(--ember-rgb) / 0) 70%) no-repeat,
        radial-gradient(44rem 30rem at 100% 6rem, rgb(var(--gold-rgb) / .08), rgb(var(--gold-rgb) / 0) 70%) no-repeat,
        var(--bg);
}

/*
    Lines break where they read best: headings in even lines, and no last line of one short word. The
    line at the top is left alone, so that when it has to break, "kept." takes a line to itself.
*/
.home h2, .home h3, .home h1.home-heading, .compare-intro h1 { text-wrap: balance; }
.home p { text-wrap: pretty; }
.home-wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }

/* A part that another page links to stops below the bar across the top, not under it. */
.home [id] { scroll-margin-top: 4.8rem; }
.home-part { padding-block: clamp(2.4rem, 7vw, 4.6rem); }
.home-small { margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }
.home-cta { min-width: 11rem; padding-inline: 1.6rem; }
.home-cta::after { content: "›"; margin-left: .55rem; font-size: 1.2em; line-height: 1; }

.home-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: .6rem 0 0; }
.home-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.home-links a::after { content: "›"; margin-left: .3em; }
.home-links a:hover, .home-links a:focus-visible { text-decoration: underline; }

/* What Kept is, in a line, beside a cellar drawn the way the app draws one. */
.home-hero { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(2.4rem, 8vw, 5.5rem) clamp(2rem, 6vw, 4rem); }

.eyebrow { margin: 0 0 1rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

.home-hero h1 { margin: 0; font-size: clamp(2.7rem, 10.5vw, 4.6rem); line-height: 1; letter-spacing: -.008em; }

/*
    The last word is gold, and light crosses it now and then. The gold is the text's own background, which reaches only as far as its
    box: the box is let down below the line, and the line kept where it was, so that the tails of the g and the p are gold too.
*/
.home-hero h1 em {
    display: inline-block;
    padding-right: .08em;
    padding-bottom: .16em;
    margin-bottom: -.16em;
    background: linear-gradient(100deg, var(--gold) 30%, #f4e8c9 48%, var(--gold-bright) 56%, var(--gold) 74%) 100% 0 / 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.lede { max-width: 34rem; margin: 1.3rem 0 1.8rem; color: #d9d1c7; font-size: clamp(1.1rem, 2.6vw, 1.32rem); line-height: 1.5; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.home-more-link { color: var(--text); font-weight: 600; text-decoration: none; }
.home-more-link::after { content: " ↓"; color: var(--gold); }
.home-more-link:hover, .home-more-link:focus-visible { color: var(--gold-bright); }

.home-wall {
    /* Every drawing is measured in one unit, the size of a bottle end, sized so that the one wine fridge stands as large as a real one
       looks across a room, with its shelves of bottles and its magnums in the bay plain to see on a phone. */
    --u: clamp(17px, 6.2vw, 26px);
    position: relative;
    margin: 0;
    padding: clamp(1.4rem, 4vw, 2.4rem) clamp(.8rem, 3vw, 2rem) 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background:
        radial-gradient(90% 55% at 50% 0, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #181415, #120f0f);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 90px rgb(var(--ember-rgb) / .24);
}

.home-racks { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 1.5rem clamp(.6rem, 1.6vw, .9rem); }
.home-racks .standing-name { color: var(--muted); font-size: .8rem; }

/* A wine being looked for dims every other bottle on the wall, not only the ones in its own rack. */
.home-racks:has(.lit) .filled:not(.lit) { opacity: .5; }
.home-racks .filled { transition: opacity .35s ease; }

/* Under the racks: the wines that can be found, and which is where. */
.finder { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }
.finder-ask { margin: 0 0 .6rem; color: var(--muted); font-size: .84rem; }
.finder-wines { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.finder-wines .chip { min-height: 34px; padding: 0 .8rem; background: none; color: var(--text); font: 500 .84rem var(--sans); cursor: pointer; }
.finder-where { min-height: 2.9em; margin: .7rem 0 0; color: var(--text); font: 500 1rem/1.4 var(--sans); }

/* What the colours mean. */
.home-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.finder:not([hidden]) + .home-key { margin-top: .4rem; padding-top: 0; border-top: 0; }
.home-key span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.home-key .dot { width: .6rem; height: .6rem; }


/* Section headings: the words, then a rule. Under them, a paragraph that says what the section is about. */
.home-heading { display: flex; align-items: center; gap: 1rem; margin: 0 0 .9rem; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.15; }
.home-heading::after { content: ""; flex: 1; min-width: 1.5rem; height: 1px; background: linear-gradient(90deg, rgb(var(--gold-rgb) / .5), rgb(var(--gold-rgb) / 0)); }
.home-sub { max-width: 44rem; margin: 0 0 clamp(1.6rem, 5vw, 2.6rem); color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

/* The three steps. Each says what happens and shows a piece of the app doing it. */
.home-steps { padding-block: clamp(2.6rem, 7vw, 4.6rem) clamp(2rem, 6vw, 4rem); }
.home-step { display: grid; gap: 1.6rem; align-items: center; }
.home-step + .home-step { margin-top: clamp(2.8rem, 8vw, 5rem); }
.home-step h2, .home-step h3 { margin: .5rem 0 .6rem; font: 400 clamp(1.5rem, 4.2vw, 2rem)/1.2 var(--serif); }
.home-step-words p { max-width: 31rem; margin: 0 0 .7rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.home-step-words p + p { color: var(--text); }

.home-number {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(var(--gold-rgb) / .6);
    border-radius: 50%;
    color: var(--text);
    font: 400 1.25rem/1 var(--serif);
}

/* A piece of the app, shown and not used: nothing in it can be tapped. */
.home-show { max-width: 27rem; width: 100%; margin-inline: auto; pointer-events: none; -webkit-user-select: none; user-select: none; }
.home-show .card { margin: 0; padding: 1.2rem; }
.home-show .wine:last-child, .home-show .advice:last-child { margin-bottom: 0; }
.home-producer { margin: 0; font: 400 1.45rem/1.15 var(--serif); }
.home-quiet { border-color: var(--line); background: var(--surface); }

/* A phone, to show a page of the app in. */
.phone {
    width: min(100%, 21rem);
    margin-inline: auto;
    padding: .6rem;
    border-radius: 2.7rem;
    background: linear-gradient(150deg, #423c3b, #191515 38%, #0b0909);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px rgba(0, 0, 0, .55);
}

.phone-screen {
    position: relative;
    min-height: 31rem;
    padding: 2.5rem 1rem 1.2rem;
    border-radius: 2.15rem;
    background: var(--bg);
    overflow: hidden;
}

.phone-screen::before { content: ""; position: absolute; top: .65rem; left: 50%; width: 5.2rem; height: 1.25rem; translate: -50% 0; border-radius: 999px; background: #000; }

/*
    A bottle being recognised. Two pictures share the screen and take turns: the bottle in the viewfinder
    with the beam passing down it, and then what Kept made of it, arriving a line at a time. One length of
    time runs through all of it, so the turns stay in step however long the page is left open.
*/
.reader { --turn: 13s; display: grid; }
.reader > * { grid-area: 1 / 1; min-width: 0; }
.reader-view { position: relative; height: 15.5rem; border-radius: 18px; background: #0a0808; box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .35), 0 0 40px rgb(var(--gold-rgb) / .14); overflow: hidden; }

/* A photographic sample label, with the existing beam and camera corners over it. */
.reader-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.reader-label-photo { object-fit: cover; object-position: center 58%; }
.reader .scan-caption { margin-top: .9rem; font-size: 1.05rem; text-align: center; }
.reader .scan-finds { margin-top: .7rem; }

.reader-found { display: grid; align-content: start; gap: .7rem; }
.reader-found .wine-head { grid-template-columns: 78px minmax(0, 1fr); gap: .9rem; align-items: center; margin: 0; }
.reader-found .wine-head .thumb { width: 78px; height: 104px; border-radius: 11px; }
.reader-found .thumb.drawn.large .drawn-initials { font-size: 1.6rem; }
.reader-found .thumb.drawn.large .drawn-year { font-size: .58rem; }
.reader-found .facts { margin: 0; font-size: .88rem; }
.reader-note { margin: 0; font-size: .82rem; }
.reader-place { margin: 0; padding: .7rem .9rem; }
.reader-place strong { font-size: 1.1rem; }
.reader-save { min-height: 46px; margin-top: .1rem; }

/* A button in a picture of the app is drawn quietly, so that the page's own button is the one gold thing beside it. */
.phone .btn { border-color: rgb(var(--gold-rgb) / .55); background: transparent; color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
    .reader-shot { animation: reader-shot var(--turn) infinite; }
    .reader-found { animation: reader-found var(--turn) infinite; }
    .reader-found > :nth-child(1) { animation: rise-a var(--turn) infinite; }
    .reader-found .facts li:nth-child(1) { animation: rise-b var(--turn) infinite; }
    .reader-found .facts li:nth-child(2) { animation: rise-c var(--turn) infinite; }
    .reader-found .facts li:nth-child(3) { animation: rise-d var(--turn) infinite; }
    .reader-note { animation: rise-e var(--turn) infinite; }
    .reader-place { animation: rise-f var(--turn) infinite; }
    .reader-save { animation: rise-g var(--turn) infinite; }

    /* Until the phone is on the screen its turns wait, so that whoever scrolls to it sees them from the start. */
    .js [data-plays]:not(.is-playing) * { animation-play-state: paused !important; }

    .home-hero h1 em { animation: sheen 7s ease-in-out infinite; }

    /* The bottles land in the racks one after another as the page opens. The script gives each its turn. */
    .js .home-wall .filled:not(.lit) { animation: land .5s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: var(--d, 0ms); }

    .home-hero .home-pitch > * { animation: arrive .6s cubic-bezier(.2, .7, .2, 1) backwards; }
    .home-hero .home-pitch > :nth-child(2) { animation-delay: .06s; }
    .home-hero .home-pitch > :nth-child(3) { animation-delay: .12s; }
    .home-hero .home-pitch > :nth-child(4) { animation-delay: .18s; }
    .home-hero .home-pitch > :nth-child(5) { animation-delay: .24s; }
    .home-wall { animation: arrive .8s .15s cubic-bezier(.2, .7, .2, 1) backwards; }

    /* A chart waits until it is scrolled to, and then draws itself. */
    .js .rises:not(.in) .bar-fill, .js .rises:not(.in) .window-bar { animation: none; transform: scaleX(0); }
}

/* With less movement asked for, only what Kept made of the bottle is shown. */
@media (prefers-reduced-motion: reduce) {
    .reader-shot { display: none; }
}

/*
    A tasting. The phone takes turns as the one above does: a filled-in sheet in the viewfinder, and then
    what Kept read from it, a wine at a time. Under it, the sheets as they print, what each wine scored,
    and what one guest has liked.
*/
/* A sheet is a page, so its viewfinder is as tall as a page held upright, and shows it from its head to its foot. */
.sheet-reader .reader-view { height: auto; aspect-ratio: 1100 / 1236; }
.sheet-reader .reader-photo { object-position: center top; }
.sheet-read-head p { margin: 0; }
.sheet-read-head .muted { margin-top: .15rem; font-size: .88rem; }
.sheet-read { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.sheet-read li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .1rem .7rem; align-items: center; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .03); }
.sheet-read b { grid-row: span 2; color: var(--gold-bright); font: 400 1.6rem/1 var(--serif); text-align: center; }
.sheet-read strong { font: 500 .92rem/1.25 var(--sans); overflow-wrap: anywhere; }
.sheet-read span { color: var(--muted); font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
    .sheet-read li:nth-child(1) { animation: rise-b var(--turn) infinite; }
    .sheet-read li:nth-child(2) { animation: rise-c var(--turn) infinite; }
    .sheet-read li:nth-child(3) { animation: rise-d var(--turn) infinite; }
    .sheet-read li:nth-child(4) { animation: rise-e var(--turn) infinite; }
    .sheet-reader .reader-note { animation-name: rise-f; }
}

.home-tasting { margin-top: clamp(2rem, 6vw, 3.4rem); }
.home-tasting h3 { margin-top: 1rem !important; }
.home-sheets { display: block; width: 100%; height: auto; }
.home-standings { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.home-standings li { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .03); }
.home-standings li:first-child { border-color: rgb(var(--gold-rgb) / .5); background: rgb(var(--gold-rgb) / .07); }
.home-standings b { color: var(--gold-bright); font: 400 1.55rem/1 var(--serif); text-align: center; }
.home-standings strong { display: block; font: 500 .96rem/1.25 var(--sans); overflow-wrap: anywhere; }
.home-standings small { color: var(--muted); font-size: .8rem; }
.home-likes > p { display: grid; gap: .1rem; margin: 0 0 .7rem !important; }
.home-likes > p strong { color: var(--text); font: 600 1.05rem/1.3 var(--sans); }
.home-likes > p span { color: var(--muted); font-size: .86rem; }
.home-likes .taste-bars { margin: 0; padding: 0; list-style: none; }

@keyframes reader-shot { 0%, 30% { opacity: 1; scale: 1; } 34%, 96% { opacity: 0; scale: .95; } 100% { opacity: 1; scale: 1; } }
@keyframes reader-found { 0%, 33% { opacity: 0; } 37%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes rise-a { 0%, 35% { opacity: 0; translate: 0 10px; } 39%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-b { 0%, 40% { opacity: 0; translate: 0 10px; } 44%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-c { 0%, 45% { opacity: 0; translate: 0 10px; } 49%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-d { 0%, 50% { opacity: 0; translate: 0 10px; } 54%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-e { 0%, 55% { opacity: 0; translate: 0 10px; } 59%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-f { 0%, 61% { opacity: 0; translate: 0 10px; } 65%, 100% { opacity: 1; translate: 0 0; } }
@keyframes rise-g { 0%, 67% { opacity: 0; translate: 0 10px; } 71%, 82% { opacity: 1; translate: 0 0; scale: 1; filter: none; } 85% { scale: .96; filter: brightness(1.25); } 88%, 100% { opacity: 1; translate: 0 0; scale: 1; filter: none; } }
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: -30% 0; } }
@keyframes land { from { opacity: 0; scale: .2; } }

/* A suggested place, beside the rack it is in with that wine's bottles lit. */
.home-place { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.home-place-rack { --u: 4.4px; }
.home-place strong { font-size: 1.2rem; }

/* Tonight. The band it is in runs the width of the page, and the cards are the cellar page's own. */
.home-band { padding-block: clamp(2.6rem, 7vw, 4.6rem); border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .12)); }

/* The cards of tonight are a strip to swipe along inside the page. They are never what makes the page wider than the
   phone: the band clips what it holds, so that the page, and anything pinned to it, is as wide as the screen. */
.home-band { overflow-x: clip; }
.home-tonight { margin-inline: 0; }
.home-tonight .tonight-track { box-sizing: border-box; width: 100%; }
.home-tonight { margin: 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
.home-tonight .tonight-track { max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); scroll-padding-inline: var(--pad); pointer-events: auto; }
.home-tonight .pour { pointer-events: none; }

/* The years each wine should be at its best, as bars on one line of years, with today marked. */
.home-windows { display: grid; gap: 1.4rem; align-items: center; margin-top: clamp(2rem, 5vw, 3.2rem); }
.home-windows h2, .home-windows h3 { margin: 0 0 .6rem; font: 400 clamp(1.4rem, 4vw, 1.8rem)/1.2 var(--serif); }
.home-windows-words p { max-width: 28rem; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.home-stages { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem !important; font-size: .86rem; }
.home-stages span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.home-stages i { width: 1.4rem; height: .5rem; border-radius: 999px; background: currentColor; }

/* The top of the card leaves room for the word over today's line, so that it sits inside the card and not on its edge. */
.windows { margin: 0; padding: 1.9rem 1.1rem 1rem; }
.windows-plot { --names: 7.4rem; --gap: .7rem; position: relative; display: grid; gap: .6rem; padding-bottom: 1.7rem; }
.window { display: grid; grid-template-columns: var(--names) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.window-name { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--muted); font-size: .8rem; }
.window-name .dot { flex: none; width: .5rem; height: .5rem; }
.window-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* On a phone the years along the foot are every fourth one, so that each is read on its own. */
@media (max-width: 39.99rem) {
    .windows-years span:nth-child(even) { display: none; }
}
.window-track { position: relative; height: 13px; border-radius: 999px; background: rgba(255, 255, 255, .045); }
.window-bar { position: absolute; inset: 0 auto 0 var(--from); width: var(--wide); border-radius: 999px; background: currentColor; transform-origin: left; animation: grow-across .9s cubic-bezier(.2, .7, .2, 1) both; }

/* A window that runs past the last year shown fades off the end. */
.window-bar.runs-on { border-radius: 999px 0 0 999px; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.windows-years { position: absolute; inset: auto 0 0 calc(var(--names) + var(--gap)); height: 1rem; color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.windows-years span { position: absolute; top: 0; }
.windows-now { position: absolute; top: -.3rem; bottom: 1.3rem; left: calc(var(--names) + var(--gap) + (100% - var(--names) - var(--gap)) * var(--now)); width: 2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 10px rgba(245, 237, 230, .6); }
.windows-now b { position: absolute; bottom: calc(100% + 2px); left: 50%; translate: -50% 0; color: var(--text); font: 600 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* Filming: a strip of pictures with the beam going along it, what came out of it, and what to do. */
.home-pair { display: grid; gap: 1rem; }
.home-film { display: grid; align-content: start; gap: .2rem; margin: 0; padding: 1.2rem; }
.home-film h2, .home-film h3 { margin: 1.4rem 0 .3rem; font: 400 1.35rem/1.25 var(--serif); }
.home-film p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-film .scan-beam.across { display: block; }
/* A still from a walk round a cellar: a dim room with something like a rack standing in it, a different one in each. */
.home-reel li { position: relative; background: linear-gradient(160deg, #342e2d, #171313); }
.home-reel li:nth-child(2n) { background: linear-gradient(200deg, #2d2827, #120f0f); }
.home-reel:not(.labels) li::after { content: ""; position: absolute; inset: 20% 30% 14%; border: 1px solid rgb(var(--gold-rgb) / .4); border-radius: 2px; background: repeating-linear-gradient(0deg, rgb(var(--gold-rgb) / .28) 0 1px, transparent 1px 5px); }
.home-reel:not(.labels) li:nth-child(2)::after { inset: 30% 18% 14% 40%; }
.home-reel:not(.labels) li:nth-child(3)::after { inset: 12% 42% 14% 22%; background: repeating-linear-gradient(90deg, rgb(var(--gold-rgb) / .28) 0 1px, transparent 1px 5px); }
.home-reel:not(.labels) li:nth-child(4)::after { inset: 34% 14% 14% 14%; }
.home-reel:not(.labels) li:nth-child(5)::after { inset: 16% 22% 14% 46%; background: repeating-linear-gradient(90deg, rgb(var(--gold-rgb) / .28) 0 1px, transparent 1px 5px); }
.home-reel:not(.labels) li:nth-child(6)::after { inset: 26% 36% 14% 20%; }
.home-label-film { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; }

/* The racks a walkthrough came to, drawn empty, as the page that proposes them draws them. */
.home-proposed { --u: 3px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .8rem 1rem; min-height: 7.4rem; margin-top: 1.1rem; }
.home-proposed .standing-name { margin-top: .4rem; color: var(--muted); font-size: .72rem; white-space: nowrap; }

/* The wines a film of bottles came to. */
.home-spotted { display: grid; align-content: center; gap: .35rem; min-height: 7.4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.home-spotted li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); font: 500 .93rem var(--sans); }
.home-spotted span { min-width: 0; line-height: 1.3; }
.home-spotted b { color: var(--gold-bright); font-weight: 600; }
.home-after { text-align: center; }

/* Words on one side and a picture on the other, on a screen wide enough for both. */
.home-split { display: grid; gap: 2rem; align-items: center; }
.home-split .home-heading::after { display: none; }
.home-split .home-sub { margin-bottom: 1.2rem; }
.home-asks { margin: 0 0 .2rem; padding: 0; }
.home-asks .chip { background: none; color: var(--text); font: 500 .9rem var(--sans); cursor: pointer; }

/* A conversation in a phone. It is as tall as its longest answer, so that changing the question moves nothing below it. */
.home-talk { width: min(100%, 23rem); }
.home-talk .phone-screen { min-height: 40rem; padding-inline: .9rem; }
.home-talk .turns { gap: .9rem; }
.home-talk .said p { font-size: .96rem; line-height: 1.55; }
.home-talk .answer-card { pointer-events: none; }
.home-talk .turn { animation: none; }

/* Your own AI: what it is, and beside that what it may and may not do. */
.home-own { display: grid; gap: 1.4rem; margin: clamp(2rem, 6vw, 3.4rem) 0 0; padding: clamp(1.2rem, 4vw, 2rem); border-color: var(--line-strong); }
.home-own h3 { margin: 0 0 .5rem; font: 400 1.5rem/1.2 var(--serif); }
.home-own p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-may { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.home-may li { position: relative; padding-left: 2.2rem; color: var(--muted); line-height: 1.5; }
.home-may strong { color: var(--text); font-weight: 650; }
.home-may li::before { position: absolute; top: .1rem; left: 0; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border: 1px solid currentColor; border-radius: 50%; font: 700 .8rem/1 var(--sans); }
.may-yes::before { content: "✓"; color: var(--ok); }
.may-ask::before { content: "?"; color: var(--gold-bright); }
.may-no::before { content: "✕"; color: var(--danger); }

/* The cellar added up: three numbers, and two of the reports page's lists of bars. */
.home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0 0 .8rem; }
.home-tiles .card { margin: 0; padding: .8rem .7rem; }
.home-tiles dt { color: var(--muted); font-size: .8rem; }
.home-tiles dd { margin: .2rem 0 0; font: 650 clamp(1.3rem, 5vw, 2rem)/1.15 var(--sans); font-variant-numeric: tabular-nums; }
.home-tiles dd.tile-note { margin-top: .3rem; color: var(--muted); font: 400 .78rem/1.3 var(--sans); }
.home-charts { display: grid; gap: .8rem; }
.home-charts .card { margin: 0; padding: 1rem 1.1rem .6rem; }
.home-charts h2, .home-charts h3 { margin: 0 0 .4rem; color: var(--muted); font: 500 .86rem var(--sans); }

/* The bars are quiet, and each chart's longest is gold: the one thing the eye is meant to go to. The shortest are still a bar. */
.home-charts .bar-fill { --series: rgb(var(--muted-rgb) / .55); min-width: 6px; border-radius: 3px; }
.home-charts .bar-fill.is-most { --series: var(--gold); }

/* Spirits and beer. */
.home-trio { display: grid; gap: 1rem; }
.home-trio .card { display: grid; align-content: start; margin: 0; padding: 1.2rem; }
.home-trio h3 { margin: 1rem 0 .3rem; font: 400 1.3rem/1.25 var(--serif); }
.home-trio p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-trio .wine { margin-bottom: .5rem; }
.home-beers { pointer-events: none; }

/* A bottle of spirits with what is left in it, which follows the step that is tapped. */
.home-level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; min-height: 8.4rem; }
.level-bottle { position: relative; width: 3.5rem; height: 8.2rem; background: rgba(255, 255, 255, .09); clip-path: polygon(37% 0, 63% 0, 63% 20%, 100% 34%, 100% 97%, 94% 100%, 6% 100%, 0 97%, 0 34%, 37% 20%); }
.level-bottle i { position: absolute; inset: auto 0 0; height: calc(var(--left) * .66); background: linear-gradient(180deg, #e2a03c, #9a5414); transition: height .6s cubic-bezier(.3, 1.4, .5, 1); }
.level-bottle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, .22) 22%, rgba(255, 255, 255, 0) 34%); }
.level-name { margin: 0 0 .6rem !important; color: var(--text) !important; font: 600 1.02rem var(--sans); }
.level-steps { margin: 0; padding: 0; gap: .35rem; }
.level-steps .chip { min-height: 36px !important; padding: 0 .7rem; background: none; color: var(--text); font: 500 .86rem var(--sans); cursor: pointer; }

/* A strength the label printed, and one that Kept supplied. */
.home-strengths { pointer-events: none; }
.home-strengths .strength { margin-right: .3rem; color: var(--text); font-weight: 650; }
.home-strengths .strength.estimate { color: var(--gold-bright); }

/* Four plain statements about what happens to what is yours. */
.home-quad { display: grid; gap: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: rgba(0, 0, 0, .2); list-style: none; overflow: hidden; }
.home-quad li { padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.home-quad li:last-child { border-bottom: 0; }
.home-quad h3 { margin: 0 0 .4rem; font: 400 1.3rem/1.25 var(--serif); color: var(--text); }
.home-quad p { margin: 0; color: var(--muted); line-height: 1.6; }

/* The tools, by name: the ones that read, and in gold the ones that change. */
.home-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.home-tools code { padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .3); color: var(--muted); font: .8rem var(--mono); }
.home-tools code.changes { border-color: rgb(var(--gold-rgb) / .4); color: var(--gold-bright); }

/* The prices: a card for a household and a card for a business, each with what it costs and what it buys. */
.home-plans { display: grid; gap: 1rem; }
.plan { display: grid; align-content: start; margin: 0; padding: clamp(1.3rem, 4vw, 2rem); border-color: rgb(var(--gold-rgb) / .5); background: var(--surface); }
.plan.business { border-color: rgb(var(--ember-rgb)); background: radial-gradient(110% 80% at 100% 0, rgb(var(--ember-rgb) / .42), rgb(var(--ember-rgb) / 0) 62%), var(--surface); }
.plan-for { margin: 0; color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.plan h3 { margin: .3rem 0 .9rem; font: 400 1.6rem/1.2 var(--serif); }
.price { margin: 0; color: var(--muted); font: 1.05rem var(--sans); }
.price b { margin-right: .25rem; color: var(--gold); font: 400 clamp(2.8rem, 10vw, 3.6rem)/1 var(--serif); }
.plan.enterprise { border-color: var(--line); background: var(--surface); }
.plan.enterprise .price b { display: block; margin: .5rem 0 .35rem; font-size: clamp(1.9rem, 6vw, 2.3rem); line-height: 1.15; }
.price-note { margin: .45rem 0 0; color: var(--muted); font-size: .92rem; }
.plan-in { display: grid; gap: .6rem; margin: 1.4rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan-in li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.plan-in li::before { content: "✓"; position: absolute; top: .05rem; left: 0; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1px solid currentColor; border-radius: 50%; color: var(--ok); font: 700 .72rem/1 var(--sans); }
.home-price-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 1.4rem 0 0; color: var(--muted); font-size: .92rem; }

/*
    A tablet by the cellar door, showing the cellar page as the app shows it there: what to open tonight, where it is, and the two
    things to photograph. On a phone it stands upright; on a desk it is turned on its side and the two halves sit side by side.
*/
.tablet { max-width: 46rem; margin: 0 auto; padding: .7rem; border-radius: 2rem; background: linear-gradient(150deg, #423c3b, #191515 38%, #0b0909); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px rgba(0, 0, 0, .55); pointer-events: none; -webkit-user-select: none; user-select: none; }
.tablet-screen { position: relative; display: grid; gap: 1rem; align-content: start; padding: 1.6rem 1rem 1.1rem; border-radius: 1.5rem; background: var(--bg); overflow: hidden; }
.tablet-screen::before { content: ""; position: absolute; top: .55rem; left: 50%; width: .45rem; height: .45rem; translate: -50% 0; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.tablet-search { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--faint); font-size: .95rem; }
.tablet .pour { margin: 0; }
@media (min-width: 46rem) {
    .tablet { padding: .9rem; border-radius: 2.4rem; }
    /* The search across the top, and what to open tonight under it, at the width the cellar page gives a card. */
    .tablet-screen { justify-items: center; gap: 1.2rem; padding: 1.4rem 1.4rem 1.3rem 2.2rem; }
    .tablet-screen > * { width: min(100%, 26rem); }
    .tablet-screen::before { top: 50%; left: .8rem; translate: 0 -50%; }
    .tablet-search { grid-column: 1 / -1; }
}

/* How it works at the door, in three short pieces under the picture. */
.door-how { margin-top: 1.6rem; }
.door-how article { padding: 0 .2rem; }
.door-how h3 { margin: 0 0 .3rem; }
.door-how b { color: var(--text); font-weight: 650; }

/* Questions, each folded under itself. */
.home-answers { display: grid; gap: .6rem; max-width: 46rem; }
.home-answers details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.home-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .6rem 1.1rem; font: 600 1.02rem/1.35 var(--sans); cursor: pointer; list-style: none; }
.home-answers summary::-webkit-details-marker { display: none; }
.home-answers summary::after { content: "+"; flex: none; color: var(--gold); font: 400 1.5rem/1 var(--sans); transition: rotate .2s; }
.home-answers details[open] summary::after { rotate: 45deg; }
.home-answers p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--muted); line-height: 1.65; }
.home-answers b { color: var(--text); font-weight: 650; }

/* The way in, once more, for someone who read to the end. */
.home-close { display: grid; justify-items: center; gap: .2rem; padding-block: clamp(3rem, 9vw, 6rem) 0; text-align: center; }
.home-close img { border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.home-close h2 { margin: 1.3rem 0 0; font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.1; }
.home-close p { margin: .5rem 0 1.6rem; color: var(--muted); }

/* The personal offer. */
.home-plans.home-plans-personal { grid-template-columns: minmax(0, 1fr); max-width: 38rem; }
.home-offers { display: grid; align-items: start; gap: 1.5rem; }
.home-pair > .card h3, .home-trio > .card h3 { margin-top: 0; }
.home-pair > .card h3 { font: 400 1.3rem/1.25 var(--serif); }
.home-pair > .card > .home-level + h3 { margin-top: 1.2rem; }
.home-pair > .card p, .home-trio > .card p { color: var(--muted); line-height: 1.65; }
.home-pair > .card, .home-trio > .card { padding: 1.4rem; }
.business-intro h1 { max-width: 48rem; margin: 0; font-size: clamp(2.4rem, 7vw, 4.3rem); line-height: 1.08; text-wrap: balance; }


/* A field that is on the form for programs to fill in and give themselves away. It is kept where nobody sees it or tabs to it. */
.leave-blank { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.business-plans { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
    .home-plans.business-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 40rem) {
    .windows-plot { --names: 10.5rem; }
    .home-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-quad li:nth-child(odd) { border-right: 1px solid var(--line); }
    .home-quad li:nth-last-child(-n + 2) { border-bottom: 0; }
    .door-photo { aspect-ratio: 3 / 2; }
}

/* On a desk the words and the picture sit side by side, and each step puts its picture on the other side from the last. */
@media (min-width: 58rem) {
    .home-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 3rem; }

    /* Beside the picture the headline has most of the width, and is sized so that it is four lines at most and the button is in sight. */
    .home-hero h1 { font-size: clamp(3.1rem, 5.4vw, 4.6rem); }

    /* On a wide screen the fridge keeps to the size it has on a large phone, and the wines to find stand beside it, not under it. */
    .home-wall { --u: clamp(22px, 1.8vw, 26px); display: grid; grid-template-columns: auto minmax(0, 24rem); justify-content: center; align-items: center; column-gap: clamp(2.5rem, 5vw, 4.5rem); padding-inline: 1.1rem; }
    .home-wall .finder { margin-top: 0; padding-top: 0; border-top: 0; text-align: left; }
    .home-wall .finder-wines { justify-content: flex-start; }
    .home-step { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 4rem; }
    .home-step:nth-of-type(even) .home-step-words { order: 2; }
    .home-step:nth-of-type(even) { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
    .home-tonight .tonight-track { overflow: visible; }
    .home-tonight .pour { flex: 1 1 0; }
    .home-windows { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; }
    .home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
    .home-own { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
    .home-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plan { padding: 1.5rem 1.4rem; }
    .plan .price b { font-size: 3.1rem; }
    .plan.enterprise .price b { font-size: 2rem; }
}

/* The hero shows the trick: a label photographed and what Kept made of it, beside the ask. */
.home-hero-show { display: grid; justify-items: center; }

/* The comparison page: a plain statement and a table. On a wide screen it is a real table, one column for each product with Kept's lit,
   and on a phone each row is a card that names the product beside each of its lines. */
.compare-intro { padding-block: clamp(2.4rem, 8vw, 5rem) clamp(1.4rem, 4vw, 2.4rem); }
.compare-intro h1 { max-width: 20ch; margin: 0; font-size: clamp(2.3rem, 8.4vw, 4rem); line-height: 1.04; letter-spacing: -.008em; }
.compare-intro .lede { max-width: 40rem; }

.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; }

@media (max-width: 57.99rem) {
    .compare-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
    .compare-table table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
    .compare-table tr { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
    .compare-table tbody th { padding: .95rem 1rem .6rem; font: 400 1.3rem/1.25 var(--serif); }
    .compare-table td { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: .8rem; padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; line-height: 1.5; }
    .compare-table td::before { content: attr(data-label); color: var(--faint); font-size: .84rem; font-weight: 600; line-height: 1.8; }
    .compare-table td.is-kept { background: rgb(var(--gold-rgb) / .09); color: var(--text); }
    .compare-table td.is-kept::before { color: var(--gold-bright); }
}

@media (min-width: 58rem) {
    .compare-table table { table-layout: fixed; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
    .compare-table thead th { padding: 1rem .9rem; border-bottom: 1px solid var(--line-strong); color: var(--text); font-size: .95rem; font-weight: 600; }
    .compare-table thead th.is-kept { background: rgb(var(--gold-rgb) / .13); color: var(--gold-bright); }
    .compare-table tbody th { width: 9.2rem; padding: 1.05rem .9rem; border-bottom: 1px solid var(--line); font: 400 1.15rem/1.3 var(--serif); }
    .compare-table td { padding: 1.05rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.55; }
    .compare-table td.is-kept { background: rgb(var(--gold-rgb) / .07); color: var(--text); }
    .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
}

.compare-who { display: grid; gap: 1rem; }
.compare-who > .card { margin: 0; padding: 1.4rem; }
.compare-who h3 { margin: 0 0 .35rem; font: 400 1.5rem/1.2 var(--serif); }
.compare-who p { margin: .7rem 0 0; color: var(--muted); line-height: 1.65; }
.compare-who .compare-verdict { margin-top: 0; color: var(--text); font: 400 1.12rem/1.4 var(--serif); }
@media (min-width: 58rem) {
    .compare-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .compare-who .compare-wide { grid-column: 1 / -1; }
}

.compare-sources ul { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.compare-sources li a { color: var(--muted); font-size: .92rem; text-underline-offset: 3px; }
.compare-sources li a:hover, .compare-sources li a:focus-visible { color: var(--text); }

/* What a company does not offer is said outright, with a cross, as plainly as what it does. */
.compare-no { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); font-weight: 600; }
.compare-no svg { flex: none; width: .72rem; height: .72rem; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; }
.compare-gets .card h3 { font: 400 1.3rem/1.25 var(--serif); }
.compare-ai .card h3 { font: 400 1.3rem/1.25 var(--serif); }

/* What a person can say to their assistant, as they would say it. */
.compare-says { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.compare-says li { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1.4; }
.compare-says-note { margin: 0 0 1.6rem; }

/*
    The calm page. The front page is a few parts with room round each: the hero, three steps, the cellar drawn, what to open
    tonight, the rest in six lines, the price and the questions. No part has a card round it, nothing asks twice, and no bar
    follows the visitor. The type is larger and the spaces are larger, and that is all the design there is.
*/
.home-calm .home-part { padding-block: clamp(3.4rem, 10vw, 7rem); }
.home-calm .home-heading { display: block; margin: 0 0 1rem; font-size: clamp(1.9rem, 5.4vw, 3.1rem); font-weight: 400; letter-spacing: -.006em; }
.home-calm .home-heading::after { content: none; }
.home-calm .home-sub { max-width: 36rem; margin-bottom: clamp(1.8rem, 5vw, 3rem); font-size: clamp(1.05rem, 2.4vw, 1.2rem); }
.home-calm .home-band { padding-block: clamp(3.4rem, 10vw, 7rem); border-block: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .28) 18%, rgba(0, 0, 0, .28) 82%, rgba(0, 0, 0, 0)); }

/* Three steps, side by side on a desk and one under another on a phone. A line over each, a numeral, a few words. */
.home-three-list { display: grid; gap: clamp(1.8rem, 5vw, 2.6rem); margin: clamp(1.8rem, 5vw, 3rem) 0 0; padding: 0; list-style: none; }
.home-three-list li { padding-top: 1.2rem; border-top: 1px solid var(--line-strong); }
.home-three-list .home-number { display: block; width: auto; height: auto; margin-bottom: .7rem; border: 0; border-radius: 0; color: var(--gold); font: 400 1.05rem var(--serif); letter-spacing: .12em; }
.home-three-list h3 { margin: 0 0 .5rem; font: 400 clamp(1.4rem, 3.4vw, 1.85rem)/1.2 var(--serif); }
.home-three-list p { max-width: 24rem; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
/* Each step has its drawing at its left with its number under it, in place of the number's own line, so the steps take no more room. */
.home-three-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
.home-step-art { display: grid; justify-items: center; gap: .45rem; padding-top: .2rem; }
.home-three-list .home-step-art .home-number { margin: 0; font-size: .95rem; }
@media (min-width: 52rem) {
    .home-three-list { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.4rem); }
}

/* The rest, in six lines: a heading and a sentence under a hairline. No cards, no pictures. */
.home-more { display: grid; gap: 0 clamp(2rem, 5vw, 3.6rem); margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; padding: 0; list-style: none; }
.home-more li { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line); }
.home-more h3 { margin: 0 0 .4rem; font: 400 clamp(1.25rem, 3vw, 1.5rem)/1.25 var(--serif); }
.home-more p { max-width: 24rem; margin: 0; color: var(--muted); line-height: 1.6; }
@media (min-width: 46rem) {
    .home-more { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 66rem) {
    .home-more { grid-template-columns: repeat(3, 1fr); }
}

/*
    The price: what a cellar pays, the way in, and what it buys, on one card. On a desk what it buys stands beside the price, so the
    card is as wide as the rest of the page's lines and nothing beside it is left empty.
*/
.home-pricing .home-offers { display: grid; gap: 1.2rem; max-width: 56rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); }

/* Buying a year for somebody else, under the price: the one offer where whoever pays is not whoever collects. */
.home-gift { max-width: 56rem; margin: 1.2rem auto 0; color: var(--muted); font-size: .95rem; text-align: center; }
.home-gift a { color: var(--gold-bright); font-weight: 600; }
.home-pricing .plan { align-content: start; }
.plan-top .home-actions { margin-top: 1.3rem; }
.plan-head { display: flex; align-items: center; gap: 1.1rem; }
.plan-head .price { margin-top: .35rem; }

/* The button is the card's one gold thing, so the price beside it is set in the page's own light. */
.home-pricing .price b { color: var(--text); }
.home-pricing .plan-in li { text-wrap: pretty; }
@media (min-width: 52rem) {
    .home-pricing .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 2.6rem; padding: 2rem 2.2rem; }
    .home-pricing .plan-in { margin: 0; padding: 0 0 0 2.6rem; border-top: 0; border-left: 1px solid var(--line); }
}

/* The close: one line and the one button. */
.home-calm .home-close { padding-block: clamp(3.4rem, 10vw, 7rem) clamp(2.4rem, 7vw, 4.6rem); }

/* The questions: a hairline between each, and nothing round them, until one is opened. */
.home-calm .home-faq .home-heading { margin-bottom: clamp(1.4rem, 4vw, 2.2rem); }
.home-calm .home-answers { gap: 0; max-width: 46rem; border-bottom: 1px solid var(--line); }
.home-calm .home-answers details { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.home-calm .home-answers summary { padding-inline: 0; font-weight: 500; }
.home-calm .home-answers p { padding-inline: 0; max-width: 40rem; }

/* A page of its own for a part of the front page: a way back to the front page above its first heading. */
.home-back { margin-block: 1.4rem 0; font-size: .92rem; }
.home-back a { color: var(--muted); text-decoration: none; }
.home-back a::before { content: "‹ "; }
.home-back a:hover, .home-back a:focus-visible { color: var(--text); }

/* A line of the rest that leads to its page: the whole of it is the link, and an arrow shows on the heading. */
/* Its small drawing stands beside the heading and the line, which keep the width they had. */
.home-more-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; align-items: start; color: inherit; text-decoration: none; }
.home-more-item .drawing-tile { grid-row: span 2; margin-top: .15rem; }
.home-more-item h3, .home-more-item p { grid-column: 2; }
.home-more-item h3::after { content: " ›"; color: var(--gold); opacity: 0; transition: opacity .2s; }
.home-more-item:hover h3::after, .home-more-item:focus-visible h3::after { opacity: 1; }
.home-more-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
.home-more li:has(.home-more-item) { padding: 0; }
.home-more-item { padding: 1.3rem 0 1.4rem; }

/* A part of a feature page told in a few lines, with its small drawing beside them in the same way. */
.with-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 1rem; align-items: start; }
.with-tile > .drawing-tile { grid-row: span 3; margin-top: .15rem; }
.with-tile > :not(.drawing) { grid-column: 2; }

/*
    A card's drawing stands beside its heading only, and what the card says runs the card's whole width under them, so that a card's
    words are not kept to a narrow column beside a drawing that ended long before them.
*/
:is(.home-trio, .home-pair) > .with-tile > .drawing-tile, .home-own > .with-tile > .drawing-tile { grid-row: 1; margin-top: 0; }
:is(.home-trio, .home-pair) > .with-tile > h3, .home-own > .with-tile > h3 { align-self: center; margin: 0; }
:is(.home-trio, .home-pair) > .with-tile > p, .home-own > .with-tile > p { grid-column: 1 / -1; margin: .8rem 0 0; }
.home-pair > .card h3 + p { margin-top: .5rem; }

/* A stop on a trip, drawn: a sky and some shapes, with its name under the picture and nothing written over it. Three in a row on a desk, one under another on a phone. */
.trip-pic { margin: 0; }
.trip-pic-art { position: relative; aspect-ratio: 8 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #2a1824 0%, #8a3d44 58%, #e0a060 100%); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.trip-pic svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.trip-pic.is-barrels .trip-pic-art { background: radial-gradient(80% 100% at 50% 10%, #8a5a2c, #1c1008 78%); }
.trip-pic.is-terrace .trip-pic-art { background: linear-gradient(180deg, #3a2030 0%, #b05a50 58%, #f0b070 100%); }
.trip-pic.is-coast .trip-pic-art { background: linear-gradient(180deg, #1b2b3b 0%, #4c6c82 52%, #d8b890 100%); }
.trip-pic.is-hillside .trip-pic-art { background: linear-gradient(180deg, #2c3550 0%, #c98f7a 55%, #f1c98a 100%); }
.trip-pic.is-shop .trip-pic-art { background: radial-gradient(90% 110% at 50% 0, #6a4426, #1a0f08 82%); }
.trip-pic figcaption { display: grid; gap: .1rem; padding: .75rem .15rem 0; }
.trip-pic figcaption strong { font: 400 1.15rem/1.25 var(--serif); }
.trip-pic figcaption span { color: var(--muted); font-size: .88rem; }

.home-trip-pics { display: grid; gap: 1.2rem; margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) {
    .home-trip-pics { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
}

/* A trip laid out by the day: each day a column on a desk, with its stops under its name. */
.home-trip-title { margin: .2rem 0 clamp(1.4rem, 4vw, 2.4rem); font: 400 clamp(1.5rem, 4vw, 2.2rem)/1.2 var(--serif); }
.trip-days { display: grid; gap: clamp(2.2rem, 6vw, 3rem); }
.trip-day h3 { display: flex; flex-direction: column; gap: .25rem; margin: 0 0 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); font: 400 clamp(1.3rem, 3.2vw, 1.6rem)/1.2 var(--serif); }
.trip-day h3 span { color: var(--gold); font: 500 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.trip-stop { margin-bottom: 1.8rem; }
.trip-why { margin: .9rem 0 .25rem; color: var(--text); line-height: 1.5; }
.trip-ask { margin: 0; color: var(--muted); line-height: 1.5; }
.trip-ask b { color: var(--gold); font-weight: 600; }
@media (min-width: 56rem) {
    .trip-days { grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
}
/* Compare: each card about Kept carries its drawing beside its heading, so the page grows by little. The others' cards stay plain. */
.home-trio > .compare-card { grid-template-columns: minmax(0, 1fr) 3.6rem; column-gap: .9rem; align-items: start; }
.compare-card > .drawing { grid-column: 2; grid-row: 1; width: 3.6rem; margin: 0; }
.compare-card > h3 { grid-column: 1; grid-row: 1; align-self: center; margin: 0; }
.compare-card > p { grid-column: 1 / -1; margin-top: .6rem; }

/*
    The way in under a feature page's heading: the button, and the price beside it, so that a page that sells a part of Kept says what
    Kept costs before anything else, as the front page does.
*/
.home-start { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; margin: 0 0 clamp(1.8rem, 5vw, 3rem); }
.home-start .home-small { margin: 0; }
.home-sub:has(+ .home-start) { margin-bottom: 1.3rem; }


/*
    The front page's parts below its first screen are not laid out or painted until they are near, which is most of the page's drawing
    work on a phone. Each keeps a fair guess at its height until then, and its own height once it has been drawn.
*/
.home-calm #find { content-visibility: auto; contain-intrinsic-size: auto 790px; }
.home-calm #tonight { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.home-calm #trips { content-visibility: auto; contain-intrinsic-size: auto 1120px; }
.home-calm #glass { content-visibility: auto; contain-intrinsic-size: auto 718px; }
.home-calm #more { content-visibility: auto; contain-intrinsic-size: auto 1340px; }
.home-calm #pricing { content-visibility: auto; contain-intrinsic-size: auto 660px; }
.home-calm #questions { content-visibility: auto; contain-intrinsic-size: auto 460px; }
@media (min-width: 58rem) {
    .home-calm #find { contain-intrinsic-size: auto 770px; }
    .home-calm #tonight { contain-intrinsic-size: auto 740px; }
    .home-calm #trips { contain-intrinsic-size: auto 510px; }
    .home-calm #glass { contain-intrinsic-size: auto 646px; }
    .home-calm #more { contain-intrinsic-size: auto 600px; }
    .home-calm #pricing { contain-intrinsic-size: auto 440px; }
    .home-calm #questions { contain-intrinsic-size: auto 490px; }
}

/* What are we tasting?, on a desk: the words on the left, and the wheel playing beside them. On a phone, the wheel comes under them. */
@media (min-width: 58rem) {
    .home-calm #glass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); grid-template-rows: auto auto 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
    .home-calm #glass > .glass-show { grid-column: 2; grid-row: 1 / 4; margin: 0; }
    .home-calm #glass > .home-links { grid-row: 3; }
}

/* The four ways to hold a tasting, as a row of links to each, under the tastings page's heading. */
.home-ways { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.home-ways a { min-height: 44px; color: var(--text); font: 500 .92rem var(--sans); }
.home-ways a:hover, .home-ways a:focus-visible { border-color: var(--gold); }

/*
    A part of the tastings page: its drawing beside its heading, the words, and a picture of that way of holding one. On a desk the
    picture can stand first.
*/
.home-way-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.home-way-head .drawing-tile { flex: none; }
.home-calm .home-way-head .home-heading { margin: 0; }
.home-split .home-sheets { margin-top: .4rem; border-radius: 14px; }
@media (min-width: 58rem) {
    .home-split.is-flipped > :last-child { order: -1; }
}

/*
    A TV at a live tasting, as the screen shows the table while a wine is poured: the wine, where it is from, the table's score, and a
    glass for each guest filled to what they gave it. The wine and the scores are the made-up tasting's own.
*/
.home-tv { margin: 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
.home-tv-screen { display: grid; gap: .9rem; aspect-ratio: 16 / 10; align-content: center; padding: clamp(1rem, 4vw, 2rem); border: .5rem solid #0b0909; border-radius: 1rem; background: radial-gradient(120% 90% at 50% 0, rgb(var(--ember-rgb) / .45), rgb(var(--ember-rgb) / 0) 65%), var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px rgba(0, 0, 0, .55); }
.home-tv-kicker { margin: 0; color: var(--muted); font-size: clamp(.62rem, 1.8vw, .78rem); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.home-tv-wine { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(.6rem, 2.4vw, 1.2rem); align-items: center; }
.home-tv-wine .thumb { width: clamp(2.6rem, 9vw, 3.6rem); height: auto; aspect-ratio: 3 / 4; }
.home-tv-name { margin: 0; font: 400 clamp(1.05rem, 3.6vw, 1.6rem)/1.15 var(--serif); }
.home-tv-facts { margin: .2rem 0 0; color: var(--muted); font-size: clamp(.72rem, 2.2vw, .9rem); }
.home-tv-score { display: grid; justify-items: end; margin: 0; color: var(--muted); font-size: clamp(.62rem, 1.8vw, .76rem); text-align: right; }
.home-tv-score b { color: var(--gold-bright); font: 400 clamp(2rem, 8vw, 3.4rem)/1 var(--serif); }
.home-tv-glasses { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; margin: 0; padding: 0; list-style: none; }
.home-tv-glasses li { display: grid; justify-items: center; gap: .3rem; color: var(--muted); font-size: clamp(.5rem, 1.6vw, .7rem); }
/* A guest's glass, open at the rim, on its stem and foot, filled to the score the guest gave. */
.home-tv-glass { position: relative; width: clamp(1rem, 3.6vw, 1.6rem); aspect-ratio: 4 / 5; margin-bottom: clamp(.45rem, 1.6vw, .7rem); border: 1.5px solid #f1e2cc; border-top: 0; border-radius: 0 0 50% 50% / 0 0 70% 70%; }
.home-tv-glass i { position: absolute; inset: auto 0 0; height: calc(var(--score) * 10%); border-radius: inherit; background: linear-gradient(180deg, #b3294a, #5a0f24); }
.home-tv-glass::before { content: ""; position: absolute; top: 100%; left: 50%; width: 1.5px; height: clamp(.35rem, 1.3vw, .55rem); translate: -50% 0; background: #f1e2cc; }
.home-tv-glass::after { content: ""; position: absolute; top: calc(100% + clamp(.35rem, 1.3vw, .55rem)); left: 50%; width: 70%; height: 1.5px; translate: -50% 0; border-radius: 1px; background: #f1e2cc; }
.home-tv-stand { display: block; width: 18%; height: .5rem; margin: 0 auto; border-radius: 0 0 .4rem .4rem; background: #191515; }

/*
    A guest's phone at a live tasting, as their own page shows a wine: the glass filled to the score they gave it, the flavors they
    picked, and the button that locks it in. The guest and what they gave are the made-up tasting's own.
*/
.home-seat .phone-screen { display: grid; justify-items: center; align-content: start; gap: .55rem; min-height: 0; text-align: center; }
.home-seat-kicker { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.home-seat-wine { margin: 0; font: 400 1.7rem/1.1 var(--serif); }
.home-seat-glass { width: 6.4rem; height: auto; }
.home-seat-glass .glass-rim, .home-seat-glass .glass-stem { fill: none; stroke: #f1e2cc; stroke-width: 2.5; stroke-linecap: round; }
.home-seat-score { margin: 0; color: var(--muted); font-size: .86rem; }
.home-seat-score b { display: block; color: var(--text); font: 400 2.2rem/1 var(--serif); }
.home-seat-ask { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; }
.home-seat-picked { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.home-seat-picked li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .8rem; border: 1px solid var(--family); border-radius: 999px; background: color-mix(in srgb, var(--family) 18%, transparent); font-size: .86rem; }

/*
    Compare on a phone: Kept beside one of the others at a time, chosen from a row of names over the table, so that each row is two
    answers and not five. On a desk the whole table stands as it is, and the row of names is not there. Nothing here needs the script.
*/
.compare-vs { display: none; }
@supports selector(:has(a)) {
    @media (max-width: 57.99rem) {
        .compare-vs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.2rem; padding: 0; border: 0; }
        .compare-vs legend { float: left; margin-right: .3rem; padding: 0; color: var(--muted); font-size: .9rem; }
        .compare-vs label { min-height: 44px; color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; }
        .compare-vs label:has(input:checked) { border-color: var(--gold); color: var(--text); }
        .compare-vs label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
        .compare-board .compare-table td:not(.is-kept) { display: none; }
        .compare-board:has(#vs-cellartracker:checked) .compare-table td[data-label="CellarTracker"],
        .compare-board:has(#vs-vivino:checked) .compare-table td[data-label="Vivino"],
        .compare-board:has(#vs-invintory:checked) .compare-table td[data-label="InVintory"],
        .compare-board:has(#vs-vinocell:checked) .compare-table td[data-label="VinoCell"] { display: grid; }
    }
}

/*
    The film page: Kept's camera catching labels, drawn (Features/Film). Each bottle rises into the frame, the gold corners close on its
    label, a ring of gold goes out as the ting sounds, and its name lands in the list with a gold tick and the moment it was caught. It
    plays once, when drawings.js says it has been seen. Anyone who asked for less movement, or has no script, sees it as it ends.
*/
.catch { display: grid; gap: .9rem; margin: 0; overflow: visible; }
.catch > svg { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgb(0 0 0 / .32); }
.catch .home-spotted { min-height: 0; margin: 0; }
.catch-past, .catch-ring { opacity: 0; }
.home-tick, .catch .home-tick { display: inline-block; width: .78em; height: .78em; margin-right: .3em; vertical-align: -.04em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-caught b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .js .catch .catch-bottle, .js .catch .catch-frame, .js .catch .catch-ring { transform-box: fill-box; transform-origin: 50% 50%; }
    .js .catch:not(.is-seen) .catch-bottle, .js .catch:not(.is-seen) .catch-frame, .js .catch:not(.is-seen) .home-caught li { opacity: 0; }
    .js .catch.is-seen .catch-bottle { animation: catch-rise .6s cubic-bezier(.2, .8, .3, 1) var(--at) both; }
    .js .catch.is-seen .catch-bottle.catch-past { animation: catch-rise .6s cubic-bezier(.2, .8, .3, 1) var(--at) both, catch-out .45s ease-in var(--out) forwards; }
    .js .catch.is-seen .catch-frame { animation: catch-frame .35s ease-out var(--at) both; }
    .js .catch.is-seen .catch-frame.catch-past { animation: catch-frame .35s ease-out var(--at) both, catch-gone .3s ease-in var(--out) forwards; }
    .js .catch.is-seen .catch-ring { animation: catch-ring .75s ease-out var(--at) both; }
    .js .catch.is-seen .home-caught li { animation: home-caught .45s cubic-bezier(.2, .7, .3, 1) var(--at) both; }
}
@keyframes catch-rise { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes catch-out { to { transform: translateX(-150%); opacity: 0; } }
@keyframes catch-frame { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes catch-gone { to { opacity: 0; } }
@keyframes catch-ring { 0% { transform: scale(.7); opacity: 0; } 8% { opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes home-caught { from { opacity: 0; transform: translateY(6px); } }

/*
    The front page as it is now (home-front): film, find and open, the bar and the beer fridge, a night out, a trip, the rest in a
    row, the price on paper, the questions and the close. It is laid out for a phone first, and the only gold on it is the button
    and Kept's eye in the first picture, so a link is the page's own light, underlined.
*/
.home-front .eyebrow { margin-bottom: .7rem; }
.home-front .home-part, .home-front .home-band { padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.home-front .home-sub { margin-bottom: clamp(1.3rem, 4vw, 2.6rem); }
.home-front .home-links a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--muted-rgb) / .55); text-underline-offset: .28em; }
.home-front .home-links a::after { content: none; }
.home-front .home-answers summary::after { color: var(--muted); }

/* The first screen: the words at full strength from the first paint, and the picture straight under them on a phone. */
.home-front .home-hero { gap: 1.7rem; padding-block: clamp(1.7rem, 6vw, 5rem) clamp(2.2rem, 7vw, 4.6rem); }
.home-front .home-hero h1 { max-width: 13ch; text-wrap: balance; }
.home-front .home-hero .lede { margin: 1rem 0 1.5rem; }
.home-front .home-hero .home-pitch > * { animation: none; }
.home-front .home-hero-show { justify-items: stretch; }

/* Kept's camera, drawn without the phone round it, since it is read on one; under it, each bottle caught and where it goes. */
.home-catch { width: 100%; max-width: 32rem; margin-inline: auto; gap: .8rem; }
.home-catch > svg { border-radius: 18px; }
.home-catch-list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.home-catch-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: baseline; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.home-catch-list .dot { align-self: center; }
.home-catch-list span { min-width: 0; font: 500 .93rem/1.3 var(--sans); }
.home-catch-list b { grid-column: 2; color: var(--muted); font: 400 .82rem/1.35 var(--sans); }

/* Spirits and beer: two cards, each a drawing and three lines. */
.home-others { display: grid; gap: .8rem; }
.home-other { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.1rem; align-items: center; margin: 0; padding: 1.1rem 1.2rem; }
.home-other-art { display: grid; place-items: center; }
.home-other .level-bottle { width: 2.9rem; height: 6.8rem; }
.home-can { display: block; width: 2.5rem; height: auto; }
.home-other h3 { margin: 0 0 .3rem; font: 400 1.2rem/1.25 var(--serif); }
.home-other p { margin: 0; }
.home-other-now { color: var(--text); }
.home-other-how { margin-top: .15rem !important; color: var(--muted); font-size: .86rem; }
@media (min-width: 46rem) {
    .home-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* On a desk the words stand beside the two cards, so the part is one screen wide and not three deep. */
@media (min-width: 64rem) {
    .home-front #bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; column-gap: 3rem; align-items: start; }
    .home-front #bar > .home-others { grid-column: 2; grid-row: 1 / 4; grid-template-columns: minmax(0, 1fr); }
    .home-front #bar > .home-links { grid-row: 3; }
}

/* Out for the night: two panels to swipe between on a phone, side by side on a desk. */
.home-out { display: flex; align-items: flex-start; gap: .9rem; padding: 0 var(--pad) .3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.home-out::-webkit-scrollbar { display: none; }
.home-out-panel { flex: 0 0 min(86%, 25rem); scroll-snap-align: start; display: grid; align-content: start; gap: .2rem; padding: 1.3rem 1.2rem 1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.home-out-panel h3 { margin: 0; font: 400 1.35rem/1.25 var(--serif); }
.home-out-say { margin: .3rem 0 1rem; color: var(--muted); line-height: 1.55; }
.home-out-wheel .glass-show { margin: 0 auto .6rem; }
.home-out-wheel .drawing.glass-show svg { width: min(100%, 18rem); }

/* A list photographed at the table, on its own paper, with Kept's pick ringed. */
.home-list { margin: 0; padding: 1rem 1.1rem .8rem; border-radius: 14px; background: #f1e2cc; color: #1a1310; font-size: .88rem; line-height: 1.5; pointer-events: none; }
.home-list p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .3rem .4rem; }
.home-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.home-list .home-list-head { justify-content: center; font: 400 .95rem var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.home-list .is-marked { border-radius: 6px; box-shadow: 0 0 0 2px var(--gold); }
.home-list-why { margin: .9rem 0 .6rem; color: var(--text); line-height: 1.55; }
@media (min-width: 64rem) {
    .home-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: var(--wide); margin-inline: auto; overflow: visible; }
}

/* A trip in its panel: one picture, its name under it, and its days. */
.home-out .trip-pic-art { aspect-ratio: 16 / 9; }
.home-out .trip-pic figcaption { padding-top: .6rem; }
.home-days { display: grid; margin: .4rem 0 0; padding: 0; list-style: none; }
.home-days li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.home-days li:last-child { border-bottom: 0; }
.home-days span { grid-row: span 2; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.home-days strong { font: 400 1.08rem/1.35 var(--serif); }
.home-days small { color: var(--muted); font-size: .84rem; }

/* The rest, in one row to swipe along on a phone, and three to a row on a desk. */
.home-row { display: flex; gap: .8rem; margin: 0; padding: 0 var(--pad) .3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; list-style: none; overscroll-behavior-x: contain; }
.home-row::-webkit-scrollbar { display: none; }
.home-row li { flex: 0 0 11.5rem; scroll-snap-align: start; }
.home-tile { display: grid; align-content: start; gap: .5rem; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; }
.home-tile h3 { margin: .4rem 0 0; font: 400 1.05rem/1.3 var(--serif); }
.home-tile p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.home-tile:hover h3, .home-tile:focus-visible h3 { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 64rem) {
    .home-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--wide); margin-inline: auto; overflow: visible; }
}

/* The price, on paper: the one light part of the page, in the cream of a label, with its ink. */
.home-front .home-paper { background: #f1e2cc; color: #1a1310; }
.home-paper .eyebrow { color: #6b5a4a; }
.home-paper .price { margin: 0; color: #1a1310; font: 400 1.25rem var(--serif); }
.home-paper .price b { color: #1a1310; font: 400 clamp(3.6rem, 16vw, 5rem)/1 var(--serif); }
.home-paper .price-note { margin: .5rem 0 1.4rem; color: #4a3a2e; font-size: 1rem; }
.home-paper-in { max-width: 38rem; margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid #cbb795; color: #4a3a2e; font-size: .92rem; line-height: 1.65; }
.home-paper .home-gift { margin: .9rem 0 0; color: #4a3a2e; font-size: .92rem; text-align: left; }
.home-paper .home-gift a { color: #1a1310; text-decoration: underline; text-underline-offset: .2em; }

/* The close: Kept's mark drawn once, then one line and the button. */
.home-mark { margin: 0; }
.home-mark svg { display: block; width: 9rem; height: auto; overflow: visible; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-front .home-close h2 { margin: 1.4rem 0 1.6rem; }

/* Kept for Business on the front page: one step down from the household's price, its button outlined so the gold stays the household's. */
.home-biz .home-heading { margin-bottom: .6rem; }
.home-biz .home-actions { gap: .8rem 1.2rem; }
.btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--text); font-weight: 600; text-decoration: none; }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--muted); }

/* The business page's lists: what is open, short or coming, as Service lists them, with a word on the one that matters now. */
.biz-rows { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.biz-rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.biz-rows span { display: grid; gap: .15rem; min-width: 0; }
.biz-rows strong { font: 400 1.05rem/1.3 var(--serif); }
.biz-rows small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.biz-rows b { flex: none; padding: .2rem .6rem; border: 1px solid var(--stage-ready); border-radius: 999px; color: var(--stage-ready); font-size: .78rem; font-weight: 500; }
.biz-made b { padding: 0; border: 0; color: var(--text); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.biz-dish { max-width: 30rem; }
.biz-list-head { margin: 0 0 .6rem; color: var(--muted); font: 600 .78rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }

/* What the page keeps back until it is near, with the room each part takes now. */
.home-front #bar { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.home-front #out { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.home-front #more { contain-intrinsic-size: auto 420px; }
.home-front #trips { content-visibility: visible; contain-intrinsic-size: none; }
.home-front #pricing { contain-intrinsic-size: auto 560px; }
