:root {
  --cream: #fdfbf7;
  --raw-cream: #f5efeb;
  --linen: #ece3d4;
  --bark: #27231e;
  --bark-soft: #5c554b;
  --spruce: #1e3a2f;
  --spruce-deep: #142820;
  --amber: #9a5505;
  --amber-fill: #d97706;
  --amber-hover: #f59e0b;
  --white: #ffffff;
  --hero-a: rgb(10 25 18 / 0.88);
  --hero-b: rgb(10 25 18 / 0.18);
  --hero-c: rgb(10 25 18 / 0.4);
  --ghost-border: rgb(255 255 255 / 0.85);
  --ghost-hover: rgb(255 255 255 / 0.15);
  --hairline-dark: rgb(253 251 247 / 0.16);
  --text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--bark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber-fill); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--spruce); color: var(--cream);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.5rem; }
[id] { scroll-margin-top: 2rem; }

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--spruce); margin: 0; text-wrap: balance; }

.eyebrow {
  margin: 0; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* header: static band on inner pages, overlaid on the home hero */
.site-header { border-bottom: 1px solid var(--linen); }
.home .site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; border-bottom: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 2.25rem; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--spruce); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--bark-soft);
  padding: 0.8rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--spruce); border-bottom-color: var(--amber-fill); }
.home .site-header .brand span, .home .site-nav a { color: var(--white); text-shadow: var(--text-shadow); }
.home .site-nav a:hover { color: var(--white); border-bottom-color: var(--amber-hover); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.7rem 1.5rem;
  font-weight: 600; text-decoration: none; border-radius: 0.25rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--amber-fill); color: var(--spruce-deep); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { border: 1px solid var(--ghost-border); color: var(--white); text-shadow: var(--text-shadow); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-outline { border: 1px solid var(--spruce); color: var(--spruce); }
.btn-outline:hover { background: var(--linen); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* home hero */
.hero { position: relative; min-height: min(88vh, 48rem); display: flex; align-items: flex-end; color: var(--white); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--hero-a), var(--hero-b) 60%, var(--hero-c)); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 0 4rem; }
.hero .eyebrow { color: var(--cream); text-shadow: var(--text-shadow); }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.05; max-width: 14ch; margin-top: 0.75rem; }
.lede { font-size: 1.2rem; margin: 1rem 0 0; opacity: 0.92; }

/* intro strip */
.intro { background: var(--cream); padding-block: 6.5rem; text-align: center; }
.intro p {
  margin: 0 auto; max-width: 30ch;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.35; color: var(--spruce);
  text-wrap: balance;
}

/* products (home) */
.products { padding-block: 3rem 5rem; }
.products > .eyebrow { color: var(--amber); }
.products > h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; margin-top: 0.75rem; }
.prod-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .prod-grid { grid-template-columns: 1fr 1fr; } }
.prod-card {
  display: block; padding: 1.25rem;
  border: 1px solid var(--linen); border-radius: 0.5rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s ease;
}
.prod-card:hover { border-color: var(--bark-soft); }
.prod-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.5rem; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.prod-media .ph { height: 100%; aspect-ratio: auto; transition: transform 0.3s ease; }
.prod-card:hover .prod-media img, .prod-card:hover .prod-media .ph { transform: scale(1.03); }
.prod-title { display: block; margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--spruce); }
.prod-line { display: block; margin-top: 0.25rem; color: var(--bark-soft); }
.prod-cue {
  display: inline-block; margin-top: 0.6rem; color: var(--amber); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
}
.prod-card:hover .prod-cue { color: var(--amber-fill); text-underline-offset: 7px; }

/* product pages */
.page { padding-block: 3rem 5rem; }
.feature { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-flip .feature-text { order: 1; }
  .feature-flip > :last-child { order: 2; }
}
.feature-img, .feature-media, .ph { border-radius: 0.5rem; }
.feature-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-media { width: 100%; aspect-ratio: 4 / 5; }
.pos-stag { object-position: 50% 58%; }
.pos-blossom { object-position: 50% 53%; }
.pos-tapers { object-position: 50% 45%; }

.ph {
  aspect-ratio: 1; width: 100%;
  background: var(--raw-cream); border: 1px solid var(--linen);
  display: grid; place-items: center;
}
.ph span {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; color: var(--bark-soft);
  background: var(--cream); border: 1px solid var(--linen); border-radius: 999px;
  padding: 0.45rem 1rem;
}
.ph-45 { aspect-ratio: 4 / 5; }

.page-head { max-width: 40rem; }
.feature-text .eyebrow { color: var(--amber); }
.feature-text h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; margin-top: 0.75rem; }
.feature-text > p { color: var(--bark-soft); margin: 1rem 0 0; max-width: 32rem; }
.feature-text .note { font-size: 0.95rem; }

/* item grid: one card per product, shared by all product pages */
.items-head { margin-top: 4rem; }
.items-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.items-head p { margin: 0.4rem 0 0; color: var(--bark-soft); font-size: 0.95rem; }
.item-grid {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 52rem) { .item-grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); } }
.item-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.5rem; }
.item-photo {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: 0.5rem; cursor: pointer;
}
.item-photo[aria-pressed="true"] { outline: 2px solid var(--amber-fill); outline-offset: 3px; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0.75rem 0 0; }
.item-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--spruce); }
.item-line { margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--bark-soft); }
.item-order {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.15rem;
  color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
}
.item-order:hover { color: var(--amber-fill); text-underline-offset: 7px; }
.price { font-weight: 600; color: var(--bark); }

/* photo cycling: container holds stacked imgs, .is-active shows */
[data-cycle] { position: relative; overflow: hidden; }
[data-cycle] > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.8s ease, transform 0.3s ease;
}
[data-cycle] > img.is-active { opacity: 1; }

/* order band */
.order { background: var(--spruce-deep); color: var(--cream); padding-block: 4.5rem; }
.order h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.order-grid { display: grid; gap: 0; margin-top: 2.5rem; }
.order-cell { padding: 1.5rem 0; border-top: 1px solid var(--hairline-dark); }
.order-cell .eyebrow { color: var(--linen); opacity: 0.7; }
.order-link, .order-soon { display: inline-block; margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.35rem; }
.order-link { color: var(--cream); text-decoration: none; padding-block: 0.4rem; transition: color 0.2s ease; }
.order-link:hover { color: var(--amber-hover); }
.order-soon { color: var(--linen); opacity: 0.6; }
@media (min-width: 40rem) {
  .order-grid { grid-template-columns: repeat(3, 1fr); }
  .order-cell { border-top: 0; border-left: 1px solid var(--hairline-dark); padding: 0 2rem; }
  .order-cell:first-child { border-left: 0; padding-left: 0; }
}

/* footer */
.site-footer { background: var(--spruce-deep); color: var(--linen); padding-block: 2rem; border-top: 1px solid var(--hairline-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.site-footer .brand img { height: 1.75rem; }
.site-footer .brand span { color: var(--cream); font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-nav a, .footnote a { color: var(--linen); text-decoration: none; font-size: 0.9rem; }
.footer-nav a { padding-block: 0.8rem; }
.footer-nav a:hover, .footnote a:hover { color: var(--white); text-decoration: underline; }
.footnote { margin: 0; font-size: 0.9rem; }

@media (max-width: 40rem) {
  .wrap { padding-inline: 1rem; }
  .intro { padding-block: 4.5rem; }
}
@media (max-width: 24rem) {
  .site-nav { gap: 1rem; }
  .site-header .brand span { display: none; }
}
