/* Pinnika — folk look (mustard / rust / teal, triangle-and-dot borders) */
:root {
  --ink: #2A211C;
  --ground: #FBEBC9;
  --surface: #FFF7E8;
  --mustard: #E39A3B;
  --sand: #F3D6A0;
  --teal: #2E6A5F;
  --rust: #A9412B;
  --band-bg: #F6D9A0;
  --line: rgba(42, 33, 28, 0.25);
  --max-width: 1040px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Karla', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding-inline: 20px; }

/* ---------- folk band: rule / triangles / dots / rule ---------- */
.band { background: var(--band-bg); border-block: 2px solid var(--ink); padding-block: 4px; }
.band .tri {
  height: 12px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12'%3E%3Cpolygon points='0,12 10,1 20,12' fill='black'/%3E%3C/svg%3E") repeat-x left bottom / 20px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12'%3E%3Cpolygon points='0,12 10,1 20,12' fill='black'/%3E%3C/svg%3E") repeat-x left bottom / 20px 12px;
}
.band .dots {
  height: 10px;
  margin-top: 3px;
  background-image: radial-gradient(circle, var(--rust) 2px, transparent 2.6px);
  background-size: 20px 10px;
  background-position: 10px center;
  background-repeat: repeat-x;
}

/* ---------- header ---------- */
header.site-header { padding-block: 22px; }
header.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { font-size: 1.6rem; letter-spacing: 0.01em; color: var(--teal); }
.beta-tag {
  font-family: 'Karla', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ground);
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  position: relative;
  top: -3px;
}
nav.site-nav a { text-decoration: none; font-size: 0.95rem; margin-left: 24px; color: var(--ink); }
nav.site-nav a:first-child { margin-left: 0; }
nav.site-nav a.active { border-bottom: 2px solid var(--rust); }
nav.site-nav a:hover { color: var(--rust); }

/* ---------- hero, framed like a printed panel ---------- */
.hero { padding-block: 36px 56px; text-align: center; }
.frame {
  border: 2px solid var(--ink);
  outline: 6px solid var(--band-bg);
  outline-offset: -10px;
  background: var(--surface);
  padding: 44px 24px;
  text-align: center;
}
.rosettes { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 18px; }
.rosette { width: 46px; height: 46px; }
.rosette.small { width: 28px; height: 28px; }
.r-petal { fill: var(--rust); stroke: var(--ink); stroke-width: 3; }
.r-core { fill: var(--band-bg); stroke: var(--ink); stroke-width: 3; }
.r-dot { fill: var(--teal); }
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  max-width: 16ch;
  margin: 0 auto 18px;
  color: var(--teal);
}
.hero .subhead { font-size: 1.12rem; max-width: 34em; margin: 0 auto 26px; }
.hero .status-note {
  display: inline-block;
  background: var(--teal);
  color: var(--ground);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

/* ---------- forms & buttons ---------- */
.waitlist { max-width: 440px; margin: 0 auto; }
.waitlist form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.waitlist input[type="email"],
.waitlist input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.waitlist button,
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: var(--rust);
  color: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}
.waitlist button:active,
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.waitlist button:disabled { opacity: 0.7; cursor: default; }
.waitlist input:focus-visible,
.waitlist button:focus-visible,
.btn:focus-visible,
nav.site-nav a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.waitlist .fine-print { font-size: 0.82rem; opacity: 0.75; margin: 12px 0 0; }
.waitlist .form-message { margin: 12px 0 0; font-size: 0.95rem; display: none; }
.waitlist .form-message.visible { display: block; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
section.mustard { background: var(--mustard); }
section.sand { background: var(--sand); }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 10px; color: var(--teal); }
section.mustard .section-head h2 { color: var(--ink); }
.section-head p { margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; padding: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--teal); }
.card p { margin: 0; }

/* ---------- event ---------- */
.event-card { max-width: 580px; margin: 0 auto; text-align: center; }
.event-card p { margin-bottom: 14px; }
.event-meta { list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.95rem; }
.event-meta li { margin: 2px 0; }

/* ---------- pricing ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 24px 16px;
  text-align: center;
}
.tier-card.tier-highlight {
  border-color: var(--ink);
  background: var(--band-bg);
  box-shadow: 4px 4px 0 var(--rust);
}
.tier-name { font-size: 0.92rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.tier-price { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; color: var(--rust); font-variant-numeric: tabular-nums; }

/* ---------- pay ---------- */
.pay-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.pay-box img.qr {
  width: 170px; height: 170px;
  margin: 0 auto 14px;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  image-rendering: pixelated;
}
.pay-box a { color: var(--ink); font-weight: 700; }
.pay-box .reference-note { font-size: 0.88rem; opacity: 0.8; margin-top: 8px; }

/* ---------- story ---------- */
.story-body { max-width: 640px; margin: 0 auto; }
.story-body p { margin: 0 0 20px; }

/* ---------- footer ---------- */
footer { padding-block: 34px 48px; text-align: center; font-size: 0.9rem; }
footer p { margin: 0 0 8px; }
footer a { text-decoration: underline; }
footer .foot-links a { margin: 0 8px; }

@media (max-width: 480px) {
  .frame { padding: 34px 16px; }
  nav.site-nav a { margin-left: 16px; }
}

/* ---------- recipe card ---------- */
.recipe-card h3 { padding-bottom: 8px; border-bottom: 3px double var(--rust); margin-bottom: 12px; }
.ingredients { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; column-gap: 24px; }
.ingredients li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ingredients li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px;
  background: var(--rust); transform: rotate(45deg); vertical-align: middle;
}
.ingredients li span { display: block; padding-left: 18px; font-size: 0.8rem; opacity: 0.7; line-height: 1.3; }
@media (max-width: 380px) { .ingredients { columns: 1; } }

/* ---------- hand-sketched diagrams on paper ---------- */
.paper {
  position: relative;
  margin-inline: 0;
  padding: 28px 22px 20px;
  color: #27365A; /* blue-black pen */
  background-color: #FFFDF5;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(46, 106, 95, 0.13) 27px 28px);
  border: 1px solid rgba(42, 33, 28, 0.15);
  box-shadow: 2px 3px 0 rgba(42, 33, 28, 0.12), 0 10px 24px rgba(42, 33, 28, 0.08);
  transform: rotate(-0.5deg);
  overflow-x: auto;
}
.paper.tilt-right { transform: rotate(0.5deg); }
.paper::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 96px; height: 22px; margin-left: -48px;
  background: rgba(246, 217, 160, 0.85);
  border: 1px solid rgba(42, 33, 28, 0.08);
  transform: rotate(-2deg);
}
.paper svg { display: block; min-width: 560px; }
.paper figcaption {
  font-family: 'Kalam', 'Comic Sans MS', cursive;
  font-size: 1.02rem;
  line-height: 1.4;
  text-align: center;
  margin-top: 12px;
}
@media (prefers-reduced-motion: reduce) { .paper, .paper.tilt-right { transform: none; } }

/* ---------- flowers ---------- */
.wordmark { display: inline-flex; align-items: center; }
.wordmark .mark { width: 26px; height: 26px; margin-right: 8px; }
.band { position: relative; }
.band::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%22-50%20-50%20100%20100%22%3E%3Ccircle%20r=%2248%22%20fill=%22%23FBEBC9%22%20stroke=%22%232A211C%22%20stroke-width=%223%22/%3E%3Cg%20transform=%22scale(0.8)%22%3E%3Cg%20fill=%22%23A9412B%22%20stroke=%22%232A211C%22%20stroke-width=%223%22%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(0)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(45)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(90)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(135)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(180)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(225)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(270)%22/%3E%3Cellipse%20cx=%220%22%20cy=%22-30%22%20rx=%228%22%20ry=%2216%22%20transform=%22rotate(315)%22/%3E%3C/g%3E%3Ccircle%20r=%2214%22%20fill=%22%23F6D9A0%22%20stroke=%22%232A211C%22%20stroke-width=%223%22/%3E%3Ccircle%20r=%226%22%20fill=%22%232E6A5F%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-logo { display: block; width: clamp(140px, 30vw, 180px); height: auto; margin: 0 auto 20px; }

/* ---------- form states ---------- */
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message.form-success { color: var(--teal); font-weight: 700; }
.form-message.form-error { color: var(--rust); font-weight: 600; }
