/* Ben's Hoes: one stylesheet, no build step. */

:root {
  --cream: #fbf3df;
  --paper: #f4e6c4;
  --ink: #2a1a12;
  --ink-soft: #5a4232;
  --barn: #b3261e;
  --gold: #f2b705;
  --gold-deep: #c98a00;
  --leaf: #2f5d2b;
  --choc: #2a1a12;
  --choc-2: #3a2519;
  --on-dark: #fbf3df;
  --on-dark-muted: #d9c6a3;
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --western: "Rye", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- parody bar ---------- */
.parody-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-dark);
  font-size: .85rem; text-align: center; padding: .5rem 16px;
  border-bottom: 3px solid var(--gold);
}
.parody-bar p { margin: 0; }
.parody-bar a { color: var(--gold); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--barn); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold-deep); }
.btn-gold:hover { box-shadow: 0 6px 0 var(--gold-deep); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  color: var(--on-dark); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(30,16,8,.92) 0%, rgba(30,16,8,.55) 38%, rgba(30,16,8,0) 70%),
    linear-gradient(to right, rgba(30,16,8,.7), rgba(30,16,8,0) 65%);
}
.hero-in { padding: 6rem 0 3.5rem; max-width: 1160px; }
.eyebrow { font-family: var(--western); color: var(--gold); letter-spacing: .04em; font-size: .95rem; margin-bottom: .75rem; }
.hero h1 {
  font-size: clamp(3.6rem, 13vw, 9rem); font-weight: 900; letter-spacing: -0.02em;
  text-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.hero h1 span { color: var(--gold); font-style: italic; }
.lede { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2.1rem); margin: .75rem 0 .75rem; font-weight: 500; }
.lede em { color: var(--gold); }
.sub { max-width: 34rem; color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- sections ---------- */
.sec { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 2.5rem; }
.sec-dark { background: var(--choc); color: var(--on-dark); }
.sec-dark .sec-intro { color: var(--on-dark-muted); }
.kicker { font-family: var(--western); color: var(--barn); font-size: .95rem; letter-spacing: .05em; margin-bottom: .6rem; }
.sec-dark .kicker { color: var(--gold); }
.sec-intro { font-size: 1.15rem; max-width: 46rem; color: var(--ink-soft); margin-bottom: 2rem; }
.fine { display: block; font-size: .85rem; margin-top: .5rem; opacity: .8; }

.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.1fr .9fr; } }

/* ---------- farmer ---------- */
.farmer { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .farmer { grid-template-columns: .9fr 1.1fr; } }
.farmer-photo { margin: 0; position: relative; }
.farmer-photo img { border-radius: 50% 50% var(--radius) var(--radius); border: 6px solid var(--ink); box-shadow: 12px 12px 0 var(--gold); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.stats div { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stats dt { font-family: var(--western); font-size: .8rem; color: var(--barn); }
.stats dd { margin: .2rem 0 0; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
.hay-status { display: inline-flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--on-dark); padding: .5rem 1rem; border-radius: 999px; font-size: .95rem; }
.hay-status b { color: var(--gold); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #5ad15a; box-shadow: 0 0 0 0 rgba(90,209,90,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(90,209,90,0); } 100% { box-shadow: 0 0 0 0 rgba(90,209,90,0); } }

/* ---------- tour ---------- */
.rooms { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rooms { grid-template-columns: 1fr 1fr; } }
.room { background: var(--choc-2); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(242,183,5,.25); display: flex; flex-direction: column; }
.room img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.room-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.room h3 { color: var(--gold); }
.room p { color: var(--on-dark-muted); }
.rule { margin-top: auto; margin-bottom: 0; padding: .8rem 1rem; border-left: 4px solid var(--barn); background: rgba(0,0,0,.25); border-radius: 0 10px 10px 0; font-size: .95rem; }
.rule b { color: var(--on-dark); }

/* ---------- hoe-loompas ---------- */
.wide-photo { margin: 0 0 2.5rem; }
.wide-photo img, .crew-photo img { border-radius: var(--radius); width: 100%; }
.wide-photo img { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 40%; border: 4px solid var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.facts li { padding-left: 1.8rem; position: relative; }
.facts li::before { content: "\1F33D"; position: absolute; left: 0; top: 0; }

.song {
  background: var(--leaf); color: var(--on-dark); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 10px 10px 0 var(--ink);
}
.song-label { font-family: var(--western); color: var(--gold); margin-bottom: .25rem; }
.song-who { font-size: .95rem; color: var(--on-dark-muted); }
.song-text { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.5; min-height: 9.5rem; }
.song-text p { margin: 0; }
.song-text.sing { animation: sing .5s ease; }
@keyframes sing { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- golden cob ---------- */
.cob-game { background: var(--choc-2); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(242,183,5,.25); }
.cob-tries { margin-bottom: 1rem; color: var(--on-dark-muted); }
.cob-tries b { color: var(--gold); }
.cob-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; max-width: 960px; }
@media (min-width: 760px) { .cob-row { grid-template-columns: repeat(12, 1fr); } }
.cob {
  appearance: none; border: 0; cursor: pointer; padding: 0;
  aspect-ratio: 1 / 2.1; border-radius: 50% 50% 46% 46% / 30% 30% 20% 20%;
  background:
    radial-gradient(ellipse at 50% 0%, #d8c06a 0 18%, transparent 19%),
    linear-gradient(100deg, #4e8a3a 0 22%, #7bb35a 22% 50%, #4e8a3a 50% 78%, #3d6f2d 78%);
  font-size: 0; position: relative;
  transition: transform .2s ease, filter .2s ease;
}
.cob:hover:not(:disabled) { transform: translateY(-6px) rotate(-3deg); }
.cob:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.cob:disabled { cursor: default; }
.cob.plain { background: repeating-radial-gradient(circle at 50% 50%, #f5d76e 0 4px, #e7b93c 4px 7px); filter: saturate(.8); }
.cob.gold {
  background: repeating-radial-gradient(circle at 50% 50%, #fff3b0 0 4px, #f2b705 4px 7px);
  box-shadow: 0 0 24px 6px rgba(242,183,5,.75);
  animation: shine 1.2s ease-in-out infinite alternate;
}
@keyframes shine { to { box-shadow: 0 0 40px 12px rgba(242,183,5,.9); } }
.cob-msg { min-height: 1.6em; margin: 1.25rem 0 .5rem; font-family: var(--display); font-size: 1.3rem; color: var(--on-dark); }
.cob-reset { margin-top: .25rem; }

.ticket {
  margin-top: 2rem; display: grid; gap: 0; overflow: hidden;
  background: linear-gradient(135deg, #fff3b0, var(--gold) 55%, var(--gold-deep));
  color: var(--ink); border-radius: var(--radius); border: 3px dashed var(--ink);
  animation: sing .6s ease;
}
@media (min-width: 720px) { .ticket { grid-template-columns: 260px 1fr; } }
.ticket img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.ticket-body { padding: 1.5rem 1.75rem; }
.ticket-top { font-family: var(--western); color: var(--barn); margin-bottom: .4rem; }
.ticket-sign { font-family: var(--display); font-style: italic; font-size: 1.2rem; margin: 0; }
.ticket-sign span { font-size: .9rem; opacity: .7; }

/* ---------- forecast ---------- */
.forecast { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .forecast { grid-template-columns: 1fr 1fr; } }
.almanac { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: 10px 10px 0 var(--barn); }
.almanac-icon { font-size: 4rem; line-height: 1; margin-bottom: .75rem; }
.almanac-text { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.3; min-height: 4em; display: grid; place-items: center; }

/* ---------- faq ---------- */
.faq-wrap { align-items: center; }
@media (min-width: 880px) { .faq-wrap { grid-template-columns: 1fr 1fr; } }
.crew-photo { margin: 0; }
.crew-photo img { border: 4px solid var(--gold); }
details { border-bottom: 1px solid rgba(251,243,223,.2); padding: .9rem 0; }
summary { cursor: pointer; font-family: var(--display); font-size: 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--on-dark-muted); margin: .6rem 0 0; }

/* ---------- real ---------- */
.real { background: var(--paper); border-top: 4px solid var(--ink); }
.also { margin-top: 1.5rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--on-dark-muted); padding: 4rem 0 5rem; font-size: .92rem; }
footer p { max-width: 46rem; }
.foot-big { font-family: var(--display); font-weight: 900; font-style: italic; color: var(--gold); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; margin-bottom: 1.5rem; }
footer b { color: var(--on-dark); }
