/* Tacklebox Treasures — shared styles */

:root {
  --deep-water: #0b2f38;
  --deep-water-2: #0f3f4a;
  --river-fog: #e9f1f2;
  --paper: #ffffff;
  --ink: #10262c;
  --ink-soft: #3d555c;
  --plank: #4a2b13;
  --plank-edge: #2f1a0a;
  --lure-yellow: #ffc93c;
  --trout-pink: #c4254f;
  --trout-pink-dark: #9f1a3d;
  --river-blue: #1f8fc0;
  --line: #c9d8da;

  --display: "Bangers", "Impact", "Haettenschweiler", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--river-fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--trout-pink-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--trout-pink); }

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; letter-spacing: 0.03em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lure-yellow);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-head {
  background: var(--deep-water);
  color: #fff;
  border-bottom: 3px solid var(--lure-yellow);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand:hover { color: var(--lure-yellow); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--lure-yellow);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding-block: 6px;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--lure-yellow); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  color: #fff;
  background-color: var(--deep-water);
  /* fish-scale pattern, echoing the box */
  background-image:
    radial-gradient(circle at 50% 0, transparent 66%, rgba(255, 255, 255, 0.07) 67% 71%, transparent 72%),
    radial-gradient(circle at 50% 0, transparent 66%, rgba(255, 255, 255, 0.07) 67% 71%, transparent 72%),
    linear-gradient(180deg, var(--deep-water-2), var(--deep-water));
  background-size: 56px 44px, 56px 44px, 100% 100%;
  background-position: 0 0, 28px 22px, 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}

.hero h1 {
  color: #fff;
  text-shadow: 0 3px 0 #06343f, 0 6px 0 rgba(0, 0, 0, 0.35);
  margin-bottom: 0.3em;
}

.hero .lede {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 34ch;
  margin-bottom: 1.4em;
}

.hero .edition {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--lure-yellow);
  margin: 0 0 0.4em;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--lure-yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd866; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Flip box ---------- */

.flipbox { max-width: 400px; margin-inline: auto; width: 100%; }

.flipbox-stage { perspective: 1400px; }

.flipbox-card {
  position: relative;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.flipbox.is-flipped .flipbox-card { transform: rotateY(180deg); }

.flipbox-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.flipbox-face img { width: 100%; height: 100%; object-fit: cover; }
.flipbox-back { transform: rotateY(180deg); }

.flipbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.flipbox-caption { margin: 0; color: #cfe3e6; font-size: 0.95rem; }

.flipbox button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--trout-pink);
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.flipbox button:hover { background: var(--trout-pink-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flipbox-card { transition: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(44px, 7vw, 84px); }
.section-paper { background: var(--paper); }
.section h2 { margin-bottom: 0.45em; color: var(--deep-water); }
.section-intro { font-size: 1.15rem; margin-bottom: 1.6em; }

/* What's in the box: a label-style spec list */
.spec {
  margin: 0;
  border-top: 3px solid var(--deep-water);
  max-width: 820px;
}
.spec div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-weight: 700; color: var(--deep-water); }
.spec dd { margin: 0; }

/* Photos */
.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  max-width: 760px;
}
.photos figure { margin: 0; }
.photos img { border-radius: 8px; box-shadow: 0 10px 24px rgba(11, 47, 56, 0.25); }
.photos figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

/* Checklist notice */
.notice {
  border-left: 6px solid var(--river-blue);
  background: var(--paper);
  padding: 22px 24px;
  max-width: 820px;
  border-radius: 0 8px 8px 0;
}
.section-paper .notice { background: var(--river-fog); }
.notice p:last-child { margin-bottom: 0; }
.status {
  display: inline-block;
  font-weight: 700;
  background: var(--deep-water);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Plank: the disclosures, styled after the back of the box */
.plank-band {
  background-color: var(--deep-water);
  background-image:
    radial-gradient(circle at 50% 0, transparent 66%, rgba(255, 255, 255, 0.06) 67% 71%, transparent 72%),
    radial-gradient(circle at 50% 0, transparent 66%, rgba(255, 255, 255, 0.06) 67% 71%, transparent 72%);
  background-size: 56px 44px, 56px 44px;
  background-position: 0 0, 28px 22px;
}

.plank {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 46px, rgba(0, 0, 0, 0.18) 46px 48px),
    linear-gradient(180deg, #5b3619, var(--plank));
  color: #fff;
  border: 3px solid var(--plank-edge);
  border-radius: 10px;
  padding: clamp(22px, 4vw, 44px);
  max-width: 900px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.plank h2 { color: var(--lure-yellow); text-shadow: 0 2px 0 var(--plank-edge); }
.plank h3 { color: var(--lure-yellow); margin: 1.2em 0 0.3em; }
.plank p { max-width: 68ch; }
.plank p:last-child { margin-bottom: 0; }
.plank strong { color: var(--lure-yellow); }

/* FAQ */
.faq { max-width: 820px; border-top: 3px solid var(--deep-water); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  color: var(--deep-water);
}
.faq details p { padding-bottom: 6px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  max-width: 820px;
}
.contact-grid h3 { color: var(--deep-water); margin-bottom: 0.3em; }
address { font-style: normal; }

/* Policy pages */
.page-head {
  background: var(--deep-water);
  color: #fff;
  padding-block: clamp(32px, 5vw, 56px);
}
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); }
.page-head p { color: #cfe3e6; margin: 0.6em 0 0; }

.prose h2 { font-size: 1.9rem; margin: 1.6em 0 0.4em; color: var(--deep-water); }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--deep-water);
  color: #cfe3e6;
  padding-block: 36px;
  font-size: 0.95rem;
  border-top: 3px solid var(--lure-yellow);
}
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--lure-yellow); }
.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.site-foot p { max-width: 80ch; margin-bottom: 0.7em; }

/* ---------- Small screens ---------- */

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .flipbox { max-width: 320px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .spec div { grid-template-columns: minmax(0, 1fr); }
  .flipbox-controls { flex-direction: column; align-items: stretch; text-align: center; }
}
