/* =======================================================================
   VYYN — the system.

   Loaded last, after every other stylesheet, and it decides three things
   that were previously decided separately on each page:

     the measure   one container width, one reading width
     the scale     one size per level of heading, one rhythm between sections
     the surface   boxed things sit on a raised ground with a lit top edge,
                   instead of being outlines drawn on the flat background

   The editorial furniture — the hairline rule and the diamond that open a
   section — is left exactly as it was. That is the site's signature and it
   was never the problem.
   ======================================================================= */

:root{
  --page:1120px;        /* every page is this wide, with no exceptions */
  --read:44rem;         /* and prose is never wider than this          */
  --sec:74px;           /* the gap between one section and the next    */
  --lip:inset 0 1px 0 rgba(241,221,169,.09);   /* the lit top edge */
}
@media (max-width:860px){ :root{ --sec:50px } }

/* ---------------------------------------------------------- the measure */
/* Four different page widths were in use — 726, 1023, 1122 and 1260 — so
   the content moved sideways every time somebody followed a link. */
.wrap,
.wrap:has(> .grid),
.wrap:has(> .routes),
.storewrap,
.chapwrap{max-width:var(--page)}

/* prose keeps a column you can actually read, centred in that page */
.wrap > header,
.storewrap > .card,
.storewrap > .pager,
.chapwrap > .card,
.chapwrap > .pager{max-width:var(--read);margin-inline:auto;width:100%}
header .lede{max-width:40rem}

/* the chapter pages: the same page width, split into reading and panel */
@media (min-width:1180px){
  body.chap .wrap{max-width:var(--page);grid-template-columns:minmax(0,1fr) 332px;
    column-gap:56px}
  body.chap .wrap > header{max-width:none;margin-inline:0}
}

/* ----------------------------------------------------------- the scale */
.card h2,
.edhead,
.arena .hello h2{font-family:var(--display);font-weight:300;font-size:2.05rem;
  line-height:1.1;letter-spacing:-.012em}
.card h3{font-family:var(--display);font-weight:400;font-size:1.34rem;
  line-height:1.25;margin-top:var(--s4)}
.eyebrow{font-size:var(--lbl);letter-spacing:.24em}

/* ---------------------------------------------------------- the rhythm */
/* one gap between sections, everywhere, instead of 0 / 34 / 54 / 56 / 108 */
.wrap > section,
.wrap > .grid,
.wrap > .chaplist,
.wrap > .routes,
.wrap > figure,
.wrap > #stations,
.wrap > .compbanner{margin-top:var(--sec)}
.wrap > header + *{margin-top:calc(var(--sec) * .72)}
.wrap > .pager{margin-top:var(--sec)}
.wrap > footer{margin-top:var(--sec)}
.card{padding-top:calc(var(--sec) * .62)}

/* --------------------------------------------------------- the surface */
/* Every box was a hairline drawn on the flat page, so nothing had weight.
   They sit on the raised ground now, with one lit edge along the top. */
.routes,
.grid.trained,
.band,
.vp .pcard,
.edcard,
.shoptab .spine,
.shoptab .card2{border-color:transparent}

.route,
.grid.trained .chapcard,
.band .cell,
.vp .pcard{background:var(--raise);box-shadow:var(--lip)}
.routes,.grid.trained,.band{background:color-mix(in srgb,var(--gold-dim) 16%,transparent)}   /* the 1px seams */

.route:hover,
.grid.trained .chapcard:hover{background:var(--hover)}
.band .cell.lead{background:
  radial-gradient(ellipse 90% 130% at 10% 105%,color-mix(in srgb,var(--gold) 13%,transparent),transparent 62%),
  var(--raise)}
.route.shop{background:
  radial-gradient(ellipse 90% 120% at 100% 0%,color-mix(in srgb,var(--gold) 12%,transparent),transparent 62%),
  var(--raise)}
.route.shop:hover{background:
  radial-gradient(ellipse 90% 120% at 100% 0%,color-mix(in srgb,var(--gold) 16%,transparent),transparent 62%),var(--hover)}
.grid.trained .chapcard.active{background:
  linear-gradient(150deg,color-mix(in srgb,var(--gold) 11%,transparent),transparent 64%),var(--raise);
  box-shadow:inset 0 0 0 1px var(--gold)}
.grid.trained .chapcard.endtile{background:
  linear-gradient(200deg,color-mix(in srgb,var(--gold) 8%,transparent),transparent 66%),var(--sunk)}
.vp .you div{background:var(--raise)}
.vp .you{background:color-mix(in srgb,var(--gold-dim) 16%,transparent);border-color:transparent}

/* --------------------------------------------- the photograph, full width */
/* One picture at the width of the page breaks a column of equal rectangles
   better than any amount of rearranging the rectangles. */
/* 100vw counts the scrollbar, so a full-bleed block pushes the page about
   15px sideways on any desktop with a classic scrollbar. overflow-x:clip on
   the body contains that; unlike hidden it does not make a scroll container,
   so the chapter panel keeps sticking. */
body{overflow-x:clip}

/* ------------------------------------------------------------- the form */
/* The order form was a stack of identical dark boxes. */
#wishlist .authlabel{display:block;margin:var(--s3) 0 7px;font-size:var(--lbl);
  letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
#wishlist input,#wishlist select,#wishlist textarea{width:100%;max-width:none;
  background:var(--raise);border:1px solid var(--hair-soft);color:var(--fg);
  font-family:var(--ui);font-size:1rem;padding:13px 15px;border-radius:0;
  box-shadow:var(--lip)}
#wishlist input:focus,#wishlist select:focus,#wishlist textarea:focus{
  border-color:var(--gold-dim);outline:none}
#wishlist .go,#wishlist button[type=submit]{margin-top:var(--s4);padding:15px 30px}

/* The front page's tail — your streak, the export, the board — was a thin
   column of text pinned to the left of a 1120px page, with half the width
   empty beside it. It reads as prose, so it takes the reading measure. */
.wrap:has(> .routes) > #stations{max-width:var(--read);margin-inline:auto;width:100%}
.wrap:has(> .routes) > .compbanner{max-width:var(--read);margin-inline:auto}

/* =======================================================================
   "Found a mistake? Tell me"

   It was a mailto: link, which asks the device to open a mail program. On a
   phone that has never been set up with one, and on a Windows machine whose
   Mail app has no account, the reader arrives at a window they cannot send
   from. So the button opens this instead: WhatsApp, which they already have,
   and the address on a button that copies it.
   ======================================================================= */
.fbbtn{background:none;border:0;padding:0;margin:0;cursor:pointer;
  font:inherit;color:var(--faint);text-decoration:none;
  border-bottom:1px solid var(--hair-soft)}
.fbbtn:hover{color:var(--gold);border-color:var(--gold-dim)}

.tell{position:fixed;inset:0;z-index:60;display:grid;place-items:center;
  padding:22px;background:var(--scrim);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.tellcard{position:relative;width:100%;max-width:25rem;background:var(--raise);
  border:1px solid var(--hair);box-shadow:var(--lip),0 40px 90px -40px #000;
  padding:28px 28px 24px;text-align:left}
.tellcard h2{font-family:var(--display);font-weight:300;font-size:1.6rem;
  line-height:1.15;margin:10px 0 0}
.tellcard .sub{font-size:.88rem;line-height:1.6;color:var(--muted);margin-top:10px}
.tellgo,.tellcopy{display:block;width:100%;text-align:center;margin-top:14px;
  padding:14px;font-family:var(--ui);font-size:var(--lbl);letter-spacing:.17em;
  text-transform:uppercase;cursor:pointer;text-decoration:none;border-radius:0}
.tellgo{background:var(--gold);border:1px solid var(--gold);color:var(--on-accent);font-weight:600}
.tellgo:hover{background:var(--accent-hi);border-color:var(--accent-hi)}
.tellcopy{background:none;border:1px solid var(--gold-dim);color:var(--gold)}
.tellcopy:hover{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 7%,transparent)}
.tellcopy.done{border-color:var(--mint);color:var(--mint)}
.telladdr{margin-top:12px;text-align:center;font-size:.8rem;color:var(--faint);
  word-break:break-all;user-select:all}
.tellx{position:absolute;top:8px;right:10px;width:34px;height:34px;line-height:1;
  background:none;border:0;color:var(--faint);font-size:1.3rem;cursor:pointer;padding:0}
.tellx:hover{color:var(--gold)}
[dir=rtl] .tellcard{text-align:right}
@media (max-width:520px){
  .tell{place-items:end center;padding:0}
  .tellcard{max-width:none;border-left:0;border-right:0;border-bottom:0;
    padding:26px 22px calc(26px + env(safe-area-inset-bottom,0px))}
}

/* the written-out address copies on a tap rather than opening a mail app */
.addr{color:var(--gold);border-bottom:1px dashed var(--gold-dim);cursor:pointer;
  display:inline-block;padding:11px 2px;line-height:1.2}
.addr:hover{border-bottom-style:solid}
.addr.copied{color:var(--mint);border-color:var(--mint)}
.addr:focus-visible{outline:1px solid var(--gold);outline-offset:3px}

/* ========================================================== the dark island
   One inverted block on a paper page. It exists for two reasons at once: the
   weekly competition is the only thing VYYN does that nothing else here does,
   and a page of cream and white needs one dark mass or the eye has nothing to
   land on. Those two wants happen to point at the same block, which is the
   only reason it is justified — an inversion with no meaning is decoration. */
.compisle{text-align:left}
.compisle h2{font-family:var(--display);font-weight:400;
  font-size:clamp(1.5rem,4.2vw,2.3rem);line-height:1.14;letter-spacing:-.014em;
  margin:10px 0 0;max-width:30ch;color:var(--fg)}
.compisle .islesub{color:var(--muted);font-size:.95rem;line-height:1.68;
  margin:14px 0 0;max-width:56ch}
.isletiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--hair-soft);margin-top:26px}
.isletiles > div{background:var(--bg);padding:16px 16px 18px}
.isletiles b{display:block;font-family:var(--display);font-weight:400;
  font-size:clamp(1.5rem,4.6vw,2.1rem);line-height:1;color:var(--gold);
  letter-spacing:-.01em}
.isletiles b small{font-size:.42em;letter-spacing:.1em;text-transform:uppercase;
  margin-left:5px;color:var(--gold);font-family:var(--ui)}
.isletiles span{display:block;margin-top:7px;font-size:.76rem;line-height:1.5;
  color:var(--faint)}
.islego{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.islego .cta,.islego .cta2{font-size:.86rem;padding:11px 17px;border:1px solid;
  text-decoration:none;font-weight:500;transition:background .2s,border-color .2s}
.islego .cta{background:var(--gold);border-color:var(--gold);color:var(--on-accent)}
.islego .cta:hover{background:var(--accent-hi);border-color:var(--accent-hi)}
.islego .cta2{border-color:var(--hair);color:var(--gold)}
.islego .cta2:hover{border-color:var(--gold);
  background:color-mix(in srgb,var(--gold) 8%,transparent)}
.islenote{margin:18px 0 0;font-size:.78rem;color:var(--faint)}
@media (max-width:560px){
  .isletiles{grid-template-columns:1fr 1fr}
  .isletiles > div:last-child{grid-column:1/-1}
}
/* the front-page grid places this block; see arena.css */
