/* ============================================================
   Brinewater Taffy Journal — boardwalk-press.css
   A confectionery editorial stylesheet: cream paper, deep teal
   ink, coral and saffron accents, asymmetric magazine rhythm.
   ============================================================ */

/* ---------- 1. Foundations ---------- */

:root {
  --paper: #FFF8EC;
  --paper-warm: #FBEFD9;
  --paper-deep: #F3E1C4;
  --ink: #123F42;
  --ink-soft: #3D6264;
  --ink-faint: #6F8A8A;
  --coral: #F0553C;
  --coral-deep: #B32F3F;
  --saffron: #F3B23C;
  --saffron-soft: #FFE2A6;
  --mint: #5ACEAC;
  --mint-deep: #1E7E69;
  --plum: #63429E;
  --line: rgba(18, 63, 66, 0.16);
  --line-strong: rgba(18, 63, 66, 0.34);
  --shadow-soft: 0 18px 40px -22px rgba(64, 41, 20, 0.45);
  --shadow-lift: 0 26px 54px -26px rgba(64, 41, 20, 0.55);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", "Lucida Console", monospace;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 2%, rgba(243, 178, 60, 0.16), transparent 40%),
    radial-gradient(circle at 92% 8%, rgba(240, 85, 60, 0.07), transparent 42%),
    repeating-linear-gradient(115deg, rgba(18, 63, 66, 0.028) 0 2px, transparent 2px 7px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.15rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1.15em;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.5em;
}

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

.skip-route {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 60;
  font-weight: 700;
}

.skip-route:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 2. Shared shells ---------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - (var(--gutter) * 2), 840px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

[id] {
  scroll-margin-top: 104px;
}

.rule-wave {
  border: 0;
  height: 12px;
  margin: 0;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 20px);
  opacity: 0.7;
}

.pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: #7A4A0E;
  font-size: 0.76rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.press-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.press-button:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #FFF8EC;
  transform: translateY(-2px);
}

.press-button--ghost {
  background: transparent;
  color: var(--ink);
}

.press-button--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- 3. Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.crest-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}

.crest-lockup img {
  width: 52px;
  height: 52px;
}

.crest-lockup__type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.crest-lockup__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.crest-lockup__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.masthead__nav a {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.masthead__nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.masthead__nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.masthead__toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- 4. Hero: asymmetric split ---------- */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) 0 clamp(24px, 4vw, 46px);
}

.hero-split__copy {
  position: relative;
}

.hero-split__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 18px;
  display: block;
}

.hero-split h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  line-height: 1.08;
}

.hero-split h1 em {
  font-style: normal;
  color: var(--coral);
  display: inline-block;
  position: relative;
  z-index: 0;
}

.hero-split h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.22em;
  background: var(--saffron);
  opacity: 0.55;
  border-radius: 6px;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hero-stats__cell {
  padding: 16px 18px 16px 0;
  border-right: 1px dashed var(--line-strong);
}

.hero-stats__cell:nth-child(2) {
  padding-left: 18px;
}

.hero-stats__cell:last-child {
  border-right: 0;
  padding-left: 18px;
}

.hero-stats__value {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
  color: var(--ink);
}

.hero-stats__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-plate {
  position: relative;
  margin: 0;
}

.hero-plate__frame {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lift);
  background: var(--paper-warm);
}

.hero-plate__frame img {
  width: 100%;
  height: auto;
}

.hero-plate__stamp {
  position: absolute;
  right: -14px;
  top: -18px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: var(--coral);
  color: #FFF6E6;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 0 6px;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(9deg);
}

.hero-plate__stamp strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.hero-plate figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-left: 3px solid var(--saffron);
  padding-left: 12px;
}

/* ---------- 5. Marquee ribbon ---------- */

.ribbon {
  background: var(--ink);
  color: var(--paper-warm);
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.ribbon__track {
  display: flex;
  gap: 34px;
  padding: 12px var(--gutter);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
}

.ribbon__track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.ribbon__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  display: inline-block;
}

/* ---------- 6. Section headings ---------- */

.chapter {
  padding: clamp(48px, 7vw, 92px) 0;
}

.chapter--tint {
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.chapter__head h2 {
  padding-bottom: 10px;
}

.chapter__head h2 {
  margin-bottom: 0;
}

.chapter__head p {
  margin-bottom: 0;
}

/* ---------- 7. Bento flavor grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.bento__cell {
  position: relative;
  background: #FFFDF7;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento__cell--wide {
  grid-column: span 4;
}

.bento__cell--half {
  grid-column: span 2;
}

.bento__cell--third {
  grid-column: span 2;
}

.bento__cell--art {
  padding: 0;
}

.bento__cell--art img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.bento__cell--sea {
  background: linear-gradient(160deg, #17686B, #0B3B3E);
  color: var(--paper-warm);
}

.bento .bento__cell--sea h3,
.bento .bento__cell--sea h4 {
  color: #FFF3D9;
}

.bento .bento__cell--sea p {
  color: rgba(255, 246, 226, 0.94);
}

.bento .bento__cell--sea .bento__tags li {
  color: #FFEFC6;
  border-color: rgba(255, 239, 198, 0.55);
  opacity: 1;
}

.bento__cell--saffron {
  background: linear-gradient(160deg, #FFE7B6, #F7CE7E);
}

.bento__cell--coral {
  background: linear-gradient(160deg, #FFDCCF, #FFB9A3);
}

.bento__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--coral-deep);
  margin-bottom: 10px;
}

.bento__cell--sea .bento__num {
  color: var(--saffron);
}

.bento h3 {
  margin-bottom: 8px;
}

.bento p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.bento__tags li {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
}

/* ---------- 8. Split article rows ---------- */

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.split-row--flip .split-row__art {
  order: 2;
}

.split-row__art {
  position: relative;
  margin: 0;
}

.split-row__art img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lift);
  background: #FFFDF7;
}

.split-row__art figcaption {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  margin-bottom: 20px;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--ink);
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.step-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.step-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- 9. Widgets ---------- */

.widget-deck {
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #FFFDF7;
  box-shadow: var(--shadow-lift);
  padding: clamp(20px, 3.4vw, 40px);
}

.widget-deck + .widget-deck {
  margin-top: 24px;
}

.widget-deck__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 2px dashed var(--line-strong);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.widget-deck__head h3 {
  margin: 0;
}

.widget-deck__hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.switch-chip {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.switch-chip:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.switch-chip[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #FFF8EC;
}

.readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.readout__panel {
  background: var(--paper-warm);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 22px;
}

.readout__panel h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.readout__tagline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 14px;
  display: block;
}

.note-stack {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 9px;
}

.note-stack li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  align-items: baseline;
}

.note-stack dt,
.note-stack b {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}

.meter {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.meter__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meter__track {
  height: 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--saffron) 62%, var(--coral));
  transition: width 320ms ease;
}

.counter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.counter-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #FFFDF7;
}

.counter-stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  font-family: var(--serif);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.counter-stepper button:hover {
  background: var(--saffron-soft);
}

.counter-stepper__value {
  min-width: 62px;
  text-align: center;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ratio-grid li {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #FFFDF7;
}

.ratio-grid b {
  display: block;
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.15;
  color: var(--ink);
}

.ratio-grid span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.deck-footnote {
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ---------- 10. Occasion cards ---------- */

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.occasion-card {
  margin: 0;
  background: #FFFDF7;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.occasion-card__art {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
}

.occasion-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.occasion-card__art--fit {
  background: var(--paper-warm);
}

.occasion-card__art--fit img {
  object-fit: contain;
  padding: 18px;
}

.occasion-card__body {
  padding: 20px;
}

.occasion-card__body h3 {
  margin-bottom: 6px;
}

.occasion-card__body p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- 11. Field notes aside ---------- */

.notes-shelf {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.notes-board {
  background: var(--ink);
  color: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lift);
}

.notes-board h2,
.notes-board h3 {
  color: #FFF3D9;
}

.notes-board p {
  color: rgba(255, 243, 217, 0.8);
}

.notes-board ol,
.notes-board ul {
  color: rgba(255, 243, 217, 0.86);
  font-size: 0.95rem;
}

.notes-board a {
  color: var(--saffron);
}

.notes-board a:hover {
  color: #FFF3D9;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.notes-card {
  border-left: 4px solid var(--saffron);
  padding: 4px 0 4px 18px;
}

.notes-card h3 {
  font-size: 1.14rem;
  margin-bottom: 4px;
}

.notes-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- 12. Table ---------- */

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #FFFDF7;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.size-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

.size-table th,
.size-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.size-table thead th {
  background: var(--ink);
  color: var(--paper-warm);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.size-table tbody tr:nth-child(even) {
  background: var(--paper-warm);
}

.size-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- 13. Call-to-paper band ---------- */

.desk-band {
  background:
    radial-gradient(circle at 84% 18%, rgba(243, 178, 60, 0.4), transparent 46%),
    linear-gradient(115deg, #17686B, #0A3538);
  color: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  box-shadow: var(--shadow-lift);
}

.desk-band h2 {
  color: #FFF3D9;
  margin-bottom: 10px;
}

.desk-band p {
  color: rgba(255, 243, 217, 0.84);
  margin-bottom: 0;
}

.desk-band__side {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.desk-band .press-button {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #4A2A06;
}

.desk-band .press-button:hover {
  background: var(--paper-warm);
  border-color: var(--paper-warm);
  color: var(--ink);
}

.desk-band .press-button--ghost {
  background: transparent;
  border-color: rgba(255, 243, 217, 0.6);
  color: var(--paper-warm);
}

.desk-band .press-button--ghost:hover {
  background: var(--paper-warm);
  color: var(--ink);
  border-color: var(--paper-warm);
}

/* ---------- 14. Footer ---------- */

.colophon {
  margin-top: clamp(46px, 7vw, 84px);
  background: #0A3134;
  color: rgba(255, 243, 217, 0.82);
  border-top: 3px solid var(--ink);
}

.colophon__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 0.7fr);
  gap: clamp(20px, 3.4vw, 42px);
  padding: clamp(34px, 5vw, 60px) 0 26px;
}

.colophon h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 14px;
}

.colophon a {
  color: rgba(255, 243, 217, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 243, 217, 0.28);
}

.colophon a:hover {
  color: var(--paper);
  border-bottom-color: var(--saffron);
}

.colophon ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
}

.colophon ul li {
  margin: 0;
}

.colophon__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.colophon__brand img {
  width: 56px;
  height: 56px;
}

.colophon__brand p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.colophon__bottom {
  border-top: 1px solid rgba(255, 243, 217, 0.18);
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.colophon__bottom p {
  margin: 0;
}

/* ---------- 15. Consent bar ---------- */

.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(100% - 32px, 880px);
  z-index: 80;
  background: #FFFDF7;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-bar[hidden] {
  display: none !important;
}

.consent-bar__text {
  flex: 1 1 300px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.consent-bar__text strong {
  color: var(--ink);
}

.consent-bar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-bar .press-button {
  padding: 10px 18px;
  font-size: 0.82rem;
}

/* ---------- 16. Legal pages ---------- */

.page-head {
  padding: clamp(34px, 5vw, 64px) 0 clamp(18px, 3vw, 30px);
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 16px;
}

.article-body {
  padding: clamp(30px, 5vw, 56px) 0 clamp(40px, 6vw, 70px);
}

.article-body h2 {
  margin-top: 1.9em;
  padding-top: 0.5em;
  border-top: 2px dashed var(--line-strong);
}

.article-body h2:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.article-body h3 {
  margin-top: 1.6em;
}

.article-body ul,
.article-body ol {
  color: var(--ink-soft);
}

.article-body strong {
  color: var(--ink);
}

.fact-panel {
  background: #FFFDF7;
  border: 2px solid var(--ink);
  border-left: 8px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 26px 0;
  box-shadow: var(--shadow-soft);
}

.fact-panel h3 {
  margin-top: 0;
}

.fact-panel ul {
  margin-bottom: 0;
}

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--coral-deep);
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--ink);
}

/* ---------- 17. Responsive ---------- */

@media (max-width: 1040px) {
  .chapter__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .bento__cell--wide {
    grid-column: span 6;
  }

  .bento__cell--half {
    grid-column: span 3;
  }

  .bento__cell--third {
    grid-column: span 3;
  }

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

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-plate {
    order: -1;
  }

  .split-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-row--flip .split-row__art {
    order: 0;
  }

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

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

  .notes-shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .masthead__toggle {
    display: inline-block;
  }

  .masthead__nav {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 2px dashed var(--line-strong);
    margin-top: 10px;
  }

  .masthead__nav[data-open="yes"] {
    display: flex;
  }

  .masthead__inner {
    flex-wrap: wrap;
  }
}

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

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats__cell {
    border-right: 0;
    border-bottom: 1px dashed var(--line-strong);
    padding: 12px 0;
  }

  .hero-stats__cell:last-child,
  .hero-stats__cell:nth-child(2) {
    padding-left: 0;
  }

  .hero-stats__cell:last-child {
    border-bottom: 0;
  }

  .bento__cell--half,
  .bento__cell--third {
    grid-column: span 6;
  }

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

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

  .hero-plate__stamp {
    width: 88px;
    height: 88px;
    right: -6px;
    top: -12px;
    font-size: 0.52rem;
  }

  .hero-plate__stamp strong {
    font-size: 1.05rem;
  }

  .note-stack li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .size-table {
    font-size: 0.85rem;
  }

  .size-table th,
  .size-table td {
    padding: 10px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
