/* ==========================================================================
   Charlottetown Farmers' Market
   Palette carried over from the original market branding.
   Fonts are self-hosted — no third-party font service, nothing to break.
   ========================================================================== */

@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Yellowtail"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/yellowtail-latin-400-normal.woff2") format("woff2");
}

:root {
  --green-dark:  #213d27;
  --green-deep:  #294730;
  --green-mid:   #4a6e33;
  --green-soft:  #7d9246;
  --cream:       #eef3c6;
  --cream-light: #fbffe0;
  --rust:        #962d19;
  --orange:      #e16034;
  --yellow:      #f8bd30;
  --paper:       #ffffff;
  --ink:         #1d2a20;
  --ink-soft:    #4a5a4e;
  --rule:        #d9e2b8;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(33,61,39,.06), 0 8px 24px rgba(33,61,39,.08);

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.muted { color: var(--ink-soft); }
.plain { list-style: none; margin: 0; padding: 0; }
.script { font-family: var(--font-script); font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--green-dark); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff !important;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange); transform: translateY(-1px); }
.btn--sm { padding: .5rem 1.1rem; font-size: .95rem; }
.btn--ghost {
  background: transparent;
  color: var(--green-dark) !important;
  border: 2px solid var(--green-dark);
}
.btn--ghost:hover { background: var(--green-dark); color: #fff !important; }

/* --- Notice bar --------------------------------------------------------- */

.notice {
  background: var(--green-dark);
  color: var(--cream);
  font-size: .95rem;
}
.notice__inner {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  align-items: baseline; justify-content: center;
  padding: .7rem 0; text-align: center;
}
.notice p { margin: 0; }
.notice__link { color: var(--yellow); font-weight: 600; white-space: nowrap; }
.notice__link:hover { color: #fff; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-script);
  font-size: 1.45rem; color: var(--rust);
}
.brand__sub {
  font-weight: 700; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-dark);
}

.site-nav ul {
  display: flex; align-items: center; gap: .3rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: .5rem .8rem;
  color: var(--green-dark); text-decoration: none;
  font-weight: 600; border-radius: 8px;
}
.site-nav a:hover { background: var(--cream); color: var(--green-dark); }
.site-nav a[aria-current="page"] { color: var(--rust); }
.site-nav a.btn { color: #fff; }
.site-nav a.btn:hover { background: var(--orange); }

.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; cursor: pointer; padding: 0 9px;
  }
  .nav-burger span {
    display: block; height: 2.5px; border-radius: 2px;
    background: var(--green-dark); transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--rule);
    display: none; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; gap: .15rem; }
  .site-nav a { padding: .8rem .6rem; }
  .site-nav a.btn { text-align: center; margin-top: .5rem; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(340px, 52vw, 520px);
  display: grid; align-items: center;
  background: var(--green-dark) right center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(25,45,30,.94) 0%, rgba(25,45,30,.82) 42%, rgba(25,45,30,.45) 78%, rgba(25,45,30,.3) 100%);
}
@media (max-width: 880px) {
  .hero::after { background: linear-gradient(180deg, rgba(25,45,30,.82) 0%, rgba(25,45,30,.9) 100%); }
}
.hero__inner { position: relative; z-index: 2; padding: 3.5rem 0; max-width: 42rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p { font-size: 1.15rem; color: #eaf0dc; }
.hero p.hero__script {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--yellow); line-height: 1.05; margin: 0 0 .1em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__actions .btn--ghost { color: #fff !important; border-color: #fff; }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--green-dark) !important; }

/* --- Page header (inner pages) ------------------------------------------ */

.page-head {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0 2.6rem;
}
.page-head__script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--rust); margin: 0 0 .1em;
}
.page-head p { max-width: 46rem; font-size: 1.1rem; color: var(--ink-soft); }

/* --- Sections ----------------------------------------------------------- */

.section { padding: 3.5rem 0; }
.section--tint { background: var(--cream-light); }
.section--cream { background: var(--cream); }
.section__lead { max-width: 48rem; font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; } }

.card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* --- Hours block -------------------------------------------------------- */

.hours { display: grid; gap: .9rem; }
.hours__row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .3rem .9rem; padding-bottom: .9rem;
  border-bottom: 1px dashed var(--rule);
}
.hours__row:last-child { border-bottom: 0; padding-bottom: 0; }
.hours__days { font-weight: 700; color: var(--green-dark); min-width: 7.5rem; }
.hours__time { font-size: 1.15rem; color: var(--rust); font-weight: 600; }
.hours__note { color: var(--ink-soft); font-size: .95rem; }

/* --- Tags --------------------------------------------------------------- */

.tag {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--cream); color: var(--green-dark);
  margin: 0 0 .6rem;
}
.tag--temp { background: var(--yellow); color: #5b3d00; }

/* --- News --------------------------------------------------------------- */

.news-list { display: grid; gap: 1.25rem; }
.news-item {
  background: #fff; border: 1px solid var(--rule);
  border-left: 5px solid var(--green-soft);
  border-radius: var(--radius); padding: 1.5rem 1.7rem;
}
.news-item--featured { border-left-color: var(--rust); }
.news-item__date {
  font-size: .85rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--green-mid); margin: 0 0 .3rem;
}
.news-item h3 { margin-bottom: .4em; }
.news-item__more { font-weight: 600; }

/* --- Vendor / embed area ------------------------------------------------ */

.embed-panel {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow); min-height: 240px;
}
.embed-note {
  font-size: .95rem; color: var(--ink-soft);
  margin-top: 1rem;
}

/* --- Alert / scam notice ------------------------------------------------ */

.alert {
  border: 1px solid #e4c3b5;
  border-left: 5px solid var(--rust);
  background: #fdf4f0;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.alert h3 { color: var(--rust); margin-bottom: .4em; }
.alert ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.alert li { margin-bottom: .35rem; }

/* --- Document list ------------------------------------------------------ */

.doc-list { display: grid; gap: .85rem; }
.doc {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
  text-decoration: none;
}
.doc:hover { border-color: var(--green-soft); background: var(--cream-light); }
.doc__title { font-weight: 700; color: var(--green-dark); }
.doc__desc { color: var(--ink-soft); font-size: .95rem; }

/* --- People ------------------------------------------------------------- */

.people { display: grid; gap: .6rem; }
@media (min-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 10px; padding: .75rem 1rem; font-weight: 600;
  color: var(--green-dark);
}

/* --- Contact rows ------------------------------------------------------- */

.contact-row {
  padding: 1.1rem 0; border-bottom: 1px dashed var(--rule);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__role { font-weight: 700; color: var(--green-dark); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--green-dark); color: #d9e3cb;
  padding: 3rem 0 0; margin-top: 0;
}
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  color: #fff; font-size: .9rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.1fr 1fr 1fr 1.2fr; } }
.site-footer__logo { width: 68px; margin-bottom: .9rem; }
.site-footer__tag { font-family: var(--font-script); font-size: 1.3rem; color: var(--yellow); }
.site-footer .muted { color: #a9b89a; }
.site-footer .plain li { margin-bottom: .7rem; }
.site-footer .tag--temp { background: var(--yellow); color: #5b3d00; }
.social { display: flex; gap: 1rem; }
.site-footer__base {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.2rem 0; font-size: .9rem;
}
.site-footer__base p { margin: 0; color: #a9b89a; }

/* --- Support call to action --------------------------------------------- */

.nav-support { color: var(--rust) !important; }
.nav-support:hover { background: #fdf0ea !important; }

.support-band {
  background: var(--green-dark);
  color: #e4ecd6;
}
.support-band h2 { color: #fff; }
.support-band .tag { background: var(--yellow); color: #5b3d00; }
.support-band__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .support-band__inner { grid-template-columns: .9fr 1.1fr; }
}
.support-band__art img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.support-band .btn { background: var(--yellow); color: #4a3000 !important; }
.support-band .btn:hover { background: #fff; color: var(--green-dark) !important; }

.page-head--support { background: var(--cream); }
.support-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .support-hero { grid-template-columns: 1.05fr .95fr; }
}
.support-hero__art img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- Forms -------------------------------------------------------------- */

.contact-form label {
  display: block; font-weight: 600; font-size: .95rem;
  color: var(--green-dark); margin-bottom: .3rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .65rem .8rem;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--cream-light);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--green-soft); background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
