/* Random New World · player's guide.
   Terra Incognita fog, caption parchment and rhumb lines, as on the Workshop page's art
   (docs/images/workshop/make_banners.py). Cinzel for titles; Noto Sans, the generator's own
   face, for the text. Fonts are subset per page by website/build.py. */

:root {
  --fog-950: #221d19;
  --fog-900: #2b2520;
  --fog-850: #332c26;
  --fog-800: #3b332d;
  --fog-700: #4d443d;
  --fog-600: #5a5047;
  --line: rgba(233, 217, 180, 0.14);
  --line-strong: rgba(233, 217, 180, 0.3);
  --gold: #e9d9b4;
  --gold-dim: #c4b28a;
  --text: #e2d8c4;
  --muted: #b5a891;
  --faint: #8d8170;
  --paper: #dac7a0;
  --paper-hi: #e6d6b3;
  --ink: #3a2f26;
  --ink-soft: #57483a;
  --red-ink: #8e3220;
  --mark: #e07a55;
  --ok: #a9bb85;
  --warn: #d9b36a;
  --no: #de7a5e;
  --sea: #34444f;
  --sea-line: #5f7c8f;

  --font-sans: "RNW Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-display: "RNW Display", "RNW Brand", Georgia, "Times New Roman", serif;
  --font-brand: "RNW Brand", "RNW Display", Georgia, serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --display-case: none;
  --display-track: 0.035em;
  --display-scale: 1;
  --leading: 1.62;

  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1200px;

  color-scheme: dark;
}

.s-cyrillic {
  --display-case: uppercase;
  --display-track: 0.055em;
  --display-scale: 0.84;
}

.s-ja,
.s-ko,
.s-zh {
  --display-track: 0.06em;
  --display-scale: 0.9;
  --leading: 1.85;
  --font-display: "RNW Display", "Noto Serif CJK JP", "Noto Serif CJK KR", "Noto Serif CJK SC", serif;
}

.s-ja {
  --font-sans: "RNW Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  line-break: strict;
}

.s-ko {
  --font-sans: "RNW Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

.s-zh {
  --font-sans: "RNW Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}

/* ---- base -------------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--fog-900);
  color: var(--text);
  font: 400 16.5px / var(--leading) var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(233, 217, 180, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
  color: #f1e8d6;
}

p {
  margin: 0 0 0.75em;
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.08em 0.38em;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 12px;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
}

.ic-s {
  width: 17px;
  height: 17px;
}

.ic-l {
  width: 30px;
  height: 30px;
}

/* The window's and the game's words, as the player will see them on screen. */
.ui,
.gm {
  font: 600 0.88em/1.2 var(--font-sans);
  padding: 0.1em 0.45em 0.16em;
  border-radius: 3px;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.s-ja .ui,
.s-ja .gm,
.s-ko .ui,
.s-ko .gm,
.s-zh .ui,
.s-zh .gm {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ui {
  color: #eef1f6;
  background: #23262d;
  border: 1px solid #434956;
}

.gm {
  color: #f2e6c6;
  background: #22324c;
  border: 1px solid #9a8150;
}

/* ---- top bar ----------------------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(34, 29, 25, 0.96);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  font: 700 16px/1 var(--font-brand);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.compass {
  width: 26px;
  height: 26px;
  color: var(--gold-dim);
}

.compass .core {
  fill: var(--fog-900);
  opacity: 0.6;
}

.bar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.bar-nav a {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
}

.bar-nav a:hover {
  color: var(--gold);
  background: rgba(233, 217, 180, 0.06);
}

.lang {
  position: relative;
  margin-left: auto;
}

.bar-nav + .lang {
  margin-left: 0;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary .ic {
  width: 17px;
  height: 17px;
  color: var(--gold-dim);
}

.lang[open] summary,
.lang summary:hover {
  border-color: var(--line-strong);
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--fog-950);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang li a {
  display: block;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  font: 400 14.5px/1.4 "RNW Sans", system-ui, sans-serif;
}

.lang li a:hover {
  background: rgba(233, 217, 180, 0.07);
  color: var(--gold);
}

.lang li a[aria-current] {
  color: var(--gold);
  box-shadow: inset 2px 0 0 var(--gold-dim);
}

.btn-plaque {
  padding: 7px 13px 6px;
  color: var(--ink);
  background: linear-gradient(#e4d4b0, #cdb88f);
  border: 1px solid #8a7652;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font: 600 12.5px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.btn-plaque:hover {
  background: linear-gradient(#ecdfbf, #d6c299);
}

/* ---- hero -------------------------------------------------------------------------------- */

.hero {
  background: var(--fog-800) url(/assets/rhumbs.svg) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 60px var(--gutter) 68px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-dim);
  font: 600 13px/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
}

.brand-title {
  margin: 0 0 20px;
  color: var(--gold);
  font: 700 clamp(40px, 5.2vw, 64px) / 1.02 var(--font-brand);
  letter-spacing: 0.025em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.lead {
  font-size: 18px;
  color: var(--text);
  max-width: 34em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.facts li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px 2px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  opacity: 0.7;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.btn-paper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--ink);
  background: linear-gradient(var(--paper-hi), var(--paper));
  border: 1px solid #8a7652;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 1px 0 rgba(0, 0, 0, 0.4);
  font: 600 15.5px/1.2 var(--font-sans);
  text-decoration: none;
}

.btn-paper:hover {
  background: linear-gradient(#efe2c3, #dfcda6);
}

.btn-line {
  font-size: 15px;
}

/* The chart: the hero map with its unknown west under the fog. */
.chart {
  margin: 0;
}

.chart-frame {
  position: relative;
  aspect-ratio: 1960 / 1180;
  padding: 7px;
  background: var(--fog-950);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.chart-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.chart-img,
.fog {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  display: block;
}

.chart-img {
  object-fit: cover;
}

.fog-fill {
  fill: var(--fog-700);
}

.fog-rhumb {
  fill: none;
  stroke: #2a231e;
  stroke-width: 0.8;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

.fog-node circle {
  fill: none;
  stroke: #2a231e;
  stroke-width: 0.8;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.fog-edge {
  fill: none;
  stroke: #231d18;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.chart-label {
  position: absolute;
  left: 13%;
  top: 50%;
  color: rgba(233, 217, 180, 0.42);
  font: 700 clamp(11px, 1.3vw, 16px) / 1 var(--font-brand);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
  white-space: nowrap;
}

.corner {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}

.corner.tl {
  left: -5px;
  top: -5px;
}

.corner.tr {
  right: -5px;
  top: -5px;
}

.corner.bl {
  left: -5px;
  bottom: -5px;
}

.corner.br {
  right: -5px;
  bottom: -5px;
}

/* ---- layout ------------------------------------------------------------------------------ */

.layout {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 64px;
}

.toc {
  position: sticky;
  top: 58px;
  align-self: start;
  padding: 64px 0 32px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  align-items: baseline;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 1px solid transparent;
}

.toc a:hover {
  color: var(--gold);
}

.toc a[aria-current] {
  color: var(--gold);
  border-left-color: var(--gold);
}

.toc .num {
  color: var(--faint);
  font: 700 12px/1 var(--font-brand);
  letter-spacing: 0.04em;
}

.sections {
  max-width: 900px;
  min-width: 0;
}

.sec {
  padding: 64px 0 8px;
}

.sec + .sec {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.sec-num {
  flex: none;
  min-width: 2.2em;
  color: var(--gold-dim);
  font: 700 15px/1 var(--font-brand);
  letter-spacing: 0.06em;
}

.sec-head h2 {
  color: var(--gold);
  font: 600 calc(31px * var(--display-scale)) / 1.15 var(--font-display);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
}

.sec-lead {
  max-width: 44em;
  margin: 0 0 8px calc(2.2 * 15px + 16px);
  color: var(--muted);
  font-size: 17px;
}

/* ---- I. the course: four steps ----------------------------------------------------------- */

.course {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.leg {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 400px);
  gap: 0 26px;
  padding: 18px 0 34px;
}

.leg:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25.5px;
  top: 78px;
  bottom: -10px;
  border-left: 1px dashed var(--line-strong);
}

.mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  box-shadow: inset 0 0 0 4px var(--fog-900), inset 0 0 0 5px var(--line-strong);
  color: var(--gold);
  font: 700 22px/1 var(--font-brand);
  background: var(--fog-850);
}

.leg-body h3 {
  margin: 8px 0 10px;
  color: var(--gold);
  font: 600 calc(22px * var(--display-scale)) / 1.25 var(--font-display);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
}

.note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 15px;
}

.note.warn {
  border-left-color: var(--mark);
  color: #ecd2c3;
}

.ready {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 18px 0 0 78px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(233, 217, 180, 0.06), rgba(233, 217, 180, 0));
}

.ready h3 {
  color: var(--gold);
  font: 600 calc(17px * var(--display-scale)) / 1.3 var(--font-display);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
}

/* The screens: where the player clicks, as the player will see it. */
.step-shot {
  align-self: start;
  margin: 6px 0 0;
  padding: 4px;
  background: var(--fog-950);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.step-shot {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* The window's frames are at their own size; EU5's run larger, as the game draws them. */
.step-shot.window {
  width: 338px;
  max-width: 100%;
}

.step-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- II. the rules, on parchment ---------------------------------------------------------- */

.cartouche {
  padding: 34px clamp(20px, 4vw, 42px) 38px;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 40%, #e4d4b1 0%, #d9c59d 62%, #ccb68c 100%);
  border: 1px solid #7f6a48;
  box-shadow: inset 0 0 0 5px rgba(228, 212, 177, 0.6), inset 0 0 0 6px rgba(58, 47, 38, 0.42),
    0 20px 46px rgba(0, 0, 0, 0.36);
}

#rules {
  border-top: 0;
}

.cartouche .sec-num {
  color: #7d6646;
}

.cartouche .sec-head h2 {
  color: var(--ink);
}

.cartouche .sec-lead {
  color: var(--ink-soft);
}

.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  padding-top: 16px;
  border-top: 1px solid rgba(58, 47, 38, 0.3);
}

.rules .ic {
  color: var(--red-ink);
}

.rules h3 {
  margin: 10px 0 6px;
  color: var(--ink);
  font: 600 calc(17.5px * var(--display-scale)) / 1.3 var(--font-display);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
}

.rules p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---- III. world types ---------------------------------------------------------------------- */

.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.type {
  background: var(--fog-850);
  border: 1px solid var(--line);
}

.type h3 {
  margin: 14px 16px 6px;
  color: var(--gold);
  font: 600 calc(18.5px * var(--display-scale)) / 1.25 var(--font-display);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
}

.type p {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.vignette {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--sea);
  border-bottom: 1px solid var(--line);
}

.types-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.types-extra li {
  display: flex;
  gap: 12px;
}

.types-extra .ic {
  color: var(--gold-dim);
  margin-top: 1px;
}

.types-extra b {
  color: var(--gold);
  font-weight: 600;
}

.aside-note {
  margin-top: 22px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 15px;
  border-left: 2px solid var(--line-strong);
  background: rgba(233, 217, 180, 0.03);
}

/* ---- IV, VI. legends ----------------------------------------------------------------------- */

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 44px;
  margin: 32px 0 0;
}

.lg dt {
  position: relative;
  padding-left: 18px;
  color: var(--gold);
  font: 600 16.5px/1.4 var(--font-sans);
}

.lg dt::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-dim);
  transform: rotate(45deg);
}

.lg dt .ui {
  font-size: 0.92em;
}

.lg dd {
  margin: 8px 0 0 18px;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---- V. hidden map ------------------------------------------------------------------------- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
}

.shot {
  margin: 0;
  padding: 5px;
  background: var(--fog-950);
  border: 1px solid var(--line-strong);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 9px 5px 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

/* ---- VII. compatibility -------------------------------------------------------------------- */

.compat {
  margin: 26px 0 0;
}

.cp {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.cp:last-child {
  border-bottom: 1px solid var(--line);
}

.cp dt {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--gold);
  font: 600 15.5px/1.4 var(--font-sans);
}

.cp dd {
  margin: 0;
  font-size: 15.5px;
}

.mark-ok {
  color: var(--ok);
}

.mark-if {
  color: var(--warn);
}

.mark-no {
  color: var(--no);
}

/* ---- VIII. problems ------------------------------------------------------------------------ */

.faq {
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}

.qa {
  border-top: 1px solid var(--line);
}

.qa summary {
  position: relative;
  padding: 15px 40px 15px 0;
  color: var(--gold);
  font: 600 16.5px/1.45 var(--font-sans);
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--gold-dim);
  transition: transform 0.15s ease;
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa summary:hover {
  color: #fff3d6;
}

.qa-a {
  max-width: 46em;
  padding: 0 0 18px;
  font-size: 15.5px;
}

/* ---- footer ------------------------------------------------------------------------------ */

.foot {
  margin-top: 88px;
  background: var(--fog-950);
  border-top: 1px solid var(--line);
}

.foot-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px var(--gutter) 46px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font: 700 15px/1 var(--font-brand);
  letter-spacing: 0.06em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.small {
  max-width: 60em;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.55;
}

/* ---- root and 404: choose a language ------------------------------------------------------ */

.pick {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
  background: var(--fog-800) url(/assets/rhumbs.svg) center / cover no-repeat;
}

.pick-in {
  text-align: center;
}

.pick .compass {
  width: 54px;
  height: 54px;
}

.pick .brand-title {
  margin: 14px 0 26px;
  font-size: clamp(32px, 6vw, 52px);
}

.pick-note {
  color: var(--muted);
  font: 700 15px/1 var(--font-brand);
  letter-spacing: 0.3em;
}

.pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pick-list a {
  display: block;
  padding: 11px 14px;
  color: var(--text);
  background: rgba(34, 29, 25, 0.7);
  border: 1px solid var(--line-strong);
  text-decoration: none;
}

.pick-list a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ---- narrower screens -------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .layout {
    display: block;
  }

  .toc {
    display: none;
  }

  .sections {
    margin: 0 auto;
  }

  .bar-nav {
    display: none;
  }

  .lang,
  .bar-nav + .lang {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }

  .leg {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .step-shot {
    grid-column: 2;
    margin-top: 18px;
    max-width: 380px;
  }

  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .sec {
    padding-top: 48px;
  }

  .sec + .sec {
    margin-top: 40px;
  }

  .sec-lead {
    margin-left: 0;
  }

  .sec-head {
    gap: 12px;
  }

  .sec-num {
    min-width: 1.4em;
  }

  .sec-head h2 {
    font-size: calc(25px * var(--display-scale));
  }

  .legend,
  .pair,
  .types-extra {
    grid-template-columns: 1fr;
  }

  .cp {
    grid-template-columns: 1fr;
  }

  .ready {
    margin-left: 0;
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 520px) {
  .types,
  .rules {
    grid-template-columns: 1fr;
  }

  .leg {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 16px;
  }

  .mark {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .leg:not(:last-child)::before {
    left: 19.5px;
    top: 64px;
  }

  .step-shot {
    grid-column: 1 / -1;
    max-width: 420px;
  }

  .btn-plaque {
    padding: 7px 9px 6px;
    letter-spacing: 0.04em;
  }
}
