/* H2Go — styles
   Anchor: herbarium specimen sheet. Ivory ground, photo dominant,
   small typed labels, ruled price lists with dot leaders. */

:root {
  /* palette pulled from the garden photo */
  --ivory: #fdfcfa;          /* page: near white */
  --ivory-deep: #f7f1e6;     /* cream */
  --sage-pale: #eef1e8;      /* photo placeholders */
  --charcoal: #22362a;       /* ink: forest green */
  --ink-soft: #52665a;
  --green: #a3b394;          /* sage */
  --green-deep: #5f7a5c;
  --forest: #2c4a35;
  --rose: #f0cdd3;           /* blush */
  --rose-deep: #c9526f;      /* rich pink accent (the lower heads) */
  --burgundy: #c9526f;       /* accent alias used by links/buttons */
  --galv: #9aa89b;
  --rule: #d9dfd4;

  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --gutter: 20px;
  --measure: 34rem;
}

* { box-sizing: border-box; }
figure { margin: 0; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  font-optical-sizing: auto;
}

a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- typed labels ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px var(--gutter) 14px;
  border-bottom: 1px solid var(--charcoal);
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-decoration: none;
}
.wordmark .sub { font-size: 0.6em; vertical-align: -0.25em; font-weight: 400; }
.masthead-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- sections ---------- */
.section {
  padding: 40px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.section h2 { font-size: 32px; }
.section-num { white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  padding: 48px var(--gutter) 40px;
  border-bottom: 1px solid var(--charcoal);
}
.hero h1 {
  font-size: clamp(44px, 12vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 11ch;
  margin: 0 0 28px -0.04em;
  text-wrap: balance;
}
.hero p { font-size: 20px; line-height: 1.45; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
}
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover, .btn:focus-visible { background: var(--charcoal); color: var(--ivory); outline: none; }
.btn.primary { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--charcoal); border-color: var(--charcoal); }
.btn.quiet { border-color: var(--rule); color: var(--ink-soft); }

/* ---------- photo / placeholder ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ivory-deep);
}
.photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sage-pale);
  border: 1px solid var(--rule);
}
.photo-slot:has(img) { border: 0; }
.photo-slot.wide { aspect-ratio: 3 / 2; }
.photo-slot.square { aspect-ratio: 1; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .55;
}

/* ---------- price list (dot leaders) ---------- */
.pricelist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--charcoal);
}
.pricelist li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.pricelist .name { font-size: 24px; letter-spacing: -0.01em; }
.pricelist .leader {
  border-bottom: 2px dotted var(--rose-deep);
  transform: translateY(-6px);
  min-width: 16px;
}
.pricelist .price {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}
.pricelist .note {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: -6px;
}
.pricelist li.off .name, .pricelist li.off .price { color: var(--galv); text-decoration: line-through; }
.pricelist li.off .note { color: var(--galv); }
.pricelist li.off .note::after { content: " Sold out for now."; }
.footnote { font-size: 15px; color: var(--ink-soft); }

.unavailable {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 16px;
  border: 1px dashed var(--galv);
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* ---------- product section layout ---------- */
.product { display: grid; gap: 28px; }
.product .copy { order: 2; }
.product .photo-slot { order: 1; }

/* ---------- flowers (specimen labels) ---------- */
.specimens { display: grid; gap: 28px; margin-top: 8px; }
.specimen { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.specimen .photo-slot { aspect-ratio: 1; }
.specimen h3 { font-size: 24px; margin-bottom: 2px; }
.specimen .latin { font-style: italic; color: var(--green-deep); margin-bottom: 8px; font-size: 17px; }
.specimen p { font-size: 17px; margin: 0; }
.flowers-note { margin-top: 24px; }

/* ---------- fresh ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 7px;
}

/* ---------- ordering ---------- */
.ordering { background: var(--forest); color: var(--ivory-deep); border-bottom: 0; }
.ordering .label, .ordering .section-num { color: var(--green); }
.ordering h2 { color: var(--ivory); }
.ordering .pickup { font-size: 22px; line-height: 1.35; margin: 0 0 8px; }
.ordering .btn { border-color: var(--ivory); color: var(--ivory); }
.ordering .btn:hover, .ordering .btn:focus-visible { background: var(--ivory); color: var(--charcoal); }
.ordering .btn.primary { background: var(--rose); border-color: var(--rose); color: var(--forest); }
.ordering .btn.primary:hover { background: var(--ivory); border-color: var(--ivory); }
.ordering .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.ordering .small { font-size: 15px; color: var(--green); }
.ordering a:not(.btn) { color: var(--rose); }

/* ---------- season ---------- */
.season { padding: 56px var(--gutter); background: var(--rose); }
.season h2 { font-size: clamp(34px, 8vw, 64px); letter-spacing: -0.025em; font-weight: 300; margin-bottom: 14px; }
.season p { font-size: 20px; }

/* ---------- closed state ---------- */
.closed { padding: 80px var(--gutter); min-height: 60vh; }
.closed h1 { font-size: clamp(44px, 12vw, 108px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 20px; }
.closed p { font-size: 20px; }

/* ---------- footer ---------- */
.footer {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--charcoal);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(8px); animation: rise 600ms ease forwards; }
.reveal:nth-child(2) { animation-delay: 80ms; }
.reveal:nth-child(3) { animation-delay: 160ms; }
.reveal:nth-child(4) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero { padding: 72px var(--gutter) 64px; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
  .hero .hero-copy { grid-column: 1; }
  .hero .photo-slot { grid-column: 2; grid-row: 1; max-height: 560px; }
  .section { padding: 56px var(--gutter); }
  .product { grid-template-columns: 6fr 6fr; gap: 48px; align-items: start; }
  .product .photo-slot { max-height: 620px; }
  .product .copy { order: 1; }
  .product .photo-slot { order: 2; }
  .product.flip .copy { order: 2; }
  .product.flip .photo-slot { order: 1; }
  .specimens { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .specimen { grid-template-columns: 1fr; }
  .specimen .photo-slot { aspect-ratio: 4 / 5; margin-bottom: 4px; }
  .ordering { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
  .ordering .section-head { grid-column: 1; align-self: start; }
  .ordering .ordering-body { grid-column: 2; }
  .season { padding: 88px var(--gutter); }
}
@media (min-width: 1100px) {
  :root { --gutter: 64px; }
  .hero { padding-top: 96px; }
}

/* ---------- grass divider (marsh grass) ---------- */
.grass {
  display: block;
  width: 100%;
  height: 72px;
  overflow: visible;
}
.grass line { stroke: var(--green-deep); stroke-width: 1; opacity: .75; }
.grass line:nth-child(3n) { stroke: var(--rose-deep); opacity: .55; }
.grass line:nth-child(5n) { stroke: var(--green); }
.hero { border-bottom: 0; padding-bottom: 8px; }
.grass-wrap { padding: 0 var(--gutter); border-bottom: 1px solid var(--charcoal); line-height: 0; }
