/* The list a guest holds, and nothing else.
 *
 * Its own stylesheet, served as a plain file and linked by the page, because
 * that page is plain HTML: no framework runs on the tablet that reads it, so
 * nothing here arrives through a bundle. The tokens and the reset are repeated
 * from the ledger's sheet rather than shared -- two files that never load
 * together, each carrying what it needs. */
:root { --ink:#07131b; --deep:#0b1c26; --panel:#102630; --line:#25404a; --text:#edf3f0; --muted:#93a7a8; --copper:#d8875f; --wine:#9f4660; --blue:#3b8895; --lime:#b5cf8c; --ink-fade:rgba(7,19,27,0); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--ink); color:var(--text); font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif; }
button,input,select { font:inherit; }
a { color:inherit; text-decoration:none; }

h1,h2 { font-family:"Iowan Old Style","Baskerville",Georgia,serif; font-weight:400; margin:0; }

/* The list is set the way it is printed: one colour and its greys, dark on
   light. The ledger is a dark room full of numbers; the list is a page held at
   a table, and a house whose mark is drawn in black needs a page that black
   can be seen on. Only the tokens change -- every rule below is written
   against them, so the list reads as paper without any of them knowing. */
.paper {
  --ink:#f8f7f4; --panel:#e8e6e0; --line:#c7c3bb; --text:#151515; --muted:#5e5b56; --copper:#151515;
  /* The same paper with no alpha. A gradient that ends at the keyword
     transparent is read by an old engine as ending at transparent *black*, and
     it draws the grey of that journey across the page -- a dark line under the
     mark. Ending at the paper's own colour, there is nothing to travel to. */
  --ink-fade:rgba(248,247,244,0);
  background:var(--ink); color:var(--text); min-height:100vh;
}

/* The list a guest holds. A tablet on a table, read at arm's length: bigger
   type than the ledger, wide rows, and nothing that scrolls inside anything. */
.guest { max-width:900px; margin:0 auto; padding:0 clamp(14px,3vw,28px) 80px; }
.guest-head { position:sticky; top:0; z-index:5; padding:26px 0 18px; background:linear-gradient(var(--ink) 72%, var(--ink-fade)); text-align:center; }
.guest-head .eyebrow { letter-spacing:.34em; }
/* Whatever shape the house's mark is, it is read at arm's length and must not
   push the contents off the screen. */
.guest-search { position:fixed; right:clamp(14px,3vw,28px); bottom:clamp(14px,3vw,28px); z-index:6; text-align:right; }
/* The box opens upward from the corner, over the list rather than moving it. */
.guest-search form { position:absolute; right:0; bottom:52px; background:var(--ink); border:1px solid var(--line); padding:10px; }
/* The mark is placed rather than centred: an old browser will not make a flex
   box of a summary, and no font metric puts a circle in the middle of another
   circle. Half its own width back from the middle is exact, and every browser
   ever made can do that arithmetic. */
.guest-search summary { display:inline-block; position:relative; width:46px; height:46px; border-radius:50%; border:1px solid var(--line); background:var(--ink); color:var(--muted); cursor:pointer; list-style:none; }
.guest-search summary::-webkit-details-marker { display:none; }
.guest-search summary svg { position:absolute; top:50%; left:50%; margin:-9.5px 0 0 -9.5px; }
.guest-search summary:hover { color:var(--text); border-color:var(--text); }
.guest-search[open] summary { color:var(--copper); border-color:var(--copper); }
/* Spaced by margins rather than by a flex gap, which the tablet on the table
   has no more than it has a grid: with gap ignored, every one of these sat
   against its neighbour and the two rows of them ran into each other. */
.guest-search form { display:flex; }
.guest-search form > * + * { margin-left:8px; }
.guest-search input { flex:0 1 clamp(160px,52vw,260px); min-width:0; background:transparent; border:1px solid var(--line); color:var(--text); font:inherit; font-size:clamp(12px,1.6vw,14px); padding:9px 14px; }
.guest-search input::placeholder { color:var(--muted); }
.guest-search button { background:transparent; border:1px solid var(--line); color:var(--muted); font:inherit; font-size:clamp(11px,1.5vw,13px); letter-spacing:.16em; text-transform:uppercase; padding:9px 16px; cursor:pointer; }
.guest-search button:hover { color:var(--text); border-color:var(--text); }
/* On paper there is nothing to type into. */
@media print { .guest-search { display:none; } }
.guest-logo { display:block; margin:0 auto; max-width:min(320px,70vw); max-height:96px; width:auto; height:auto; object-fit:contain; }
/* The contents. Wraps rather than scrolls sideways, because a row a guest has
   to drag is a row whose last word is never read. */
.guest-contents { display:flex; flex-wrap:wrap; justify-content:center; margin:14px -5px 0; }
.guest-contents a { margin:5px; }
.guest-contents a { text-decoration:none; background:transparent; border:1px solid var(--line); color:var(--muted); font:inherit; font-size:clamp(11px,1.5vw,13px); letter-spacing:.18em; text-transform:uppercase; padding:10px 18px; }
.guest-contents a[aria-current="page"] { background:var(--panel); color:var(--copper); border-color:var(--copper); }
/* The second row is the same row, quieter: it sits under a choice already made. */
.guest-places { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.guest-places a { border-color:transparent; }
.guest-places a { font-size:clamp(10px,1.35vw,12px); letter-spacing:.14em; padding:8px clamp(9px,1.6vw,14px); }
/* On paper there is nothing to tap, and the section is already titled. */
@media print { .guest-contents { display:none; } }
.guest-section { margin-top:38px; }
.guest-section h2 { font-size:clamp(11px,1.5vw,13px); letter-spacing:.28em; text-transform:uppercase; color:var(--copper); font-weight:500; padding-bottom:10px; border-bottom:1px solid var(--line); }
.guest-section ul { list-style:none; margin:0; padding:0; }
/* The printed list, in three columns: where it is from, what it is, what it
   costs. Rows are ruled rather than boxed -- the paper it copies has no boxes,
   only the lines a reader needs to keep a price with its bottle. */
.menu { margin-top:6px; }
.menu-row { display:grid; grid-template-columns:minmax(88px,clamp(88px,18vw,190px)) 1fr; gap:clamp(12px,2.4vw,24px); padding:16px 0; border-bottom:1px solid var(--line); }
.menu-side { margin:0; font-size:clamp(10px,1.4vw,12px); letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.menu-blocks { min-width:0; display:flex; flex-direction:column; }
.menu-block + .menu-block { margin-top:16px; }
.menu-block ul { list-style:none; margin:0; padding:0; }
/* The gutter is the only thing holding the price off the name: the name takes
   every pixel the price does not, so a long one ends wherever it ends -- and
   on an iPad that was ten or twelve pixels short of the number, which reads
   as one word. Wide enough to be a column of prices at any width. */
/* A line is a flex row rather than a grid, and the gutter is a margin rather
   than a gap: the tablet on the table runs Safari 9, which has no grid at
   all -- the two spans simply ran together, and the name and the number were
   read as one word. Flex it does have; flex gap it does not, and a margin
   every browser ever made does. It also survives the layout being dropped
   altogether: a margin between two inline spans is still a gutter. */
.menu-wine { display:-webkit-flex; display:flex; -webkit-justify-content:space-between; justify-content:space-between; -webkit-align-items:baseline; align-items:baseline; padding:2px 0; }
.menu-wine > span:first-child { -webkit-flex:1 1 auto; flex:1 1 auto; }
.menu-wine > .menu-price { -webkit-flex:0 0 auto; flex:0 0 auto; margin-left:clamp(24px,3vw,40px); text-align:right; }
.menu-wine > span:first-child { font-size:clamp(13px,2.1vw,17px); font-weight:500; text-transform:uppercase; letter-spacing:.01em; min-width:0; overflow-wrap:anywhere; }
.menu-vintage { font-weight:600; }
/* Said beside the wine rather than under it: it is a thing about the bottle a
   guest wants before choosing, not a note about where it comes from. */
.menu-mark { margin-left:.6em; font-size:clamp(8px,1.1vw,10px); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); padding:.1em .45em; white-space:nowrap; vertical-align:.12em; }
/* Part of the name, not a badge beside it: a magnum is what the wine is. */
.menu-size { font-weight:500; letter-spacing:.06em; text-transform:uppercase; font-size:.82em; color:var(--muted); }
.menu-price { font:clamp(12px,1.8vw,15px) ui-monospace,monospace; color:var(--text); white-space:nowrap; }
.menu-byline { margin:5px 0 0; font-size:clamp(10px,1.4vw,12px); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
/* Below this the two columns cannot hold a producer and a price on one line
   whatever the type does, so the place stands over its wines rather than
   beside them. */
@media (max-width:560px) {
  .menu-row { grid-template-columns:1fr; gap:8px; }
}
/* Which bottle is open is true for an hour. Paper outlives that. */
/* The picker is the button: the input itself has nothing worth showing. */
.inherited-tags { display:block; margin-top:6px; color:var(--muted); font-size:11px; }
.guest-empty { margin-top:60px; text-align:center; color:var(--muted); }
@media (max-width:640px) {
  .guest { padding:0 18px 60px; }
}

/* A tablet too old to read clamp().
 *
 * Every size on the list is one, and a browser that cannot parse clamp() drops
 * the whole declaration: the gutter between a wine and its price becomes
 * nothing and the two are read as one word, the side of the page loses its
 * column, and every line falls back to sixteen pixels of body text. Safari
 * learned clamp() in 13.1, and the list is held by a tablet that has been on a
 * table for years.
 *
 * Written as its own block rather than as a plain value in front of each
 * clamp: the bundler folds a repeated property into the last one it sees and
 * the fallback never reaches the tablet. This it leaves alone -- and a browser
 * that does read clamp() never enters it. */
@supports not (font-size: clamp(1px, 1vw, 2px)) {
  h1 { font-size:72px; }
  .guest { padding:0 24px 80px; }
  .guest-search { right:24px; bottom:24px; }
  .guest-search input { flex:0 1 260px; font-size:13px; }
  .guest-search button { font-size:12px; }
  .guest-contents a { font-size:12px; }
  .guest-places a { font-size:11px; padding:8px 12px; }
  .guest-section h2 { font-size:12px; }
  /* The only thing holding the mark to a readable size is a min(), which
     came with clamp() and is dropped in the same breath -- and the file
     behind it is nineteen hundred pixels wide, so the header was a wall. */
  .guest-logo { max-width:320px; max-height:96px; }
  /* No grid on Safari 9 either: the place down the side and the wines beside
     it are a flex row there, and the wines keep the column they need. */
  .menu-row { display:-webkit-flex; display:flex; -webkit-flex-wrap:nowrap; flex-wrap:nowrap; }
  .menu-side { -webkit-flex:0 0 150px; flex:0 0 150px; margin-right:20px; }
  .menu-blocks { -webkit-flex:1 1 auto; flex:1 1 auto; min-width:0; }
  .menu-side { font-size:11px; }
  .menu-wine > .menu-price { margin-left:28px; }
  .menu-wine > span:first-child { font-size:16px; }
  .menu-mark { font-size:9px; }
  .menu-price { font:14px ui-monospace,monospace; }
  .menu-byline { font-size:11px; }
}
