/*
  VARIANT B — "La Carta"
  A printed tasting card on a bar table. The TWE principles (light ground, dark type, labels
  attached to values, everything visible) rebuilt with SpiritsRim's own identity: warm paper,
  ember accents, Instrument Serif display, hairline rules, numbered plates.

  The signature move: in the sensory profile the LEVEL WORD is the display, set at the size
  of its meaning. No bars, no gauges, no textures to decode — the typography is the measure.
*/

:root {
  --table: #221B15;         /* the dark wood the card sits on */
  --paper: #F6F0E4;
  --paper-2: #EFE7D7;
  --ink: #221D16;
  --ink-2: #57503F;
  --ink-3: #8A8069;
  --hairline: #221d1622;
  --ember: #9B3413;         /* brand red darkened until it reads on paper */
  --gold: #8A6218;

  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Instrument Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--table);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* The card is an object lying on the table, not a screen filled edge to edge. */
.table { padding: 18px 10px 90px; }

.card {
  max-width: 760px;
  margin: 0 auto;
  background:
    /* faint paper mottling, two offset radial washes */
    radial-gradient(90% 40% at 20% 0%, #ffffff50, transparent 60%),
    radial-gradient(120% 50% at 80% 100%, #00000008, transparent 60%),
    var(--paper);
  border-radius: 6px;
  box-shadow:
    0 1px 0 #ffffff30 inset,
    0 24px 70px -30px #000000cc;
  padding: 22px 22px 56px;
}

.topbar { margin-bottom: 4px; }
.back {
  background: none; border: 0; color: var(--ink-3); cursor: pointer;
  font: 400 14px/1 var(--sans); padding: 6px 0;
}

/* ---------- masthead ---------- */

.masthead {
  text-align: center;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--hairline);
}
.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1.02;
}
.sub {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink-2);
}
.idline { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.price {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.price b { font-weight: 600; color: var(--ink); }

/* ---------- opening voice ---------- */

.voice { padding: 26px 4px 4px; }
.voice p {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.32;
  max-width: 44ch;
  margin-inline: auto;
  text-align: center;
}
.voice p:last-child { margin-bottom: 0; }

/* ---------- contents line ---------- */

.contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 22px 0 6px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contents a { color: var(--ink-2); text-decoration: none; }
.contents a:hover { color: var(--ember); }
.contents span { color: var(--ink-3); }

/* ---------- section rules ---------- */

.sect { padding: 30px 4px 4px; }

.rule {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 8px;
  margin-bottom: 18px;
  scroll-margin-top: 60px;
}
.rule-n {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ember);
}
.rule-t {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
}

.hint { margin: -8px 0 14px; font-size: 13px; color: var(--ink-3); }
.para { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* ---------- character entries ---------- */

.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline);
}
.entry:last-child { border-bottom: 0; }
.entry-mark { color: var(--tint); line-height: 0; flex: none; }
.entry-body { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.entry-body b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
}
.entry-lead .entry-body b { font-size: 40px; }
.entry-body i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tint);
}

/* ---------- sensory spectrum ---------- */
/*
  The word is the measure. Sizes step with the level; "Dominante" towers, "Leve" whispers,
  a measured absence sits small and grey. Nothing else on the line competes with it.
*/

.spectrum { list-style: none; margin: 0; padding: 0; }
.sp-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--hairline);
}
.sp-line:last-child { border-bottom: 0; }
.sp-axis { font-size: 15px; color: var(--ink-2); flex: none; }
.sp-word {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  text-align: right;
}

.sp-5 .sp-word { font-size: 44px; color: var(--ember); }
.sp-4 .sp-word { font-size: 34px; }
.sp-3 .sp-word { font-size: 26px; }
.sp-2 .sp-word { font-size: 20px; color: var(--ink-2); }
.sp-1 .sp-word { font-size: 16px; color: var(--ink-2); }
.sp-0 .sp-word { font-size: 13px; color: var(--ink-3); font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.sp-0 .sp-axis { color: var(--ink-3); }

/* ---------- tasting prose ---------- */

.prose { max-width: 62ch; }
.prose-p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; }
.prose-p:last-child { margin-bottom: 0; }
.prose-lead {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-right: 6px;
}
.prose-p span { color: var(--ink); }

/* ---------- ledgers (production + information) ---------- */

.ledger { margin: 0; }
/* Mobile-first: label above value; the two-column ledger needs room to breathe. */
.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--hairline);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger dt {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.ledger dd { margin: 0; font-size: 16px; line-height: 1.5; }
.ledger-strong { font-weight: 500; }
.ledger-fact { display: flex; align-items: center; gap: 8px; }
.f-ic { display: inline-flex; color: var(--ink-3); }
.f-true .f-ic { color: #2F6540; }
.f-false .f-ic { color: var(--ember); }

/* ---------- awards ---------- */

.laurel { margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.laurel b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  color: var(--gold);
}
.laurel span { font-size: 14px; color: var(--ink-2); }

.ext { margin-top: 16px; }
.ext-title {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ext-row { margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; }
.ext-row b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.ext-row b i { font-style: normal; font-size: 16px; color: var(--ink-3); }
.ext-row span { font-size: 14px; color: var(--ink-2); }

/* ---------- larger screens ---------- */

@media (min-width: 700px) {
  .table { padding: 34px 24px 110px; }
  .card { padding: 34px 54px 70px; }
  .ledger-row { grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; }
  .entries { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .entry-lead { grid-column: 1 / -1; }
  /* With two columns the hairlines must close each row, including the last two cells. */
  .entry:last-child { border-bottom: 1px solid var(--hairline); }
  .entries-pairs { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1120px) {
  .card { max-width: 1060px; }
  .voice p { font-size: 26px; }
}

@media (forced-colors: active) {
  .card { border: 1px solid CanvasText; }
  .rule, .entry, .sp-line, .ledger-row { border-color: CanvasText; }
}
