/* Farm Boy — styles. Slim header law: the topbar is one slim bar that
   never scrolls as a big in-flow block; navigation lives in the drawer.
   Fluid text via clamp() between caps (fleet standard). */
:root {
  --primary: #7a1f1f;
  --primary-dark: #571414;
  --accent: #d9a441;
  --cream: #faf5ec;
  --ink: #221a15;
  --danger: #b3261e;
  --card: #ffffff;
  --line: #e4d9c8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.13rem);
  line-height: 1.5;
}
a { color: var(--primary); }

/* ── Slim top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.wordmark { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name { font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); letter-spacing: .01em; }
.wordmark-sub { font-size: clamp(.68rem, .62rem + .3vw, .8rem); opacity: .85; }
.burger {
  background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff;
  font-size: 1.15rem; border-radius: .5rem; padding: .3rem .6rem; cursor: pointer;
}

/* ── Storefront switcher (persistent, all three shops) ── */
.switcher {
  position: sticky; top: 3.1rem; z-index: 39;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--primary-dark);
}
.switcher a {
  color: #f3e4d3; text-decoration: none; text-align: center;
  padding: .55rem .25rem; font-weight: 600;
  font-size: clamp(.85rem, .78rem + .4vw, 1rem);
  border-bottom: 3px solid transparent;
}
.switcher a.active { color: #fff; border-bottom-color: var(--accent); background: rgba(255,255,255,.07); }

/* ── Drawer ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,10,5,.45); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: min(20rem, 88vw); background: #fff; box-shadow: -4px 0 18px rgba(0,0,0,.3);
  padding: 1rem; overflow-y: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.drawer-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a, .drawer-links button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: .7rem .4rem; font: inherit; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.drawer-links .sep { border-bottom: none; padding: .35rem .4rem 0; font-size: .8rem; color: #8a7a68; text-transform: uppercase; letter-spacing: .06em; }

/* ── Layout & cards ── */
.view { max-width: 62rem; margin: 0 auto; padding: 1rem 1rem 2.5rem; }
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 1rem; padding: 1.4rem 1.2rem; margin-bottom: 1rem;
}
.hero h1 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.2; }
.hero p { margin: 0; opacity: .92; max-width: 38rem; }
.announce { background: #fdf0d5; border: 1px solid var(--accent); border-radius: .75rem; padding: .8rem 1rem; margin-bottom: 1rem; }
.quickbar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.btn {
  display: inline-block; padding: .65rem 1.05rem; border-radius: .65rem;
  border: 1px solid var(--primary); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; background: #fff; color: var(--primary);
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #2a1c05; }
.btn.ghost { background: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.doors { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 44rem) { .doors { grid-template-columns: 1fr 1fr 1fr; } }
.door {
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--primary);
  border-radius: .9rem; padding: 1.1rem 1rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .35rem;
}
.door h3 { margin: 0; font-size: 1.25rem; color: var(--primary-dark); }
.door p { margin: 0; flex: 1; }
.door .cta { font-weight: 700; color: var(--primary); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: .9rem;
  padding: 1.05rem 1rem; margin-bottom: .9rem;
}
.card h2, .card h3 { margin-top: 0; color: var(--primary-dark); }
.items { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .items { grid-template-columns: 1fr 1fr; } }
.item { background: var(--card); border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1rem; }
.item h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.item p { margin: 0; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  background: #f3e4d3; color: var(--primary-dark); border-radius: 999px; padding: .12rem .55rem; margin-top: .5rem;
}
.platforms { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .platforms { grid-template-columns: 1fr 1fr; } }
.platform { border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; background: var(--card); }
.platform h3 { margin: 0 0 .4rem; }
.soon { font-weight: 700; color: var(--primary-dark); }
.hours-line { font-weight: 600; }
.muted { color: #6f6154; font-size: .92em; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; border-radius: .4rem;
  padding: .15rem .5rem; background: #f3e4d3; color: var(--primary-dark);
}
.badge.admin { background: #221a15; color: #ffd97a; }

/* ── Forms ── */
form.stack { display: flex; flex-direction: column; gap: .8rem; max-width: 30rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
input, select, textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid #c9bBA6; border-color: #c9bba6;
  border-radius: .55rem; background: #fff; color: var(--ink); width: 100%;
}
.form-note { color: var(--danger); font-weight: 600; }
.form-note.ok { color: #2e6b34; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-eye {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; padding: .3rem;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(20,10,5,.5);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal { background: #fff; border-radius: 1rem; padding: 1.2rem; width: min(30rem, 100%); max-height: 100dvh; overflow-y: auto; }
.modal h2 { margin-top: 0; }
.modal form { display: flex; flex-direction: column; gap: .8rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }

/* ── Gate ── */
.gate { text-align: center; padding: 1.5rem 1rem; }
.gate .big { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* ── Footer ── */
.footer { background: var(--primary-dark); color: #f3e4d3; margin-top: 2rem; }
.footer-inner { max-width: 62rem; margin: 0 auto; padding: 1.4rem 1rem 2rem; display: grid; gap: 1rem; }
.footer a { color: #ffd97a; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-built { opacity: .75; font-size: .9em; margin: 0; }
