/* Editorial look: warm paper, ink, one accent, hairline rules instead of
   boxes. Newsreader (serif) for dates and headings, Instrument Sans for
   labels and controls. Volunteer pages are designed phone first. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/instrument-sans.woff2) format("woff2"); }

:root {
  --paper: #f5f2ec; --field: #fbfaf7; --ink: #1d1b18; --ink-2: #4a463f; --muted: #5f5a52; --faint: #8a8378;
  --rule: #cfc7b8; --rule-soft: #ddd6c9; --edge: #a39c90; --on-ink: #f5f2ec;
  --accent: #8c2f1b; --ok: #3d5a2c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  color-scheme: light;
}
/* Dark: neutral charcoal rather than warm brown, chosen in the footer.
   "Match device" (auto) follows the device setting. The two blocks must
   stay identical. */
:root[data-theme="dark"] {
  --paper: #161718; --field: #1e1f21; --ink: #ecebe8; --ink-2: #c9c7c2; --muted: #9d9a94; --faint: #75726d;
  --rule: #36373b; --rule-soft: #27282b; --edge: #57585d; --on-ink: #161718;
  --accent: #e3876b; --ok: #9cc08a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper: #161718; --field: #1e1f21; --ink: #ecebe8; --ink-2: #c9c7c2; --muted: #9d9a94; --faint: #75726d;
    --rule: #36373b; --rule-soft: #27282b; --edge: #57585d; --on-ink: #161718;
    --accent: #e3876b; --ok: #9cc08a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--serif); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: clamp(24px, 5vw, 64px); } }

/* Masthead */
.masthead .wrap { padding-top: 12px; }
.masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 20px;
  border-bottom: 1px solid var(--ink); }
.brand { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  min-height: 44px; display: flex; align-items: center; }
.masthead nav { display: flex; gap: 20px; font: 500 14px/1 var(--sans); }
.masthead nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.masthead nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
main.wrap { padding-bottom: 48px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(40px, 9vw, 84px); line-height: 1; letter-spacing: -.015em; }
h2 { font-size: 32px; line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.1; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow.accent { color: var(--accent); }
.eyebrow.ok { color: var(--ok); display: flex; gap: 6px; align-items: center; }
.lead { font-size: 19px; line-height: 1.45; font-style: italic; color: var(--ink-2); margin: 0; max-width: 34rem; }
.muted { color: var(--muted); }
.small { font: 400 14px/1.45 var(--sans); }
.notes { white-space: pre-line; font-style: italic; color: var(--muted); margin: 0; }

.intro { padding: 32px 0 8px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 48rem) {
  .intro { padding: 56px 0 40px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 64px; }
  .intro .eyebrow { flex: 1 1 100%; }
  .intro h1 { flex: 1 1 24rem; }
  .intro .lead { flex: 1 1 20rem; }
}
.page { padding: 32px 0; display: flex; flex-direction: column; gap: 16px; max-width: 34rem; }
.page p { margin: 0; }
.page h1 { font-size: clamp(40px, 8vw, 60px); }

.flash { margin: 20px 0 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-style: italic; color: var(--ok); }

/* Controls */
button, a.button { font: 500 15px/1.2 var(--sans); letter-spacing: .01em; cursor: pointer; border: 1px solid var(--ink);
  border-radius: 0; padding: 0 22px; min-height: 48px; background: var(--ink); color: var(--on-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
a.button:hover { color: var(--on-ink); }
button.secondary, a.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
button.quiet { background: transparent; color: var(--ink); border-color: var(--edge); }
button.big, a.button.big { min-height: 52px; font-size: 16px; padding: 0 32px; }
button.wide, a.button.wide { width: 100%; }
@media (min-width: 48rem) { button.wide, a.button.wide { width: auto; } }
button.danger { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
button.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; }
button.link.danger { color: var(--accent); }
button.toggle { background: transparent; color: var(--muted); border: 1px solid var(--rule); padding: 0 10px; min-height: 32px; font-size: 13px; }
button.toggle.on { color: var(--ok); border-color: var(--ok); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.inline { display: inline; }

/* Fields: underlined, labels in small capitals. */
label { display: block; margin: 0; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.lbl { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hint { font-size: 15px; font-style: italic; color: var(--muted); }
/* 16px+ inputs stop iOS zooming on focus. */
input, textarea { font: 400 17px/1.4 var(--serif); color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; padding: 10px 0; min-height: 44px; }
input:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
input::placeholder, textarea::placeholder { color: var(--faint); font-style: italic; }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font: 400 16px/1.45 var(--sans); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.fld-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fld-row > label { display: flex; flex-direction: column; gap: 6px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--edge); flex-shrink: 0; }
.stepper button { width: 44px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font-size: 20px; }
.stepper input { width: 52px; text-align: center; border: 0; padding: 0; font-size: 20px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { border: 0; padding: 0; background: var(--field); }

/* Harvest days */
.hday { border-top: 1px solid var(--rule); padding: 28px 0 32px; display: flex; flex-wrap: wrap; gap: 20px 64px; }
.hday-head { flex: 1 1 17rem; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hday-head p { margin: 0; }
.weekday { font-size: 20px; line-height: 1.1; font-style: italic; color: var(--ink-2); margin: 0 0 -6px; }
.hday-head h2 { font-size: clamp(40px, 6vw, 52px); line-height: 1; }
.place { font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.hday-sessions { flex: 999 1 32rem; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 40px; align-content: start; }
@media (min-width: 48rem) { .hday-head { flex: 0 1 17.5rem; } }

.session { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
.session + .session { border-top: 1px dotted var(--rule); }
@media (min-width: 48rem) { .session + .session { border-top: 0; } .session { padding-top: 0; } }
.session-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.session-sub { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.places { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tag { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag.accent { color: var(--accent); }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2px; border: 0;
  background: var(--rule-soft); color: var(--ink); }
progress::-webkit-progress-bar { background: var(--rule-soft); }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.mine { font-style: italic; color: var(--ok); margin: 0; }
.names { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--muted); }

/* Three joined choices; the chosen one is filled with ink. */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices label + label { margin-left: -1px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; height: 100%;
  padding: 6px 4px; border: 1px solid var(--rule); background: var(--field); font: 500 14px/1.2 var(--sans); cursor: pointer; }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); position: relative; }
/* "Not this time" is the default: outlined, so an untouched page stays light. */
.choices input[value=""]:checked + span { background: transparent; color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; position: relative; }
.choices input:disabled + span { color: var(--edge); text-decoration: line-through; background: transparent; cursor: default; }

/* Bottom bar: what you've picked, and the way on. */
.bar { position: sticky; bottom: 0; z-index: 1; background: var(--paper); border-top: 1px solid var(--ink);
  margin: 8px calc(-1 * var(--gutter)) 0; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.bar p { margin: 0; font-size: 18px; }
.bar p.warn { color: var(--accent); font-style: italic; }
@media (max-width: 47.99rem) { .bar p { font: 400 14px/1.3 var(--sans); color: var(--ink-2); } .bar .button { width: 100%; } }

/* Step 2: your details */
.details { border-top: 1px solid var(--ink); padding: 28px 0 0; display: flex; flex-direction: column; gap: 24px; max-width: 34rem; }
.signup.stepped .details { border-top: 0; padding-top: 0; }
.details-head { display: flex; flex-direction: column; gap: 12px; }
.details-head h2 { font-size: 40px; }
.back { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); gap: 8px; }
.chosen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chosen li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 18px; }
.chosen li + li { border-top: 1px dotted var(--rule); }
.chosen .what { font: 500 13px/1 var(--sans); white-space: nowrap; }
.chosen .what.maybe { color: var(--muted); }
.lunch { border-top: 1px solid var(--rule); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.fine { font-size: 15px; line-height: 1.5; font-style: italic; color: var(--muted); margin: 0; }

/* My sign-ups */
.mylist { list-style: none; margin: 0; padding: 0; max-width: 34rem; }
.booking { border-top: 1px solid var(--rule); padding: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.booking-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.booking-when { font-size: 20px; font-style: italic; color: var(--ink-2); margin: 4px 0 0; }
.facts { margin: 0; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px 12px; font: 400 15px/1.45 var(--sans); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.addcal { display: flex; flex-direction: column; gap: 2px; }
.addcal .small { color: var(--muted); text-align: center; margin: 0; }
.addcal .small a { display: inline-block; padding: 12px 0; } /* tap target */
@media (min-width: 48rem) { .addcal { align-items: flex-start; } .addcal .small { text-align: left; } }
details.edit { border-top: 1px dotted var(--rule); }
details.edit form { display: flex; flex-direction: column; gap: 18px; padding: 4px 0 8px; }
details summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  font: 500 15px/1.2 var(--sans); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-right: 4px; }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pair form, .pair button { width: 100%; }
.foot { border-top: 1px solid var(--ink); margin-top: 16px; padding-top: 12px; font: 400 14px/1.5 var(--sans); color: var(--muted); max-width: 34rem; }
.foot p { margin: 0; }
.foot button.link { font: inherit; color: var(--ink); }

/* Admin pages: desktop first, same palette. */
.admin h1 { font-size: 44px; margin: 28px 0 16px; }
.admin h2 { font-size: 28px; margin: 40px 0 12px; }
.admin h3 { font-size: 22px; margin: 0 0 8px; }
.admin .flash { color: var(--ink); }
.day { border-top: 1px solid var(--rule); padding: 20px 0; }
.narrow { max-width: 24rem; display: flex; flex-direction: column; gap: 16px; }
.admin-form { max-width: 34rem; display: flex; flex-direction: column; gap: 14px; margin: 12px 0 24px; }
.admin-form label, .admin label { font: 500 14px/1.4 var(--sans); }
fieldset { border: 1px solid var(--rule); margin: 8px 0; padding: 12px 16px; }
legend { font: 500 14px/1 var(--sans); padding: 0 6px; }
.admin-form fieldset label { display: inline-block; width: 45%; margin-right: 4%; }
table.list { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
table.list td, table.list th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.list th { font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.attendees { display: block; overflow-x: auto; }
tr.st-cancelled { color: var(--muted); text-decoration: line-through; }
tr.st-tentative { color: var(--muted); }
.is-cancelled { opacity: .6; }
.badge { display: inline-block; font: 600 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 0 6px; border: 1px solid var(--rule); color: var(--muted); }
.badge.help, .badge.cancelled { color: var(--accent); border-color: var(--accent); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.backlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 500 14px/1 var(--sans); text-decoration: none; }
[tabindex="-1"]:focus { outline: none; }
.admin-form > button, .narrow > button { align-self: flex-start; }

/* Site footer: theme switch. */
.sitefoot .wrap { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.themes { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.themes-opts { display: flex; }
.themes-opts button { min-height: 44px; padding: 0 14px; background: transparent; color: var(--ink-2); border: 1px solid var(--rule);
  font: 500 13px/1 var(--sans); }
.themes-opts button + button { margin-left: -1px; }
.themes-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); position: relative; }

/* Party: guests by name, each with a dietary requirement when having lunch. */
.party { display: flex; flex-direction: column; gap: 20px; }
.guests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.guests:not(:has(.guest:not([hidden]))) { display: none; }
.guest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 14px; border-left: 1px solid var(--rule); }
@media (min-width: 40rem) { .guest:has([data-diet]:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Own arrow (two gradients), so the text lines up with the other fields. */
select { font: 400 17px/1.4 var(--serif); color: var(--ink); width: 100%; min-height: 44px; -webkit-appearance: none; appearance: none;
  border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; padding: 10px 24px 10px 0; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 5px 5px no-repeat,
              linear-gradient(-45deg, transparent 50%, currentColor 50%) right 1px center / 5px 5px no-repeat; }
select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
select option { background: var(--paper); color: var(--ink); }
.diets { list-style: none; margin: 0; padding: 0; }
.admin .party { gap: 12px; }
.admin .guest { padding-left: 10px; }
