
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/zilla-slab-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/zilla-slab-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alfa-slab-one-latin-400-normal.woff2) format('woff2'); }

:root {
  --turf: #2f6b3a;
  --turf-deep: #1e4a27;
  --ply: #dcb884;
  --ply-edge: #a9814d;
  --canvas: #f1e7d0;
  --ink: #2b2016;
  --red: #a93226;
  --red-deep: #7d241b;
  --navy: #24406b;
  --navy-deep: #182c4a;
  --slab: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --decal: 'Alfa Slab One', Rockwell, 'Roboto Slab', Georgia, serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.16 0 0 0 0 0.07 0 0 0 0.55 -0.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.32' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.27 0 0 0 0 0.12 1.1 0 0 0 -0.34'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --weave:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.09) 0 1px, transparent 1px 3px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--slab);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    var(--noise),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.045) 0 72px, transparent 72px 144px),
    linear-gradient(var(--turf), var(--turf-deep));
  background-color: var(--turf-deep);
}

a { color: var(--red-deep); text-underline-offset: 3px; }
a:focus-visible, .plank:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  padding: 8px 12px; background: var(--canvas); color: var(--ink);
}
.skip:focus { left: 8px; }

/* The plywood rail across the top. */
.rail {
  position: sticky; top: 0; z-index: 10;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0
    max(16px, env(safe-area-inset-left));
  background: var(--grain), linear-gradient(var(--ply), #cfa772);
  box-shadow: 0 4px 0 var(--ply-edge), 0 8px 14px rgb(12 34 16 / 0.45);
}
.rail__top { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.rail__brand {
  color: var(--red); font-family: var(--decal); font-size: 1.5rem; line-height: 1;
  text-decoration: none;
}
.rail__signin {
  margin-left: auto; min-height: 40px; padding: 8px 14px; border-radius: 8px;
  color: var(--canvas); background: var(--red); font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 var(--red-deep);
}
.rail__nav {
  display: flex; gap: 4px; max-width: 760px; margin: 6px auto 0; overflow-x: auto;
  scrollbar-width: none;
}
.rail__nav a {
  flex: none; padding: 8px 10px 10px; color: var(--ink); font-weight: 700;
  text-decoration: none; border-bottom: 4px solid transparent;
}
.rail__nav a[aria-current='page'] { border-bottom-color: var(--red); }

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

main {
  width: min(100%, 760px); margin: 0 auto;
  padding: 22px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
  display: grid; gap: 26px;
}

/* A plywood board with its hole: the page title is painted on like a decal. */
.hero {
  position: relative; overflow: hidden; padding: 26px 22px 24px; border-radius: 10px;
  background: var(--grain), linear-gradient(var(--ply), #cfa772);
  box-shadow: inset 0 0 0 6px rgb(169 129 77 / 0.55), 0 6px 0 var(--ply-edge),
    0 18px 24px rgb(12 34 16 / 0.55);
}
.hero::after {
  /* The hole, tucked into the top-right corner. */
  content: ''; position: absolute; top: -26px; right: -26px; width: 118px; height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #120d09 0 62%, #2a1f16 64%);
  box-shadow: 0 0 0 5px rgb(169 129 77 / 0.7), inset 0 6px 10px rgb(0 0 0 / 0.6);
}
.hero__kicker {
  margin: 0 0 6px; color: var(--navy); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 13ch; color: var(--red); font-family: var(--decal); font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1; letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.25); opacity: 0.94;
}
.hero__lede { margin: 14px 0 0; max-width: 36em; font-size: 1.12rem; }

/* Canvas sheets hold the reading text: cream cloth with a stitched edge. */
.sheet {
  position: relative; padding: 26px 20px; border-radius: 8px;
  background: var(--weave), var(--canvas);
  box-shadow: 0 5px 0 #c9b893, 0 14px 22px rgb(12 34 16 / 0.45);
}
.sheet::before {
  content: ''; position: absolute; inset: 8px; border: 2px dashed rgb(43 32 22 / 0.22);
  border-radius: 5px; pointer-events: none;
}
.sheet > * { position: relative; }
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }
.sheet h2 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--red);
  font-family: var(--decal); font-weight: 400; font-size: 1.6rem; line-height: 1.1;
}
.sheet h3 { margin: 20px 0 6px; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.sheet p, .sheet ul, .sheet ol { margin: 0 0 12px; }
.sheet ul, .sheet ol { padding-left: 1.25em; }
.sheet li { margin-bottom: 6px; }
.sheet li::marker { color: var(--red); font-weight: 700; }
.sheet strong { font-weight: 700; }

/* A bag-shaped number badge next to a section title. */
.bag {
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 7px; color: var(--canvas); background: var(--weave), var(--red);
  font-family: var(--slab); font-weight: 700; font-size: 1.1rem;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.18), 0 3px 0 var(--red-deep);
  outline: 1px dashed rgb(241 231 208 / 0.6); outline-offset: -6px; transform: rotate(-4deg);
}
.bag--navy { background: var(--weave), var(--navy); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.15), 0 3px 0 var(--navy-deep); }
.bag--turf { background: var(--weave), var(--turf); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.15), 0 3px 0 var(--turf-deep); }

/* "Where ACL and ACO differ" notes: a strip of plywood. */
.rulebook {
  margin: 12px 0; padding: 10px 12px 10px 14px; border-radius: 6px;
  background: var(--grain), var(--ply); border-left: 6px solid var(--navy);
  font-size: 0.98rem;
}
.rulebook b { color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; display: block; }

/* Spec tables are ruled like a scorecard. */
.specs { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 0.97rem; }
.specs caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.specs th, .specs td { padding: 8px 6px; text-align: left; vertical-align: top; border-bottom: 2px solid rgb(43 32 22 / 0.15); }
.specs thead th { border-bottom: 3px solid var(--ink); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.specs tbody th { font-weight: 700; width: 30%; }

/* Points chips: 3 for the hole, 1 for the board, 0 for the dirt. */
.pts { display: grid; gap: 10px; margin: 10px 0 14px; padding: 0; list-style: none; }
.pts li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; margin: 0; }
.pts li::marker { content: none; }
.pts__n {
  display: grid; place-items: center; height: 54px; border-radius: 8px; color: var(--canvas);
  font-family: var(--decal); font-size: 1.7rem; background: #1b1511;
  box-shadow: inset 0 -27px 0 rgb(255 255 255 / 0.06), 0 3px 0 #000;
}

/* House rules: a navy bag panel, stitched, with a sewn-on label. */
.house {
  position: relative; margin: 18px 0 6px; padding: 30px 18px 18px; border-radius: 8px;
  color: var(--canvas); background: var(--weave), var(--navy);
  box-shadow: 0 5px 0 var(--navy-deep), 0 10px 16px rgb(12 34 16 / 0.35);
}
.house::before {
  content: ''; position: absolute; inset: 7px; border: 2px dashed rgb(241 231 208 / 0.45);
  border-radius: 5px; pointer-events: none;
}
.house .house__label {
  position: absolute; top: -12px; left: 16px; margin: 0; padding: 4px 12px;
  color: var(--canvas); background: var(--red); border-radius: 4px; font-family: var(--decal);
  font-weight: 400; font-size: 1.05rem; letter-spacing: 0.06em; transform: rotate(-2deg);
  box-shadow: 0 2px 0 var(--red-deep);
}
.house ul { position: relative; margin: 0 0 10px; padding-left: 1.2em; }
.house li { margin-bottom: 6px; }
.house li::marker { color: var(--ply); }
.house p { position: relative; margin: 0; }
.house a { color: var(--ply); }

/* Diagrams sit on a little patch of turf. */
.diagram {
  margin: 14px 0 16px; padding: 12px; border-radius: 8px;
  background: var(--noise), linear-gradient(var(--turf), var(--turf-deep));
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.15);
}
.diagram svg { display: block; width: 100%; height: auto; max-height: 640px; }
.diagram figcaption { margin-top: 8px; color: var(--canvas); font-size: 0.92rem; text-align: center; }

/* Flip-tile quick facts, like the scoreboard in the app. */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts li {
  display: grid; gap: 6px; justify-items: center; padding: 14px 8px 12px; border-radius: 8px;
  background: var(--card, #241b14); color: var(--canvas); text-align: center;
  box-shadow: 0 4px 0 #000, 0 10px 16px rgb(12 34 16 / 0.45);
}
.facts strong {
  position: relative; display: block; min-width: 2.2ch; padding: 2px 10px; border-radius: 6px;
  background: #1b1511; font-family: var(--decal); font-weight: 400; font-size: 2.4rem; line-height: 1.1;
  box-shadow: inset 0 -1.3rem 0 rgb(255 255 255 / 0.06);
}
.facts strong::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgb(0 0 0 / 0.6);
}
.facts span { font-size: 0.95rem; line-height: 1.3; }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Landing-page links: each one is a board lying on the grass. */
.boards { display: grid; gap: 18px; }
.boardlink {
  position: relative; display: grid; gap: 4px; padding: 22px 120px 22px 20px; min-height: 132px;
  border-radius: 10px; color: var(--ink); text-decoration: none;
  background: var(--grain), linear-gradient(90deg, var(--ply), #cfa772);
  box-shadow: inset 0 0 0 6px rgb(169 129 77 / 0.55), 0 6px 0 var(--ply-edge),
    0 14px 20px rgb(12 34 16 / 0.5);
  transition: transform 120ms ease;
}
.boardlink::after {
  content: ''; position: absolute; top: 50%; right: 26px; width: 76px; height: 76px;
  margin-top: -38px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #120d09 0 62%, #2a1f16 64%);
  box-shadow: 0 0 0 4px rgb(169 129 77 / 0.7), inset 0 6px 10px rgb(0 0 0 / 0.6);
}
.boardlink:hover { transform: translateY(-2px); }
.boardlink__title { color: var(--red); font-family: var(--decal); font-size: 1.6rem; line-height: 1.1; }
.boardlink__text { font-size: 1rem; }

/* Drills: a little scorecard each. */
.drills { display: grid; gap: 12px; margin: 10px 0 14px; padding: 0; list-style: none; }
.drills li {
  margin: 0; padding: 12px 14px; border-radius: 6px; background: #fff8e8;
  border: 2px solid rgb(43 32 22 / 0.18); border-top: 6px solid var(--ink);
}
.drills li::marker { content: none; }
.drills b { display: block; font-size: 1.08rem; }
.drills .goal { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 4px; background: var(--ink); color: var(--canvas); font-size: 0.88rem; }

/* App plug: a canvas strip with a red edge. */
.plug {
  margin: 14px 0; padding: 14px 16px; border-radius: 6px; background: #fff8e8;
  border-left: 8px solid var(--red); box-shadow: 0 2px 0 rgb(43 32 22 / 0.15);
}
.plug b { color: var(--red); }

.levelnote { margin: -4px 0 12px; font-size: 0.95rem; opacity: 0.8; }

/* The call to action: one more board, with the button painted on. */
.cta {
  position: relative; display: grid; gap: 10px; justify-items: start; padding: 26px 22px;
  border-radius: 10px; overflow: hidden;
  background: var(--grain), linear-gradient(var(--ply), #cfa772);
  box-shadow: inset 0 0 0 6px rgb(169 129 77 / 0.55), 0 6px 0 var(--ply-edge),
    0 18px 24px rgb(12 34 16 / 0.55);
}
.cta h2 { margin: 0; color: var(--red); font-family: var(--decal); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.cta p { margin: 0; max-width: 32em; }
.plank {
  display: inline-block; min-height: 52px; margin-top: 4px; padding: 13px 22px; border-radius: 8px;
  color: var(--canvas); background: var(--red); font-weight: 700; font-size: 1.15rem;
  text-decoration: none; box-shadow: 0 4px 0 var(--red-deep), 0 8px 12px rgb(0 0 0 / 0.25);
}
.plank:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }

.sources { margin-top: 18px !important; padding-top: 10px; border-top: 2px solid rgb(43 32 22 / 0.15); font-size: 0.88rem; }

/* Ad slots: empty until AdSense is approved. Take no space while empty. */
.ad-slot:empty { display: none; }

footer {
  padding: 0 16px max(24px, env(safe-area-inset-bottom)); color: var(--canvas); text-align: center;
  font-size: 0.92rem;
}
footer a { color: var(--canvas); }

@media (prefers-reduced-motion: reduce) { .boardlink { transition: none; } }
