/*
  Vineland Honey.
  The site is the jar label, unrolled: white label paper, black ink,
  Peter's own drawing, and Alegreya (the text face on the label).
  Color comes from the honey in the photos. Honey gold marks the buy action only.
*/

@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fdfcf8;
  --paper-deep: #f6f1e4;
  --comb: #fbeec4;
  --ink: #1c1917;
  --ink-soft: #564e45;
  --rule: #ddd5c5;
  --honey: #f3b532;
  --honey-hover: #e6a31b;
  --honey-deep: #86490a;
  --pine: #2e5a3c;
  --error: #a3271c;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 6.4vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { text-wrap: pretty; }

a { color: var(--honey-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

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

.visually-hidden, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--paper); }

/* The label's own line: spaced capitals. Used twice, as on the jar. */
.label-line {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.label-line span { margin-inline: 0.15em; }

.hive-line { font-style: italic; font-size: 1.375rem; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.6em 1.5em;
  background: var(--honey); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.1875rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--honey-hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0.4em 1.1em; font-size: 1.0625rem; }
.btn-wide { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #38322c; color: var(--paper); }
.btn-price { font-weight: 500; padding-left: 0.55em; border-left: 1.5px solid currentColor; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.text-link { font-size: 1.0625rem; }

/* Preview bar (staging only) */
.preview-bar {
  background: var(--ink); color: var(--paper);
  text-align: center; font-size: 0.9375rem; padding: 7px var(--gutter);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 252, 248, 0.96);
  border-bottom: 1px solid var(--rule);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: auto; }
.top-nav { display: none; gap: 28px; }
.top-nav a { color: var(--ink); text-decoration: none; font-size: 1.0625rem; padding: 10px 0; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Hero */
.hero { padding-block: 36px 56px; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.lede { font-size: 1.3125rem; line-height: 1.45; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.hero-note { font-size: 1rem; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--rule); max-width: 34em; }
.hero-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); background: #3a2a14; }
figcaption { font-size: 0.9375rem; font-style: italic; color: var(--ink-soft); margin-top: 10px; }

/* Sections */
.section { padding-block: 64px; border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; }
.compare thead { display: none; }
.compare tbody tr { display: block; padding-block: 18px; border-top: 1px solid var(--rule); }
.compare tbody tr:last-child { border-bottom: 1px solid var(--rule); }
.compare tbody th { display: block; text-align: left; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.compare tbody td { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 8px 12px; }
.compare tbody td::before { content: attr(data-label); font-size: 0.9375rem; font-weight: 700; line-height: 1.5; }
.compare tbody td:not(.compare-ours) { color: var(--ink-soft); }
.compare-ours { background: var(--comb); border-radius: var(--radius); }

.heat { display: grid; gap: 24px; margin-top: 48px; }
.heat-media video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #55523f; }
.heat-copy { display: grid; gap: 14px; max-width: 36em; align-content: center; }

/* Shop */
.shop { background: var(--paper-deep); }
.shop-grid { display: grid; gap: 32px; }
.shop-photos { position: relative; padding-bottom: 84px; }
.photo img { width: 100%; border-radius: var(--radius); background: var(--rule); }
.photo-comb img { aspect-ratio: 1; object-fit: cover; }
.photo-comb figcaption { max-width: 58%; }
.photo-jar { position: absolute; right: 14px; bottom: 0; width: 33%; }
.photo-jar img { border: 6px solid var(--paper-deep); border-radius: 10px; box-sizing: content-box; margin: -6px; }
.shop-copy { display: grid; gap: 22px; align-content: start; }
.status { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 700; font-size: 1rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pine); }
.shop-copy h2 { margin-top: -12px; }

.facts { display: grid; border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.9375rem; font-weight: 700; }
.facts dd { color: var(--ink-soft); }

.buy { display: grid; gap: 14px; }
.jars { border: 0; padding: 0; margin: 0; min-width: 0; }
.jars legend { padding: 0; font-weight: 700; margin-bottom: 10px; }
.jar-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jar-option {
  position: relative; display: grid; gap: 2px; justify-items: center;
  padding: 14px 8px; min-height: 76px;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; text-align: center;
}
.jar-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.jar-option:hover { border-color: var(--ink-soft); }
.jar-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--comb); }
.jar-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.jar-count { font-weight: 700; }
.jar-price { color: var(--ink-soft); }
.buy-help { font-size: 1rem; color: var(--ink-soft); }
.buy[data-open="true"] .buy-help { display: none; }

.notify { display: grid; gap: 12px; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.notify[hidden] { display: none; }
.notify-alt { font-size: 1rem; color: var(--ink-soft); }

.shop-notes { display: grid; gap: 8px; font-size: 1rem; color: var(--ink-soft); }
.shop-notes li { padding-left: 1.1em; position: relative; }
.shop-notes li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--honey); border: 1px solid var(--ink); border-radius: 50%; }
.cottage { font-size: 0.875rem; color: var(--ink-soft); }

.lid { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--rule); }
.lid-media video { width: 116px; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; border-radius: 50%; background: #c9c3b0; }
.lid-copy { display: grid; gap: 8px; max-width: 34em; }
.lid-copy p:not(.hive-line) { color: var(--ink-soft); }

/* Forms */
label { font-size: 0.9375rem; font-weight: 700; }
.optional { font-weight: 400; color: inherit; opacity: 0.75; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 52px; padding: 0.5em 0.8em;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
}
input::placeholder { color: #8b8378; }
.signup { display: grid; gap: 8px; }
.signup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.signup-msg { font-size: 1rem; min-height: 0; }
.signup-msg:empty { display: none; }
.signup-msg[data-state="error"] { color: var(--error); font-weight: 700; }
.signup-msg[data-state="done"] { font-weight: 700; }
.signup[data-done="true"] > :not(.signup-msg) { display: none; }

/* Reviews */
.review-list { display: grid; gap: 28px; }
.review-list blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--honey); }
.review-list blockquote p { font-size: 1.3125rem; font-style: italic; }
.review-list cite { display: block; margin-top: 8px; font-size: 1rem; font-style: normal; color: var(--ink-soft); }

/* Uses */
.uses { display: grid; }
.uses article { display: grid; gap: 8px; padding-block: 20px; border-top: 1px solid var(--rule); }
.uses article:last-child { border-bottom: 1px solid var(--rule); }
.uses p { color: var(--ink-soft); max-width: 30em; }

/* Story */
.story-grid { display: grid; gap: 36px; }
.story-copy { display: grid; gap: 18px; max-width: 34em; }
.story-copy h2 { margin-bottom: 8px; }
.story-beat { font-size: 1.625rem; line-height: 1.25; font-style: italic; padding-block: 6px; }
.story-extra { display: grid; grid-template-columns: 0.75fr 1.3333fr; gap: 12px; align-items: start; margin-top: 12px; }
.story-suits img { aspect-ratio: 3 / 4; object-fit: cover; }
.story-yard img { aspect-ratio: 4 / 3; object-fit: cover; }
.story-log { grid-column: 1 / -1; display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; margin-top: 28px; }
.story-log video { width: 116px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #6a6455; }
.story-log-copy { display: grid; gap: 8px; }
.story-log-copy p { color: var(--ink-soft); }

/* Seasons */
.seasons-grid { display: grid; gap: 32px; }
.seasons-copy { display: grid; gap: 22px; }
.seasons-copy > p { color: var(--ink-soft); max-width: 36em; }
.calendar { display: grid; border-top: 1px solid var(--rule); }
.calendar li { display: grid; gap: 2px; padding: 14px 12px; border-bottom: 1px solid var(--rule); }
.cal-when { font-weight: 700; }
.cal-when span { font-weight: 400; font-style: italic; color: var(--ink-soft); margin-left: 0.35em; }
.cal-what { color: var(--ink-soft); }
.cal-now { background: var(--comb); border-radius: var(--radius); border-bottom-color: transparent; }
.cal-now .cal-what, .cal-now .cal-when span { color: var(--ink); }
.seasons-media video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #b9b6ad; }

/* Email list */
.dibs { background: var(--ink); color: var(--paper); padding-block: 64px; }
.dibs-grid { display: grid; gap: 28px; }
.dibs-copy { display: grid; gap: 14px; max-width: 32em; }
.dibs-copy p { color: #ddd6c8; }
.signup-dibs { gap: 16px; max-width: 30em; }
.signup-dibs .field { display: grid; gap: 6px; }
.signup-dibs input { border-color: var(--paper); }
.dibs :focus-visible { outline-color: var(--honey); }
.dibs .btn { border-color: var(--honey); }
.dibs .signup-msg[data-state="error"] { color: #ffb4a8; }
.dibs .signup-msg[data-state="done"] { font-size: 1.3125rem; font-weight: 500; font-style: italic; }

/* FAQ */
.faq-grid { display: grid; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; min-height: 56px; cursor: pointer; list-style: none;
  font-size: 1.25rem; font-weight: 500; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; width: 1em; text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; max-width: 36em; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 48px 120px; }
.foot-grid { display: grid; gap: 28px; }
.foot-logo { width: 240px; height: auto; }
.foot-copy { display: grid; gap: 12px; align-content: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-place, .foot-small { font-size: 1rem; color: var(--ink-soft); }
.foot .cottage { max-width: 34em; }

/* Phone buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1.5px solid var(--ink);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.buybar[hidden] { display: none; }
.buybar.is-on { transform: none; }
.buybar p { font-size: 1.0625rem; }

/* Wider screens */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .compare thead { display: table-header-group; }
  .compare thead th { text-align: left; padding: 14px 18px; font-size: 1.25rem; font-weight: 700; }
  .compare thead .compare-ours { border-radius: var(--radius) var(--radius) 0 0; }
  .compare tbody tr { display: table-row; padding: 0; border: 0; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { display: table-cell; width: 22%; padding: 18px 18px 18px 0; margin: 0; vertical-align: top; border-top: 1px solid var(--rule); }
  .compare tbody td { display: table-cell; width: 39%; padding: 18px; vertical-align: top; border-top: 1px solid var(--rule); border-radius: 0; }
  .compare tbody td::before { content: none; }
  .compare tbody td.compare-ours { border-top-color: #ecd9a0; }
  .compare tbody tr:last-child td.compare-ours { border-radius: 0 0 var(--radius) var(--radius); }
  .heat { grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
  .uses { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--rule); }
  .uses article, .uses article:last-child { border: 0; padding-block: 24px 0; }
  .lid { grid-template-columns: 148px 1fr; gap: 28px; }
  .lid-media video { width: 148px; }
  .story-log { grid-template-columns: 148px 1fr; gap: 28px; }
  .story-log video { width: 148px; }
  .buybar { display: none; }
  .foot { padding-bottom: 56px; }
  .foot-grid { grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 1.25rem; }
  .top-nav { display: flex; }
  .top-row { min-height: 72px; }
  .brand img { width: 176px; }
  .hero { padding-block: 56px 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
  .hero-copy { gap: 24px; }
  .lede { font-size: 1.4375rem; }
  .section { padding-block: 96px; }
  .section-head { margin-bottom: 48px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .shop-photos { position: sticky; top: 104px; padding-bottom: 110px; }
  .story-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
  .story-photos { position: sticky; top: 104px; }
  .story-extra { grid-template-columns: 0.75fr 1.3333fr 1fr; gap: 24px; margin-top: 72px; }
  .story-log { grid-column: auto; grid-template-columns: 1fr; gap: 16px; margin-top: 0; align-items: start; }
  .seasons-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
  .seasons-media video { aspect-ratio: 4 / 5; }
  .dibs { padding-block: 96px; }
  .dibs-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { margin-bottom: 0; position: sticky; top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .buybar { transition: none; }
}
