/* =========================================================
   thavodraviecho.com — pegboard / workshop board
   Plain HTML + CSS + JS. No build step, no framework.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #1c211e;
  --cream:      #ece9de;
  --paper:      #f7f5ee;
  --sand:       #dedac9;
  --brass:      #e3c98a;
  --green:      #2f6b47;
  --green-deep: #1f4a31;
  --muted:      #565b54;
  --line:       #cfcab8;
  --white:      #ffffff;

  --display: "Big Shoulders Stencil Display", "Big Shoulders Stencil",
             "Oswald", "Arial Narrow", sans-serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --page:  1368px;
  --gutter: 72px;

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;

  --shadow-logo:  0 4px 5px rgba(18, 20, 18, .18);
  --shadow-chip:  0 3px 4px rgba(18, 20, 18, .15);
  --shadow-round: 0 6px 7px rgba(18, 20, 18, .28);
  --shadow-tag:   0 6px 7px rgba(18, 20, 18, .16);
  --shadow-note:  0 10px 11px rgba(18, 20, 18, .2);
  --shadow-card:  0 12px 12px rgba(18, 20, 18, .3);
  --shadow-sheet: 0 12px 13px rgba(18, 20, 18, .18);
  --shadow-deck:  0 10px 12px rgba(18, 20, 18, .4);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Type helpers ---------- */
.stencil {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: .01em;
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: .92;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.plate {
  background: var(--cream);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 19px;
  line-height: 1.5;
}
.plate--sand { background: var(--sand); font-size: 18px; }
.plate--muted { color: var(--muted); font-size: 18px; }

.link-underline {
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .18s var(--ease), text-underline-offset .18s var(--ease);
}
.link-underline:hover,
.link-underline:focus-visible { color: var(--green); text-underline-offset: 4px; }

.shell {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 4. Hooks, holes, rails ---------- */
.hook {
  width: 36px;
  height: 46px;
  flex: none;
}
.hole { width: 16px; height: 16px; flex: none; }

.hole-row { display: flex; justify-content: center; width: 100%; }

.rail {
  height: 14px;
  background: var(--ink);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 104px;
  display: flex;
  align-items: center;
}
.site-header--solid {
  position: relative;
  background: var(--ink);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--cream);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-logo);
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo__tag { width: 30px; height: 39px; }
.logo__word {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .6px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.logo--sm .logo__word { font-size: 26px; letter-spacing: .52px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-index {
  padding: 6px 12px;
  background: var(--brass);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-chip);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: transform .18s var(--ease);
}
.chip-index:hover { transform: translateY(-1px); }
.chip-index[aria-expanded="true"] { background: var(--green); color: var(--cream); }

.round-btn {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 99px;
  box-shadow: var(--shadow-round);
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.round-btn:hover { transform: translateY(-2px) rotate(-4deg); background: var(--green-deep); }
.round-btn img { width: 32.4px; height: 41.4px; }

/* Index drop panel */
.index-panel {
  position: absolute;
  right: var(--gutter);
  top: 92px;
  z-index: 70;
  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 14px 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.index-panel[data-open="true"] { display: flex; }
.index-panel a {
  padding: 8px 22px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.index-panel a:hover { background: var(--green); color: var(--cream); }
.index-panel hr { margin: 8px 22px; border: 0; border-top: 1px solid var(--line); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  height: 1000px;
  overflow: hidden;
  background: var(--sand) url("/assets/img/pegboard-hero.jpg") center / cover no-repeat;
}
.hero__stage {
  position: relative;
  width: 100%;
  max-width: var(--page);
  height: 100%;
  margin-inline: auto;
}

.hero__field {
  position: absolute;
  left: 430px; top: 118px;
  width: 560px; height: 385px;
  background: rgba(236, 233, 222, .9);
  border-radius: var(--r-md);
}
.hero__title {
  position: absolute;
  left: 460px; top: 142px;
  width: 500px;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 124px;
  line-height: .86;
  letter-spacing: 1.24px;
  color: var(--green-deep);
}
.hero__hook {
  position: absolute;
  left: 642px; top: 509px;
}
.hero__explainer {
  position: absolute;
  left: 460px; top: 561px;
  width: 400px;
  transform: rotate(1.5deg);
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 26px 24px;
  background: var(--brass);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.note-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 17px;
}
.note-card__links a { color: var(--green-deep); }

/* Hero shelf with the six outline tags */
.hero__rail {
  position: absolute;
  left: 50%; top: 836px;
  width: 100vw;
  transform: translateX(-50%);
  height: 12px;
  background: var(--ink);
}
.hero__shelf {
  position: absolute;
  left: 0; top: 830px;
  width: 100%;
  display: flex;
  gap: 18px;
  padding-inline: 81px;
}
.outline-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 186px;
  flex: none;
  text-decoration: none;
}
.outline-tag__card {
  width: 186px;
  height: 150px;
  margin-top: -18px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(236, 233, 222, .93);
  border: 4px solid var(--green);
  border-radius: var(--r-lg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.outline-tag:nth-child(1) .outline-tag__card { transform: rotate(-1.2deg); }
.outline-tag:nth-child(2) .outline-tag__card { transform: rotate(1deg); }
.outline-tag:nth-child(3) .outline-tag__card { transform: rotate(-.6deg); }
.outline-tag:nth-child(4) .outline-tag__card { transform: rotate(1.4deg); }
.outline-tag:nth-child(5) .outline-tag__card { transform: rotate(-1deg); }
.outline-tag:nth-child(6) .outline-tag__card { transform: rotate(.6deg); }
.outline-tag:hover .outline-tag__card,
.outline-tag:focus-visible .outline-tag__card {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-tag);
}
.outline-tag__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.outline-tag__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--green);
}
.outline-tag__top .hole { width: 12px; height: 12px; }
.outline-tag__name {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.outline-tag__genre {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .6px;
  color: var(--green);
}

/* ---------- 7. Dotted sections ---------- */
.dotted { position: relative; isolation: isolate; }
.dotted::before,
.dotted::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.dotted::before { background: var(--cream); }
.dotted::after {
  background: url("/assets/img/dot-tile.png") top left / 96px 96px repeat;
  opacity: .3;
}
.dotted--sand::before { background: var(--sand); }
.dotted--sand::after { opacity: .45; }
.dotted--green::before { background: var(--green-deep); }
.dotted--green::after { opacity: .35; }

/* ---------- 8. The board (carousel) ---------- */
.board { padding: 80px 0 88px; }
.board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.board__intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.board__intro .plate { max-width: 640px; }

.rail-controls { display: flex; gap: 10px; flex: none; }
.rail-btn {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--r-md);
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--green);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.rail-btn--next { background: var(--green); color: var(--white); }
.rail-btn:hover { transform: translateY(-2px); }
.rail-btn--prev:hover { background: var(--green); color: var(--white); }
.rail-btn--next:hover { background: var(--green-deep); }
.rail-btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }

/* The first card lines up with .shell even when the rail runs edge to edge. */
.board__rail-wrap { position: relative; }
.board__rail {
  display: flex;
  gap: 32px;
  padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.board__rail::-webkit-scrollbar { display: none; }
.board__metal {
  position: absolute;
  left: 0; top: 2px;
  width: 100%;
  height: 10px;
  background: var(--ink);
  pointer-events: none;
}

.board-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  flex: none;
  scroll-snap-align: start;
}
.tag-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 14px 22px 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-tag);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.board-tag:hover .tag-card { transform: translateY(-8px); box-shadow: var(--shadow-card); }

.tag-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag-card__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--green);
}
.genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 2px solid var(--green);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.genre-chip__code {
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .84px;
  color: var(--green);
}
.genre-chip__name { font-weight: 600; font-size: 12px; color: var(--ink); }

.tag-card__cover {
  width: 100%;
  height: 296px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--sand);
}
.tag-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: .95;
  color: var(--ink);
}
.tag-card__hook {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.tag-card__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 2px;
  border-top: 1.5px solid var(--line);
}
.field { display: flex; gap: 8px; align-items: flex-start; }
.field dt {
  flex: none;
  width: 86px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.field dd {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.tag-card__cta { font-size: 16px; }

.board__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.progress { display: flex; gap: 6px; }
.progress span {
  height: 6px;
  width: 16px;
  border-radius: 3px;
  background: var(--line);
  transition: width .25s var(--ease), background .25s var(--ease);
}
.progress span[data-active="true"] { width: 40px; background: var(--green); }
.board__count {
  padding: 4px 8px;
  background: var(--cream);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 9. Sign-out sheet ---------- */
.sheet { padding: 96px 0 104px; }
.sheet__head {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 40px;
}
.sheet__head .section-title { width: 560px; flex: none; }
.sheet__head .plate { width: 560px; }

.clipboard {
  position: relative;
  padding-bottom: 18px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sheet);
}
.clipboard__clip {
  width: 180px; height: 22px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: var(--r-md);
}
.log { width: 100%; table-layout: fixed; }
.log th {
  padding: 16px 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
}
.log td {
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.3;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.log tr > *:first-child { padding-left: 30px; }
.log tr > *:last-child { padding-right: 30px; }
.log col.c-checked { width: 150px; }
.log col.c-hook    { width: 80px; }
.log col.c-guide   { width: 300px; }
.log col.c-genre   { width: 190px; }
.log col.c-change  { width: 320px; }
.log col.c-by      { width: 184px; }
.log tbody tr { transition: background .15s var(--ease); }
.log tbody tr:hover { background: var(--cream); }

/* ---------- 10. About the board ---------- */
.about { padding: 96px 0 104px; }
.about__grid {
  display: flex;
  align-items: center;
  gap: 80px;
}
.about__copy { display: flex; flex-direction: column; gap: 18px; width: 700px; }
.about__copy .section-title { color: var(--cream); }
.about__copy p { font-size: 20px; line-height: 1.55; color: var(--white); }
.about__copy .link-underline { color: var(--brass); font-size: 17px; }
.about__copy .link-underline:hover { color: var(--white); }

.rules-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 420px;
  flex: none;
}
.rules-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 26px 26px;
  background: var(--brass);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 11px rgba(18, 20, 18, .35);
  transform: rotate(-2deg);
}
.rules-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
}
.rules-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.35;
}
.rules-card li::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: 2px;
  border: 3px solid var(--green);
  border-radius: 2px;
}

/* ---------- 11. FAQ ---------- */
.faq { padding: 96px 0 104px; }
.faq__grid { display: flex; gap: 60px; align-items: flex-start; }
.faq__intro { display: flex; flex-direction: column; gap: 14px; width: 380px; flex: none; }
.faq__list { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }

.faq-item {
  background: var(--cream);
  border: 2px solid var(--green);
  border-radius: 5px;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[data-open="true"] {
  background: var(--paper);
  border-color: transparent;
  box-shadow: 0 8px 9px rgba(18, 20, 18, .14);
}
.faq-item__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 24px;
  text-align: left;
}
.faq-item__q {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}
.faq-item__sign {
  flex: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--green);
}
.faq-item__body {
  display: none;
  padding: 0 24px 18px 52px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.faq-item[data-open="true"] .faq-item__body { display: block; }

/* ---------- 12. Marquee ---------- */
.marquee {
  display: flex;
  align-items: center;
  height: 76px;
  overflow: hidden;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 0;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track span {
  flex: none;
  padding-right: 0;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 1.36px;
  color: var(--brass);
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 13. Leave a note ---------- */
.note { padding: 96px 0 104px; }
.note__grid { display: flex; align-items: center; gap: 60px; }
.note__copy { display: flex; flex-direction: column; gap: 16px; width: 600px; flex: none; }
.note__tag { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.note__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 34px 30px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-note);
  transform: rotate(1.5deg);
}
.note__label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
}
.note__mail {
  font-family: var(--display);
  font-weight: 900;
  /* sized so a full address stays on one line inside the tag */
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.05;
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  padding: 88px 0 40px;
  background: var(--ink);
  color: var(--cream);
}
.deck { display: flex; align-items: flex-start; }
.deck > * { flex: none; }
.deck__card {
  padding: 34px 64px 40px 34px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deck);
  transition: transform .25s var(--ease);
}
.deck__card--about {
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
  color: var(--ink);
  transform: rotate(-1.5deg);
  z-index: 3;
}
.deck__card--about p { font-size: 16px; line-height: 1.5; }
.deck__card--about .fine { font-size: 14px; color: var(--muted); }

.deck__card--links {
  width: 440px;
  margin-left: -36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 64px 40px 70px;
  background: var(--brass);
  color: var(--ink);
  transform: rotate(1.2deg);
  z-index: 2;
}
.deck__card--contact {
  flex: 1;
  min-width: 0;
  margin-left: -36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 34px 40px 70px;
  background: var(--green);
  color: var(--white);
  transform: rotate(-1deg);
  z-index: 1;
}
.deck__card:hover { transform: rotate(0deg) translateY(-6px); z-index: 5; }

.deck__label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.deck__card--contact .deck__label { color: var(--cream); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-weight: 500;
  font-size: 16px;
}
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { text-decoration-thickness: 2px; }

.deck__mail {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.social { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.social a {
  padding: 6px 12px;
  border: 1.5px solid var(--cream);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.social a:hover { background: var(--cream); color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 14px;
  color: var(--cream);
}
.footer-bottom button { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 15. Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 50%; bottom: 20px;
  z-index: 120;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  width: min(880px, calc(100vw - 32px));
  padding: 18px 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.cookie-bar[data-open="true"] { display: flex; }
.cookie-bar p { flex: 1; min-width: 260px; font-size: 15px; line-height: 1.45; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--green); color: var(--white); }
.btn--solid:hover { background: var(--green-deep); }
.btn--ghost { border: 2px solid var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }

/* ---------- 16. Inner pages ---------- */
.page-head {
  padding: 72px 0 56px;
}
.page-head__kicker {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-head .section-title { max-width: 900px; }
.page-head .plate { max-width: 720px; margin-top: 16px; }

.prose {
  max-width: 820px;
  padding-bottom: 96px;
  font-size: 17px;
  line-height: 1.65;
}
.prose h2 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.prose h3 {
  margin: 28px 0 10px;
  font-weight: 600;
  font-size: 20px;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: 8px;
  border: 3px solid var(--green);
  border-radius: 2px;
}
.prose a { color: var(--green-deep); font-weight: 500; }

.card-note {
  padding: 20px 26px 24px;
  margin: 28px 0;
  background: var(--brass);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-note);
}
.card-note h3 { margin-top: 0; font-family: var(--display); font-weight: 900; font-size: 28px; }

/* Games grid */
.grid-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 32px;
  padding-bottom: 96px;
}
.grid-board .board-tag { width: 100%; }

/* Guide page */
.guide { padding: 64px 0 96px; }
.guide__top { display: flex; gap: 48px; align-items: flex-start; }
.guide__cover {
  width: 420px; flex: none;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-tag);
}
.guide__intro { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.guide__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-tag);
}
.guide__specs .field dt { width: 110px; font-size: 12px; }
.guide__specs .field dd { font-size: 15px; }

/* Contact aside: the same tag as on the front page, sized for a column */
.note__tag--aside { flex: 0 0 420px; max-width: 100%; }
.note__card--compact .note__mail { font-size: clamp(22px, 2.1vw, 28px); }
.note__hint { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1367px) {
  :root { --gutter: 48px; }

  .hero { height: auto; padding-bottom: 0; }
  .hero__stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 148px var(--gutter) 0;
  }
  .hero__field, .hero__title, .hero__hook, .hero__explainer,
  .hero__rail, .hero__shelf { position: static; }
  .hero__field { display: none; }
  .hero__title {
    width: auto;
    max-width: 660px;
    font-size: clamp(64px, 9vw, 124px);
    padding: 18px 24px;
    background: rgba(236, 233, 222, .9);
    border-radius: var(--r-md);
  }
  .hero__hook { margin-left: 40px; }
  .hero__explainer { width: min(400px, 100%); margin-bottom: 40px; }
  .hero__rail {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
    transform: none;
    height: 12px;
  }
  .hero__shelf {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero__shelf::-webkit-scrollbar { display: none; }

  .sheet__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sheet__head .section-title, .sheet__head .plate { width: auto; max-width: 640px; }

  .about__grid { gap: 48px; }
  .about__copy { width: auto; flex: 1; }
  .rules-tag { width: 380px; }

  .note__copy { width: auto; flex: 1; }
  .guide__cover { width: 340px; }
}

@media (max-width: 1100px) {
  .board__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about__grid { flex-direction: column; align-items: flex-start; }
  .rules-tag { width: min(420px, 100%); align-self: stretch; }
  .faq__grid { flex-direction: column; gap: 32px; }
  .faq__intro { width: auto; }
  .note__grid { flex-direction: column; align-items: stretch; }
  .note__copy { width: auto; }
  .grid-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide__top { flex-direction: column; }
  .guide__cover { width: min(420px, 100%); }

  .deck { flex-direction: column; gap: 18px; }
  .deck > * { width: 100% !important; margin-left: 0 !important; flex: none; }
  .deck__card { padding: 30px 30px 34px !important; }

  /* the log table becomes a stack of cards */
  .log, .log tbody, .log tr, .log td { display: block; width: 100%; }
  .log thead { display: none; }
  .log colgroup { display: none; }
  .log tr {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }
  .log tr > *:first-child, .log tr > *:last-child { padding-inline: 0; }
  .log td { padding: 3px 0; border: 0; }
  .log td::before {
    content: attr(data-label) " · ";
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .log td[data-label="Guide"] { font-size: 19px; margin-bottom: 4px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }

  .site-header { height: 88px; }
  .logo { padding: 6px 10px 6px 8px; }
  .logo__tag { width: 24px; height: 31px; }
  .logo__word { font-size: 24px; }
  .round-btn { width: 52px; height: 52px; }
  .round-btn img { width: 26px; height: 33px; }
  .index-panel { right: var(--gutter); top: 78px; left: var(--gutter); }

  .hero__stage { padding-top: 124px; }
  .hero__title { font-size: clamp(40px, 12vw, 84px); padding: 14px 18px; }

  .board { padding: 56px 0 64px; }
  .sheet, .about, .faq, .note { padding: 56px 0 64px; }
  .site-footer { padding: 56px 0 32px; }

  .board-tag { width: 300px; }
  .tag-card__cover { height: 240px; }

  .grid-board { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .marquee { height: 62px; }
  .marquee__track span { font-size: 26px; }

  .faq-item__q { font-size: 18px; }
  .faq-item__body { padding-left: 24px; }

  .rules-card, .note__card, .hero__explainer { transform: none; }
  .prose h2 { font-size: 32px; }
  .cookie-bar { bottom: 12px; padding: 16px 18px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }

  .logo { gap: 8px; padding: 5px 9px 5px 7px; }
  .logo__tag { width: 21px; height: 27px; }
  .logo__word { font-size: 20px; }
  .header-actions { gap: 8px; }
  .chip-index { padding: 5px 10px; font-size: 14px; }
  .round-btn { width: 44px; height: 44px; }
  .round-btn img { width: 22px; height: 28px; }

  .site-header { height: 76px; }
  .index-panel { top: 66px; }
  .hero__stage { padding-top: 104px; }

  .board-tag { width: min(280px, 82vw); }
  .tag-card { padding: 12px 18px 20px; }
  .tag-card__cover { height: 210px; }
  .tag-card__title { font-size: 28px; }
  .field dt { width: 72px; }

  .outline-tag, .outline-tag__card { width: 164px; }
  .rail-btn { width: 48px; height: 48px; font-size: 28px; }

  .note__card, .rules-card, .deck__card { padding: 16px 20px 22px !important; }
  .note__mail, .deck__mail { font-size: 22px; }
  .rules-card h3 { font-size: 30px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
}
