/* ===========================================================
   Gabriella Plants Locals

   BRAND COLORS — sampled from the Locals logo artwork.
   Everything on the site reads from here; change a hex below
   and it updates every page at once.
   =========================================================== */

:root {
  --forest:      #263528;  /* logo background green — masthead, dark bands */
  --forest-deep: #1B2620;  /* hover state */
  --sage:        #8AA38D;  /* "Gabriella Plants" in the logo */
  --sage-pale:   #C0CEBE;
  --brown:       #9F7254;  /* the logo's postcard drop shadow */
  --brown-deep:  #6F594B;
  --sky:         #AAC6CB;  /* sky inside the letterforms */
  --pink:        #D45167;  /* the pink leaf — used once, on the circled date */

  --ink:       var(--forest);
  --ink-soft:  #46543F;
  --paper:     #E7ECE3;  /* page background, pale sage */
  --paper-2:   #F1F4EC;
  --panel:     #FBFCF7;  /* cards and the calendar */
  --cream:     #FCFCF8;  /* logo white */

  --label:     #6D7C6A;  /* small quiet text, readable on paper */
  --line:      #C2CCBC;
  --line-soft: #D8DFD3;

  --measure: 62ch;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --rule: 1px solid var(--line);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

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

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
  z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3, .display, .nav a, .btn, .cal, .tag, .card-date {
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--cream);
  background: var(--brown);
  padding: .2rem .5rem;
  border-radius: 2px;
}

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

.masthead {
  border-bottom: var(--rule);
  background: var(--forest);
  border-bottom: none;
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  flex-wrap: wrap;
  padding-block: .6rem;
}

.wordmark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.wordmark b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.wordmark b { color: var(--sage); }
.wordmark span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--cream);
  background: var(--brown);
  padding: .16rem .45rem;
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a { color: var(--sage-pale); }
.nav a:hover { border-bottom-color: var(--sage); color: var(--cream); }
.nav a[aria-current="page"] { border-bottom-color: var(--brown); color: var(--cream); font-weight: 700; }
.nav .out { color: var(--sage); }
.masthead :focus-visible { outline-color: var(--sage-pale); }

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

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }

/* Homepage: the logo banner opens the page. The section behind it repeats
   the banner's own two-tone split (57.143%, measured from the artwork) so
   the bands run edge to edge and the image has no visible boundary. */
.logo-band {
  background: linear-gradient(
    to bottom,
    var(--forest) 0 59.381%,
    var(--sage)   59.381% 100%
  );
}
.logo-band .wrap {
  display: flex;
  justify-content: center;
  padding-inline: 0;
}
.logo-band h1 { margin: 0; width: 100%; }
.logo-band .logo-banner {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin-inline: auto;
}

.hero.branded {
  background: var(--forest);
  color: var(--cream);
  padding-top: clamp(2rem, 5vw, 3.25rem);
}
.hero.branded .lede { color: var(--sage-pale); }
.hero.branded .hero-facts { border-top-color: rgba(192, 206, 190, .3); }
.hero.branded .hero-facts li { border-bottom-color: rgba(192, 206, 190, .3); }
.hero.branded .hero-facts .k { color: var(--sage); }
.hero.branded .hero-facts a { color: var(--cream); text-decoration-color: var(--sage); }
.hero.branded .btn {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
}
.hero.branded .btn:hover { background: var(--sage-pale); border-color: var(--sage-pale); }
.hero.branded .btn.ghost {
  background: transparent;
  border-color: var(--sage);
  color: var(--cream);
}
.hero.branded .btn.ghost:hover { background: rgba(138, 163, 141, .18); }
.hero.branded .btn.accent, .hero.branded .btn.sun {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}
.hero.branded h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: .45em;
}

/* The calendar panel is always light, whatever band it sits on. */
.cal { color: var(--ink); }

/* Inner page titles echo the logo's offset drop shadow. */
.page-title h1 {
  color: var(--forest);
  text-shadow: 4px 4px 0 var(--brown);
}
@media (min-width: 700px) { .page-title h1 { text-shadow: 6px 6px 0 var(--brown); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: .35em; }

.hero-facts {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}
.hero-facts li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: var(--rule);
  font-size: .98rem;
}
.hero-facts dt, .hero-facts .k {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--label);
  padding-top: .18rem;
}
.hero-facts a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }

.hero-note {
  margin: 1.1rem 0 0;
  font-size: .97rem;
  color: var(--sage-pale);
}
.hero-note a { color: var(--cream); text-decoration-color: var(--sage); text-underline-offset: 3px; }
.hero-note[hidden] { display: none; }

/* ---------- Calendar (the one bold moment) ---------- */

.cal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 420px;
  box-shadow: 0 1px 0 var(--line-soft);
}
@media (min-width: 900px) {
  .cal { margin-left: auto; }
}

.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .9rem;
  margin-bottom: .5rem;
  border-bottom: 2px solid var(--ink);
}
.cal-month { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.cal-year { font-size: .9rem; color: var(--label); font-weight: 500; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}
.cal-dow {
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  color: var(--label);
  padding-bottom: .4rem;
}
.cal-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: var(--line); }

.cal-day.mark {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
}
.cal-day.mark svg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  overflow: visible;
  pointer-events: none;
}
.cal-day.mark svg path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.6;
  stroke-linecap: round;
}

.cal-note {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-family: "Newsreader", Georgia, serif;
}
.cal-note strong { color: var(--ink); }

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

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  /* Explicit line-height: form controls don't inherit it, so without this
     a <button class="btn"> renders shorter than an <a class="btn">. */
  line-height: 1.65;
  padding: .7rem 1.25rem;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--forest-deep); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }

.btn.accent, .btn.sun {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}
.btn.accent:hover, .btn.sun:hover { background: var(--brown-deep); border-color: var(--brown-deep); }

.btn.small { font-size: .85rem; padding: .5rem .9rem; }

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

/* The brand positioning block. The logo carries the trademark line, so the
   type beside it only has to finish the sentence. */
.band.statement {
  background: var(--sage);
  border-top-color: var(--sage);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.statement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .statement-grid { grid-template-columns: 1.05fr .95fr; }
}
.statement-mark img {
  width: 100%;
  max-width: 420px;
  height: auto;
}
.statement-line {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: .9rem 0 0;
  max-width: 420px;
  text-align: right;
}
.statement-body {
  color: #24331F;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 52ch;
  margin: 0;
}

.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: var(--rule); }
.band.tinted { background: var(--paper-2); }

/* Inverted band — mirrors the logo's dark-over-sage composition. */
.band.dark {
  background: var(--forest);
  color: var(--cream);
  border-top-color: var(--forest);
}
.band.dark h2, .band.dark h3 { color: var(--cream); }
.band.dark p { color: var(--sage-pale); }
.band.dark .band-head p { color: var(--sage-pale); }
.band.dark .cols p { color: var(--sage-pale); }
.band.dark .story .era { border-top-color: rgba(192, 206, 190, .28); }
.band.dark .story .era:last-child { border-bottom-color: rgba(192, 206, 190, .28); }
.band.dark .story .when { color: var(--sage); }
.band.dark .what strong { color: var(--cream); }
.band.dark .btn {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
}
.band.dark .btn:hover { background: var(--sage-pale); border-color: var(--sage-pale); }
.band.dark .btn.ghost {
  background: transparent;
  border-color: var(--sage);
  color: var(--cream);
}
.band.dark .btn.ghost:hover { background: rgba(138, 163, 141, .18); }
.band.dark :focus-visible { outline-color: var(--sage-pale); }

.band-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.band-head p { color: var(--ink-soft); }

.cols {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cols.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .cols.three { grid-template-columns: repeat(3, 1fr); } }

.cols h3 { margin-bottom: .4em; }
.cols p { color: var(--ink-soft); font-size: 1rem; }

/* Story: a heritage sequence, so numbering is meaningful here */
.story { counter-reset: era; }
.story .era {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem 1.5rem;
  padding: 1.35rem 0;
  border-top: var(--rule);
}
@media (min-width: 720px) {
  .story .era { grid-template-columns: 8.5rem 1fr; }
}
.story .era:last-child { border-bottom: var(--rule); }
.story .when {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--label);
  padding-top: .15rem;
}
.story .what { max-width: var(--measure); }
.story .what strong { font-weight: 600; }

/* ---------- Event cards ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  /* No overflow:hidden here — it would clip the Add to calendar menu.
     The media block below does its own clipping instead. */
}

.card-media-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback tile when no photo is supplied */
.card-media.fallback {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(170, 198, 203, .30) 0 14px,
      rgba(170, 198, 203, .12) 14px 28px
    ),
    var(--panel);
}
.card-media.fallback .fb-inner {
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--ink);
}
.card-media.fallback .fb-day {
  display: block;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--forest);
  text-shadow: 3px 3px 0 var(--brown);
}
.card-media.fallback .fb-mon {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brown-deep);
  margin-top: .55rem;
}

.card-tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
}

.card-body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}
.card-body h3 { margin: 0; }

.card-date {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.card-time { font-size: .95rem; color: var(--ink-soft); }
.card-where { font-size: .92rem; color: var(--ink-soft); }
.card-where a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.card-cost {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 0;
}
.card-blurb { font-size: .97rem; color: var(--ink-soft); margin: .2rem 0 0; }
.card-foot { margin-top: auto; padding-top: 1rem; }

.card.is-past { opacity: .72; }
.card.is-past .card-media.fallback { filter: grayscale(1); }

.empty {
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--panel);
}
.empty p { max-width: 40ch; margin-inline: auto; }

/* ---------- Add to calendar ---------- */

.cal-add { position: relative; display: inline-flex; }

.cal-menu {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  z-index: 30;
  min-width: 13rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(38, 53, 40, .18);
  padding: .3rem;
  display: flex;
  flex-direction: column;
}
.cal-menu[hidden] { display: none; }

.cal-menu a,
.cal-menu button {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .88rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 2px;
  padding: .5rem .6rem;
  cursor: pointer;
  white-space: nowrap;
}
.cal-menu a:hover,
.cal-menu button:hover { background: var(--paper-2); }

/* Right-align the menu when the button sits near the right edge of a card. */
.card-foot .cal-add:last-child .cal-menu { left: auto; right: 0; }

.card-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Follow: Locals vs Online, split down the page ---------- */

.follow-split {
  display: grid;
  grid-template-columns: 1fr;
}
/* Stacked: the second group needs a hard break so the two don't run together. */
.follow-col + .follow-col {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--line);
}
@media (min-width: 840px) {
  .follow-split { grid-template-columns: 1fr 1fr; }
  .follow-col + .follow-col {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--line);
    padding-left: clamp(2rem, 4vw, 3rem);
  }
  .follow-col:first-child { padding-right: clamp(2rem, 4vw, 3rem); }
}

/* The last link in a column doesn't need a rule under it. */
.follow-col .follow-item:last-child { border-bottom: none; }

.follow-col-head {
  padding-bottom: .9rem;
  margin-bottom: .5rem;
  border-bottom: 2px solid var(--forest);
}
.follow-col-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 .3rem;
}
.follow-col-head p {
  margin: 0;
  font-size: .97rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.here {
  display: inline-block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cream);
  background: var(--brown);
  padding: .18rem .45rem;
  border-radius: 2px;
  vertical-align: .28em;
  margin-left: .5rem;
}

.follow-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  text-decoration: none;
  padding: .8rem 0;
  border-bottom: var(--rule);
}
.follow-item:hover .follow-name {
  text-decoration: underline;
  text-decoration-color: var(--brown);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.follow-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.follow-handle {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--label);
}

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

.footer {
  border-top: 3px solid var(--forest);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--paper-2);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--label);
  margin: 0 0 .7rem;
  letter-spacing: 0;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4rem; }
.footer a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer .fine {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: var(--rule);
  color: var(--label);
  font-size: .85rem;
}
.footer .fine p { max-width: none; }
