/*
 * BC Bonsai styles, ported from the design export in
 * docs/design/website-redesign-mockup.html.
 *
 * Colors, type, and layout constants live in :root. Components use those
 * tokens instead of one-off values. Sections follow page order: base,
 * layout, shared components, then home, trees, workshops, and supplies.
 */

/* Fonts: self-hosted Latin subsets of Alegreya, Alegreya Sans, and Caveat (SIL Open Font License). */

@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/alegreya-latin-wght-normal-5bd90e88.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/alegreya-latin-500-italic-86a9e0d6.woff") format("woff");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/alegreya-sans-latin-400-normal-f23a9ecf.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/alegreya-sans-latin-400-italic-e3390b52.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/alegreya-sans-latin-500-normal-74a70fa9.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/alegreya-sans-latin-700-normal-9d96979b.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/caveat-latin-wght-normal-0aa453d2.woff2") format("woff2");
}

/* Tokens */

:root {
  /* Palette */
  --accent: #4f6b3a;
  --ink: #2e3527;
  --ink-soft: #3f4737;
  --muted: #5c6352;
  --hint: #7a7f6e;
  --cream: #f5f2ea;
  --paper: #fffdf8;
  --sage: #e3e8d6;
  --linen: #ede8dc;
  --line: #e4dfd2;
  --rule: #dcd5c4;
  --field: #cfc8b8;
  --note: #f0d9a8;
  --tape: rgb(232 200 143 / 75%);
  --clay: #8a4b3c;
  --white: #fff;

  /* Shadows, tinted with --ink */
  --shadow-lift: 0 2px 4px rgb(46 53 39 / 6%), 0 18px 36px -20px rgb(46 53 39 / 35%);
  --shadow-photo: 0 2px 4px rgb(46 53 39 / 6%), 0 22px 44px -24px rgb(46 53 39 / 40%);
  --shadow-snapshot: 0 16px 32px -22px rgb(46 53 39 / 45%);
  --shadow-note: 0 10px 24px -14px rgb(46 53 39 / 45%);
  --shadow-pressed: 0 1px 2px rgb(46 53 39 / 8%), 0 6px 14px -8px rgb(46 53 39 / 35%);

  /* Type: families, then a size scale (px at the default 16px root) */
  --font-body: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-display: "Alegreya", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --text-2xs: 0.75rem; /* 12 */
  --text-xs: 0.9375rem; /* 15 */
  --text-sm: 1rem; /* 16 */
  --text-base: 1.125rem; /* 18 */
  --text-lg: 1.25rem; /* 20 */
  --text-xl: 1.5625rem; /* 25 */
  --text-2xl: 1.625rem; /* 26 */
  --text-3xl: 1.75rem; /* 28 */
  --text-4xl: 1.875rem; /* 30 */
  --text-5xl: 2rem; /* 32 */
  --text-section-title: clamp(2.25rem, 4vw, 2.875rem); /* 36–46 */
  --text-page-title: clamp(2.5rem, 5vw, 3.75rem); /* 40–60 */
  --text-hero-title: clamp(2.75rem, 5.4vw, 4.125rem); /* 44–66 */

  /* Spacing: a 4px step scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;
  --space-22: 5.5rem;
  --space-24: 6rem;

  /* Layout */
  --content-width: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --panel-padding: clamp(1.5rem, 4vw, 2.5rem);
  --callout-padding: clamp(1.75rem, 4vw, 3rem);
  --two-up: repeat(auto-fit, minmax(min(27.5rem, 100%), 1fr));
  --three-up: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr));
  --tap-target: 2.75rem;
  --radius-photo: 4px;
  --radius-box: 14px;
  --radius-card: 20px;
  --radius-article: 22px;
  --radius-panel: 24px;
  --radius-callout: 28px;
  --radius-pill: 999px;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
}

/* :where() keeps hover at element specificity, so links with their own color keep it. */
a:where(:hover) {
  color: var(--ink);
}

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

::placeholder {
  color: var(--hint);
  opacity: 1;
}

/* Forms show errors next to each field, so Rails' wrapper only needs to stay out of the way. */
.field_with_errors {
  display: contents;
}

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout */

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: var(--two-up);
}

.band-sage {
  background: var(--sage);
}

.band-linen {
  background: var(--linen);
}

.band-body {
  display: flex;
  flex-direction: column;
}

.wave {
  display: block;
  width: 100%;
  height: 2.5rem;
  fill: var(--sage);
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-7);
  padding-block: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--tap-target);
  color: var(--ink);
  text-decoration: none;
}

.brand-mark svg {
  display: block;
  width: 3.125rem;
  height: 3.4375rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-6);
  font-weight: 500;
}

/* The logo and, until launch, the demo tag beside it. */
.site-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}

/* Marks the site as a demo until launch: a quiet outlined tag. */
.demo-badge {
  padding: 0.0625rem 0.375rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--clay);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link {
  padding-block: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav-link:hover {
  text-decoration: underline wavy;
}

.nav-link[aria-current="page"] {
  text-decoration: underline wavy var(--accent);
}

/* The demo's way into the website editor: a button, so it stands out from the page links. */
.site-nav .nav-edit {
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding-inline: var(--space-4);
}

.site-nav .nav-edit:hover {
  background: var(--ink);
}

/* On editor pages, a ring marks "Edit site" as the current section. */
.site-nav .nav-edit[aria-current] {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-10);
  padding-block: var(--space-10) var(--space-12);
}

.site-footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--muted);
}

.site-footer-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--muted);
}

.site-footer-signoff {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
}

/* Type */

.eyebrow {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
}

.eyebrow-page {
  font-size: var(--text-5xl);
}

.hero-title,
.page-title,
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
}

.hero-title {
  font-size: var(--text-hero-title);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page-title {
  font-size: var(--text-page-title);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: var(--text-section-title);
  line-height: 1.1;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  max-width: var(--lead-measure, 32em);
  color: var(--ink-soft);
  font-size: var(--text-lg);
  text-wrap: pretty;
}

.body-copy,
.section-intro {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.balance {
  text-wrap: balance;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.inline-phone {
  font-weight: 700;
  white-space: nowrap;
}

/* Buttons and links */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}

.button {
  gap: 0.625rem;
  min-height: 3.25rem;
  padding-inline: 1.625rem;
  background: var(--accent);
  color: var(--white);
}

.button-compact {
  min-height: 3.125rem;
  padding-inline: var(--space-6);
}

.button-outline {
  min-height: 3.125rem;
  padding-inline: 1.375rem;
  border: 1.5px solid var(--field);
  background: var(--white);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  font-weight: 700;
  text-underline-offset: 5px;
}

.text-link-compact {
  min-height: 0;
  padding-block: 0.375rem;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
}

/* Segmented links: the trees tabs and the calendar views */

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--sage);
}

.segmented-cream {
  background: var(--cream);
}

.segment {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.875rem;
  padding-inline: var(--space-5);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.segment[aria-current="true"] {
  background: var(--paper);
  box-shadow: var(--shadow-pressed);
}

.segment-count {
  color: var(--muted);
  font-weight: 400;
}

/* Cards, panels, and lists */

.dashed-list li {
  padding-block: var(--space-2);
  border-top: 1px dashed var(--rule);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.chips li {
  padding: 3px 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--sage);
  font-size: var(--text-sm);
}

.count-badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--sage);
  font-size: var(--text-xs);
  font-weight: 700;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-12);
  padding: var(--callout-padding);
  border-radius: var(--radius-callout);
  background: var(--sage);
}

.callout-copy {
  display: flex;
  flex: 1 1 26.25rem;
  flex-direction: column;
  gap: var(--space-2);
}

.callout-title {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
}

.callout-text {
  max-width: 34em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Photos, photo placeholders, snapshots, and sticky notes */

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--sage);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

/* Photos are cropped to their frame's shape when they're added. */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.polaroid {
  position: relative;
  padding: 0.875rem 0.875rem 1.125rem;
  border-radius: var(--radius-photo);
  background: var(--paper);
  box-shadow: var(--shadow-photo);
}

.polaroid figcaption {
  margin-top: 0.625rem;
  font-family: var(--font-hand);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.tape-center::before,
.tape-left::before {
  position: absolute;
  top: -0.75rem;
  background: var(--tape);
  content: "";
}

.tape-center::before {
  left: 50%;
  width: 6.875rem;
  height: 1.625rem;
  margin-left: -3.4375rem;
  rotate: -3deg;
}

.tape-left::before {
  left: var(--space-7);
  width: 6rem;
  height: var(--space-6);
  rotate: -6deg;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: var(--three-up);
  gap: var(--space-10) var(--space-8);
  padding-inline: var(--space-2);
}

.snapshot {
  padding: var(--space-3) var(--space-3) 0.875rem;
  border-radius: var(--radius-photo);
  background: var(--paper);
  box-shadow: var(--shadow-snapshot);
}

.snapshot:nth-child(6n + 1) {
  rotate: -2deg;
}

.snapshot:nth-child(6n + 2) {
  rotate: 1.5deg;
}

.snapshot:nth-child(6n + 3) {
  rotate: -1deg;
}

.snapshot:nth-child(6n + 4) {
  rotate: 2deg;
}

.snapshot:nth-child(6n + 5) {
  rotate: -1.5deg;
}

.snapshot:nth-child(6n + 6) {
  rotate: 1deg;
}

.snapshot figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.sticky-note {
  padding: var(--space-4) 1.125rem 1.125rem;
  border-radius: 2px;
  background: var(--note);
  box-shadow: var(--shadow-note);
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.15;
}

/* Home */

.hero {
  align-items: center;
  gap: var(--space-12) var(--space-16);
  padding-block: var(--space-10) var(--space-20);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.hero-photo {
  position: relative;
  padding: var(--space-4);
}

/* 440px photo plus its 14px paper border on each side. */
.hero-photo .polaroid {
  max-width: 29.25rem;
  margin-left: auto;
  rotate: 2deg;
}

/* Stuck on the bottom edge of the photo's frame, below the caption. It stays in
   the flow so a longer note grows downward instead of over the caption. */
.hero-note {
  position: relative;
  width: 16.625rem;
  max-width: 100%;
  margin: -0.5rem 0 0 -1rem;
  rotate: -4deg;
}

.ways {
  gap: var(--space-10);
  padding-block: var(--space-12) var(--space-24);
}

.ways-heading {
  max-width: 40rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: var(--two-up);
  gap: var(--space-5);
}

.offer-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-7);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.offer-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--accent);
}

.offer-icon .icon {
  width: var(--space-6);
  height: var(--space-6);
}

.offer-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.offer-body p {
  color: var(--ink-soft);
}

.offer-body .offer-meta {
  color: var(--accent);
  font-weight: 700;
}

.coming-up {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-10);
  padding: var(--space-7) var(--space-8);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.coming-up-list {
  display: flex;
  flex: 1 1 26.25rem;
  flex-direction: column;
  gap: 0.625rem;
}

.coming-up-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.coming-up-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0.875rem;
}

.coming-up-date {
  min-width: 7rem;
  font-weight: 700;
}

.coming-up-note {
  color: var(--muted);
}

.coming-up-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.save-a-spot {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}

.phone-callout {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.nursery {
  align-items: center;
  gap: var(--space-12) var(--space-18);
  padding-block: var(--space-20);
}

.nursery .polaroid {
  rotate: -1.5deg;
}

.nursery-copy {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.call-ahead {
  padding: var(--space-4) var(--space-5);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
}

.carry {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-block: var(--space-4) var(--space-20);
}

.card-grid {
  display: grid;
  grid-template-columns: var(--three-up);
  gap: var(--space-5);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.link-card:hover {
  box-shadow: var(--shadow-lift);
}

.link-card p {
  color: var(--ink-soft);
}

.link-card-cta {
  margin-top: 0.375rem;
  color: var(--accent);
  font-weight: 700;
}

.handwritten-aside {
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.6875rem;
  font-weight: 500;
  line-height: 1.2;
}

.favorites {
  gap: var(--space-10);
  padding-block: var(--space-20) var(--space-24);
}

.visit {
  align-items: start;
  gap: var(--space-12) var(--space-16);
  padding-block: var(--space-22);
}

.visit-copy {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr));
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-2);
}

.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  font-size: var(--text-lg);
  font-weight: 700;
}

.contact-list dd a {
  color: var(--ink);
}

.contact-note {
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 400;
}

.mailing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.mailing-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
}

.mailing-card p {
  color: var(--ink-soft);
}

.mailing-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mailing-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mailing-field label {
  font-weight: 700;
}

.mailing-input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.125rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-box);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.mailing-input[aria-invalid="true"] {
  border-color: var(--clay);
}

.mailing-card .mailing-error {
  color: var(--clay);
  font-weight: 700;
}

.mailing-submit {
  align-self: flex-start;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mailing-card .mailing-thanks {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
}

/* Inner pages */

.page-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-10);
}

/* Trees */

.trees-intro {
  --lead-measure: 40em;

  padding-bottom: var(--space-8);
}

.catalog {
  padding-block: var(--space-2) var(--space-18);
  scroll-margin-top: var(--space-4);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}

.tree-search {
  display: flex;
  flex: 1 1 18.75rem;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  max-width: 26.25rem;
}

.tree-search label {
  font-weight: 700;
  white-space: nowrap;
}

.search-field {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.125rem;
  padding: 0 var(--space-12) 0 var(--space-5);
  border: 1.5px solid var(--field);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  appearance: none;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.catalog-summary {
  margin: var(--space-7) 0 var(--space-5);
  color: var(--muted);
}

.catalog-columns,
.supply-columns {
  column-gap: var(--space-5);
  column-width: 18.75rem;
}

/* Inline blocks keep each card whole inside the CSS columns. */
.tree-group,
.supply-card {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  break-inside: avoid;
}

.tree-group {
  padding: var(--space-6) 1.625rem var(--space-3);
}

.tree-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 0.625rem;
}

.tree-group-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-group-latin {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
}

/* 640px of content inside the panel's padding and border. */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  max-width: calc(40rem + 2 * var(--panel-padding) + 2px);
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trees-callout {
  padding-bottom: var(--space-22);
}

/* Workshops */

.workshops-intro {
  --lead-measure: 38em;

  padding-bottom: var(--space-12);
}

.intro-actions {
  margin-top: var(--space-2);
}

.offerings {
  padding-bottom: var(--space-20);
}

.offering-grid,
.show-grid {
  display: grid;
  grid-template-columns: var(--two-up);
  gap: var(--space-5);
}

.offering {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: var(--space-7) 1.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-article);
  background: var(--paper);
}

.offering p {
  color: var(--ink-soft);
}

.offering-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
}

.offering-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
}

.offering-price {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.calendar {
  gap: var(--space-7);
  padding-block: var(--space-10) var(--space-22);
}

.calendar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5) var(--space-10);
}

.calendar-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) clamp(1.25rem, 3vw, 2.25rem) var(--space-5);
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.calendar-month {
  margin: var(--space-4) 0 var(--space-1);
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
}

.calendar-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px dashed var(--rule);
}

/* Longer ranges, like "Sep 28 – Oct 30", wrap into even lines instead of leaving a day alone. */
.calendar-date {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  text-wrap: balance;
}

.calendar-what {
  display: flex;
  flex-direction: column;
}

.calendar-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
}

.calendar-title {
  font-size: 1.1875rem;
  font-weight: 700;
}

.next-up {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-details {
  color: var(--muted);
  font-size: 1.0625rem;
}

.calendar-price {
  color: var(--accent);
  font-weight: 700;
}

.is-closed .calendar-date,
.is-closed .calendar-title,
.is-closed .calendar-price {
  color: var(--muted);
}

.calendar-empty {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.calendar-panel .calendar-empty {
  padding-block: var(--space-4);
}

.shows {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-block: var(--space-18) var(--space-22);
}

.show-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 1.625rem 1.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-article);
  background: var(--paper);
}

.show-date {
  color: var(--accent);
  font-weight: 700;
}

.show-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
}

.show-place {
  color: var(--muted);
}

/* Supplies */

.supplies-intro {
  --lead-measure: 34em;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--space-14);
  padding-block: var(--space-10) var(--space-12);
}

.supplies-intro-copy {
  display: flex;
  flex: 1 1 32.5rem;
  flex-direction: column;
  gap: var(--space-4);
}

/* 260px of note plus its 20px padding on each side. */
.supplies-note {
  flex: 0 1 18.75rem;
  padding: 1.125rem var(--space-5) var(--space-5);
  font-size: var(--text-2xl);
  rotate: -3deg;
}

.supplies {
  padding-bottom: var(--space-20);
}

.supply-card {
  padding: var(--space-6) 1.625rem 1.125rem;
}

.supply-title {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
}

.supply-footnote {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.4375rem;
  font-weight: 500;
  line-height: 1.2;
}

.new-tag {
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: 1.375rem;
  font-weight: 700;
}

.potters {
  gap: var(--space-9);
  padding-block: var(--space-18) var(--space-22);
}

.potters-intro {
  max-width: 36em;
  color: var(--ink-soft);
}

.potter-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr));
  gap: var(--space-9) var(--space-7);
}

.potter-grid .snapshot figcaption {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.supplies-callout {
  padding-block: var(--space-18) var(--space-22);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .link-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card {
    transition: none;
  }
}
