/* =====================================================================
   The detail pages, in the dark.

   style.css is built on tokens - 54 of them, used 179 times - so the
   whole reading side of the site turns over by redefining the palette
   and the four material recipes rather than by touching any markup.
   Nothing below is a new rule for a new component; it is the same
   stylesheet, lit from the other side.

   The two that are not simple inversions:

     --gold stays a foreground only. On paper the readable metal is the
     deep one; on charcoal it is the pale one, so the two swap roles
     here rather than one being brightened.

     --cut and --lift invert their light. On paper a groove is dark at
     its top edge and lit at the bottom; on charcoal the page is darker
     than everything cut into it, so the highlight moves and the shadow
     goes black. Keeping the paper recipe and just darkening the ground
     is what makes a dark theme look like a bug.
   ===================================================================== */
:root{
  --cream:#262320;
  --ground:#262320;
  --paper:#2E2B27;
  --ink:#FBF7F1;
  --ink-2:rgba(251,247,241,.72);
  --muted:rgba(251,247,241,.62);
  --ink-3:rgba(251,247,241,.44);
  --rule:rgba(251,247,241,.16);
  --line:rgba(251,247,241,.14);

  /* swapped: pale gold is the readable one here */
  --gold:#D9BC86;
  --bronze:#D9BC86;
  --magenta:#FBF7F1;
  /* The nav button is `color: var(--on-magenta) !important` over
     `background: var(--magenta)`. Flipping --magenta to cream without
     this left cream text on a cream pill: a button with no label. */
  --on-magenta:#211F1C;

  --cut-fill:#2A2724;

  --lift:
    0 1px 1.5px rgba(0,0,0,.45),
    0 6px 14px -6px rgba(0,0,0,.55),
    0 18px 34px -18px rgba(0,0,0,.65);

  --cut:
    inset 0 3px 7px rgba(0,0,0,.62),
    inset 0 9px 16px -7px rgba(0,0,0,.52),
    inset 0 -1.5px 0 rgba(255,255,255,.07),
    inset 1.5px 0 3px rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.045);

  --cut-deep:
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 0 5px 14px rgba(0,0,0,.66),
    inset 0 14px 26px -10px rgba(0,0,0,.6),
    inset 0 -1.5px 0 rgba(255,255,255,.06);

  --pane-fill:linear-gradient(152deg,
    rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 100%);
  --pane-edges:
    inset 0 1.5px 0 rgba(255,255,255,.085),
    inset 0 -1px 0 rgba(0,0,0,.3),
    inset 0 0 0 1px rgba(255,255,255,.05);


  /* ---- the twenty that the first pass left on paper ----------------
     style.css defines 54 tokens; the block above turned over the 16
     that the landing page used and stopped there. The rest are reached
     by the article pages, and every one of them was still a paper
     value sitting on charcoal: the stat rows on the city pages were
     cream panels carrying cream text, which is a card with no writing
     on it. Found by auditing the :root against this file rather than
     by looking, because an unreadable panel and a panel with nothing
     in it look identical in a screenshot. */

  /* The cream fills. Every one of these was #EAE1D5 - the app's floor
     colour - and on this ground they become the raised panel instead. */
  --surface:#2E2B27;
  --surface-2:#343029;
  --cream-deep:#2A2724;
  --magenta-wash:#2E2B27;
  --teal-wash:#2E2B27;

  /* The near-blacks, which were ink used as a fill. Inverted, so what
     was the darkest thing on paper is the brightest thing here. */
  --plum:#FBF7F1;
  --brand:#FBF7F1;
  --magenta-deep:#FBF7F1;
  --on-plum:#211F1C;
  --on-plum-dim:#6B655C;

  /* The accents. #6F5A2E is the readable metal on paper and close to
     invisible on charcoal; the pale one is its counterpart, the same
     swap --gold and --bronze make above. */
  --dating:#D9BC86;
  --friends:#D9BC86;
  --couples:#D9BC86;
  --live:#D9BC86;
  --teal:#D9BC86;

  /* Warning red, lifted off the ground enough to read as a warning
     rather than as a dark patch. */
  --warn:#D98A74;

  --room:radial-gradient(120% 86% at 16% -6%, rgba(255,255,255,.075), transparent 58%);
}
html,body{background:var(--ground);color:var(--ink)}

/* The device bezel is the app's ink on paper; on charcoal it needs its
   own edge or the phone dissolves into the page behind it. */
.phone{box-shadow:0 0 0 1px rgba(255,255,255,.09), 0 26px 54px -22px rgba(0,0,0,.7)}
.phone img{opacity:.96}

/* Anything that was dark-on-light and is now light-on-dark. */
.btn,.nav-cta{color:var(--ink)}
.btn.big,.nav-cta{background:var(--ink);color:#211F1C}
.btn.ghost{background:transparent;color:var(--gold);border-color:rgba(217,188,134,.4)}
.btn.ghost:hover{color:var(--ink);border-color:var(--ink)}
code,kbd,pre{background:rgba(255,255,255,.06);color:var(--ink)}
hr{border-color:var(--rule)}
::selection{background:var(--gold);color:#201E1B}
