/* =========================================================
   Port Townsend Food Project
   Colors and fonts live in the :root block right below.
   ========================================================= */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --bag-green: #53B24E;      /* the real green bag color */
  --bag-green-ink: #0b2a1a;  /* dark text on green */
  --leaf: #2c6e31;           /* deeper green for small text and icons */
  --sound: #0d3b4f;          /* deep Sound teal */
  --ink: #16323F;            /* body text */
  --mist: #F2F6F1;           /* page background */
  --moss: #E6EFE4;           /* soft green panels */
  --white: #ffffff;
  --muted: #4a5f66;
  --mint: #bfe3b8;           /* links on teal */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--sound); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
h1, h2, h3 { font-family: var(--display); color: var(--sound); line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(48px, 7vw, 76px); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } body { font-size: 17px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--sound); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--bag-green); outline-offset: 3px; }

/* Placeholders: anything still waiting on information */
.todo { background: #fff3a6; color: #3d3300; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 4px solid var(--bag-green); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 70px; height: 54px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--sound); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--bag-green); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav a.pill { background: var(--bag-green); color: var(--bag-green-ink); padding: 10px 20px; border-radius: 999px; font-weight: 700; }
.nav a.pill[aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 3px var(--sound) inset; }
.menu-toggle { display: none; background: none; border: 2px solid var(--sound); color: var(--sound); border-radius: 999px; padding: 8px 16px; font: 700 16px var(--body); cursor: pointer; min-height: 44px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 4px solid var(--bag-green); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 12px 4px; font-size: 18px; }
  .nav li a.pill { text-align: center; margin-top: 8px; }
  .no-js .nav { display: block; position: static; border: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 19px; padding: 15px 30px; border-radius: 999px; border: 2px solid var(--sound); line-height: 1.2; text-align: center; }
.btn-dark { background: var(--sound); color: #fff; }
.btn-dark:hover { background: #134f69; color: #fff; }
.btn-outline { background: var(--white); color: var(--sound); }
.btn-outline:hover { background: var(--moss); color: var(--sound); }
.btn-green { background: var(--bag-green); color: var(--bag-green-ink); border-color: var(--bag-green); }
.btn-green:hover { background: #47a242; color: var(--bag-green-ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 10px; }
.lead { font-size: 20px; line-height: 1.55; max-width: 560px; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 44px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-text h1 { margin: 0; }
.hero-text p { margin: 0; }
.next-pickup { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.date-block { background: var(--bag-green); color: var(--bag-green-ink); border-radius: var(--radius-md); padding: 14px 24px; text-align: center; min-width: 120px; }
.date-block .m { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; line-height: 1.2; }
.date-block .d { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .9; }
.date-block .w { font-weight: 700; font-size: 15px; }
.next-label { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.next-time { font-size: 22px; font-weight: 700; }
.hero-photos { position: relative; min-height: 520px; }
.hero-photos .main { position: absolute; top: 0; right: 0; width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius-lg); }
.hero-photos .inset { position: absolute; left: 0; bottom: 0; width: 55%; max-width: 260px; height: 200px; object-fit: cover; border-radius: var(--radius-md); border: 6px solid var(--mist); }
@media (max-width: 600px) { .hero-photos { min-height: 360px; } .hero-photos .main { height: 300px; } .hero-photos .inset { height: 140px; } }

/* ---------- Pickup strip ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 32px; }
@media (max-width: 600px) { .card { padding: 24px 20px; } }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.strip-head h2 { margin: 0; font-size: 32px; }
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.dates li { background: var(--moss); border-radius: 16px; padding: 14px; text-align: center; }
.dates .y { display: block; font-size: 13px; font-weight: 600; }
.dates .md { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.dates li.is-next { background: var(--bag-green); color: var(--bag-green-ink); }
.dates li.is-next .y::after { content: " · NEXT"; font-weight: 700; }
.dates li.is-past { display: none; }

/* ---------- Sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section.tight { padding-top: 0; }
.band { background: var(--moss); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: center; }
.rounded { border-radius: var(--radius-lg); object-fit: cover; width: 100%; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step svg { flex-shrink: 0; margin-top: 2px; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.more-link { font-weight: 700; font-size: 17px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.chips li { background: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 17px; }
.chips li.open { background: transparent; border: 2px dashed var(--leaf); color: var(--leaf); font-weight: 700; padding: 10px 18px; }

/* ---------- Spotted around town (slow fade) ---------- */
.spotted-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.fader { position: relative; height: 340px; border-radius: 24px; overflow: hidden; background: var(--moss); margin: 0; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: opacity 1.6s ease; }
.fader img.hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fader img { transition: none; } }
.impact-tile { background: var(--sound); color: #fff; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 280px; }
.impact-tile .eyebrow { color: var(--mint); margin: 0; }
.impact-tile .big { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.impact-tile a { color: var(--mint); font-weight: 700; }
.impact-tile .todo { font-size: 40px; }

/* ---------- Inner pages ---------- */
.page-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 68px); }
.page-hero img { height: 340px; }
@media (max-width: 600px) { .page-hero img { height: 220px; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.note { background: var(--moss); border-radius: var(--radius-sm); padding: 18px 22px; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }
.x-list { list-style: none; padding: 0 !important; }
.x-list li { padding-left: 34px; position: relative; }
.x-list li::before { content: "×"; position: absolute; left: 6px; top: -.05em; font-weight: 700; font-size: 22px; color: #8E3A2B; }

details { background: var(--white); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 14px 0; list-style-position: outside; }
details[open] summary { color: var(--leaf); }
details p { margin-top: 0; }

.bio { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } }
.photo-placeholder { aspect-ratio: 1; border-radius: var(--radius-md); background: var(--moss); border: 2px dashed var(--leaf); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--leaf); font-weight: 600; }

.map-placeholder { min-height: 360px; border-radius: var(--radius-lg); background: var(--white); border: 2px dashed var(--leaf); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--leaf); font-weight: 600; }

table.weights { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
table.weights th, table.weights td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--moss); }
table.weights th { background: var(--sound); color: #fff; font-weight: 600; }
table.weights td.num, table.weights th.num { text-align: right; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.stat { background: var(--white); border-radius: var(--radius-md); padding: 24px; }
.stat .big { font-family: var(--display); font-weight: 800; font-size: 52px; color: var(--sound); line-height: 1; }
.stat .label { font-weight: 600; color: var(--muted); }
.thermo { height: 34px; background: var(--moss); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.thermo span { display: block; height: 100%; background: var(--bag-green); border-radius: 999px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 400 18px var(--body); color: var(--ink); padding: 12px 14px; border: 2px solid #b9c9c4; border-radius: 12px; background: #fff; min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(83,178,78,.35); }
.form button { align-self: flex-start; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.small { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sound); color: #fff; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 28px; font-size: 16px; line-height: 1.6; }
.footer-grid h2 { color: #fff; font-size: 22px; margin: 0 0 8px; letter-spacing: .04em; }
.footer-grid p { margin: 0 0 4px; }
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; padding-bottom: 24px; font-size: 14px; color: #d4e2e6; }
.four-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px; }

/* Spotted photos pause button */
.head-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pause-btn { background: var(--white); color: var(--sound); border: 2px solid var(--sound); border-radius: 999px; padding: 8px 16px; font: 700 15px var(--body); cursor: pointer; min-height: 44px; }
.pause-btn:hover { background: var(--moss); }
.pause-btn[hidden] { display: none; }
