/* York County Gardeners: shared styles.
   Colors, fonts, blob shapes, and button/form looks are taken from the Harvest Fest sign-up page.
   Change colors here and every page follows. */

:root {
  --paper: #fde3c1;      /* page background */
  --card: #fff8e8;       /* card background */
  --field: #fffdf4;      /* form field background */
  --ink: #3a2a1d;        /* main text and borders */
  --muted: #5a4636;      /* secondary text (passes AA on cream) */
  --tomato: #c2431f;     /* primary button fill */
  --red: #a33219;        /* red text and error box */
  --forest: #2b5a17;     /* links in footer, focus ring, date stickers */
  --leaf: #587a38;       /* green tabs */
  --mustard: #eaa92d;    /* highlight for current page and yellow tabs */
  --plum: #6b2d4e;       /* subheads and tabs */
  --blush: #f1c3a8;
  --sage: #c3d3a0;       /* success box */
  --cream: #fff8e8;      /* text on dark fills */
  --hover: #fff1c9;

  --blob: 30px 12px 28px 14px / 14px 28px 12px 30px;
  --blob2: 14px 28px 12px 30px / 30px 12px 28px 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --rule: rgba(58, 42, 29, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 18px/1.6 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
@media (min-width: 720px) { .wrap { padding: 0 24px 40px; } }

/* ---------- accessibility helpers ---------- */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--card); color: var(--ink); padding: 8px 14px; border: 2.5px solid var(--ink); border-radius: var(--blob2); font-weight: 800;
}
.skip:focus { left: 16px; }
:focus-visible { outline: 4px solid var(--forest); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header and nav ---------- */
.site-header { padding: 18px 0 6px; }
.head-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 720px) { .head-inner { flex-direction: row; justify-content: space-between; } }
.brand {
  font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--red); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.menu a {
  display: inline-block; padding: 6px 14px; font-weight: 800; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--blob2); box-shadow: 3px 3px 0 var(--ink);
}
.menu a:hover { background: var(--hover); }
.menu a[aria-current="page"] { background: var(--mustard); }

/* ---------- type ---------- */
h1 {
  margin: 0 0 14px; font-weight: 900; font-size: clamp(40px, 9vw, 66px); line-height: .98; color: #fffdf4;
  -webkit-text-stroke: .04em var(--ink); paint-order: stroke fill;
  text-shadow: .03em .035em 0 #b9b4ad, .06em .07em 0 #f4d230, .09em .1em 0 #fb9b2e, .12em .14em 0 #f2554a;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; line-height: 1.15; }
h3 { margin: 0 0 6px; font-family: var(--hand); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--plum); }
p { margin: 0 0 14px; }
ul.plain { margin: 0 0 14px; padding-left: 1.2em; }
a { color: var(--ink); text-decoration: underline wavy var(--tomato); text-underline-offset: 5px; }
a:hover { color: var(--red); }
.eyebrow { margin: 0 0 6px; font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.lede { max-width: 40em; margin: 0 auto 18px; font-size: 20px; }
.hero { text-align: center; padding: 30px 0 4px; }
.hero .lede { margin-left: auto; margin-right: auto; }
.crumbs { font-size: 15px; margin: 8px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 1; }
.section-title { margin: 44px 0 0; font-size: 30px; text-align: center; }

/* ---------- cards ---------- */
.card {
  position: relative; margin-top: 36px; padding: 34px 22px 24px;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--blob); box-shadow: 6px 7px 0 var(--ink);
}
.card.tilt-a { transform: rotate(-.4deg); }
.card.tilt-b { transform: rotate(.35deg); }
.card.flat { transform: none; }
.tab {
  position: absolute; top: -18px; left: 18px; padding: 2px 16px 4px;
  font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--cream); background: var(--leaf);
  border: 2.5px solid var(--ink); border-radius: var(--blob2); transform: rotate(-2deg);
}
.tab.t2 { background: var(--plum); left: auto; right: 18px; transform: rotate(2deg); }
.tab.t3 { background: var(--mustard); color: var(--ink); }
.grid { display: grid; gap: 24px; }
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid .card { margin-top: 30px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; font: inherit; font-size: 19px; font-weight: 900; line-height: 1.2;
  color: var(--cream); background: var(--tomato); border: 3px solid var(--ink); border-radius: var(--blob);
  box-shadow: 5px 6px 0 var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--cream); transform: translate(-1px, -1px); box-shadow: 7px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 4px solid var(--forest); outline-offset: 3px; }
.btn-row { margin-top: 22px; text-align: center; }
.cta-card { text-align: center; }
.cta-card p:last-child { margin-bottom: 0; }
.cta-card .btn { margin-top: 10px; }
.text-link { font-weight: 800; }

/* ---------- forms ---------- */
label { display: block; margin: 0 0 4px 3px; font-size: 16px; font-weight: 800; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--field); border: 2.5px solid var(--ink); border-radius: var(--blob2);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 4px solid var(--forest); outline-offset: 2px; }
.field { margin-bottom: 18px; }
.hint { margin: 6px 3px 0; font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errorbox, .okbox {
  margin: 0 0 18px; padding: 12px 16px; font-weight: 700; border: 2.5px solid var(--ink); border-radius: var(--blob2);
}
.errorbox { background: var(--red); color: var(--cream); }
.okbox { background: var(--sage); color: var(--ink); }

/* ---------- events ---------- */
.date-sticker {
  display: inline-block; margin-bottom: 10px; padding: 6px 14px; font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cream); background: var(--forest); border: 2.5px solid var(--ink); border-radius: var(--blob); box-shadow: 3px 3px 0 var(--ink);
}
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { padding: 16px 0; border-top: 2.5px dashed var(--rule); }
.event-list li:first-child { border-top: 0; padding-top: 0; }
.event-meta { margin: 0 0 6px; font-weight: 700; color: var(--plum); }
.event-list .more { font-weight: 800; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px; padding: 22px 16px 36px; text-align: center; border-top: 2.5px dashed var(--rule);
  font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--forest);
}
.site-footer p { margin: 0 0 6px; }
.site-footer nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer a { color: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card { transform: none; }
}
