/* ============================================================
   Dr. Goodvine — clean modern apothecary
   Design language: warm off-white ground, near-black ink,
   hairline rules, wide-tracked uppercase labels, muted
   colour tiles drawn from the wine labels.
   ============================================================ */

:root {
  --bg: #fdfcf3;
  --bg-deep: #f4f2e6;
  --ink: #262624;
  --ink-soft: #56544e;
  --line: #e3dfd0;
  --tile-sage: #dfe6d8;
  --tile-blue: #d9e5ec;
  --tile-straw: #f0e9cd;
  --tile-blush: #eccfc7;
  --accent: #a6402f;
  --max: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- type utilities ---------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.serif-title {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- announcement bar ---------- */

.announce {
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .dg-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 640px) {
  .site-header .dg-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .brand { font-size: 17px; white-space: nowrap; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav a { font-size: 12px; white-space: nowrap; }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
}

.hero-logo {
  width: clamp(110px, 15vw, 210px);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-logo { display: none; }
}

.wine-seal {
  width: 68px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero .sub {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
}

/* ---------- product grid ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px);
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.text-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover { color: var(--ink); border-color: var(--ink); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.product-card { display: block; }

.product-card .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
  padding: clamp(28px, 5vw, 64px);
  transition: background 0.35s ease;
}

.product-card .tile img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 16px 22px rgba(38, 38, 36, 0.22));
  transition: transform 0.45s ease;
}

.product-card:hover .tile img { transform: translateY(-6px) scale(1.015); }

.tile--sage { background: var(--tile-sage); }
.tile--blue { background: var(--tile-blue); }
.tile--straw { background: var(--tile-straw); }
.tile--blush { background: var(--tile-blush); }

.product-card .meta {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card .meta .name {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.product-card .meta .varietal {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-card .meta .price {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- story / poem ---------- */

.story {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.story-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 4vw, 56px);
  text-align: center;
}

.story-inner .eyebrow { display: block; margin-bottom: 28px; }

.story-inner p {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.6em;
}

.story-inner p:last-child { margin-bottom: 0; }

.story-inner em { font-style: italic; }

/* ---------- product detail ---------- */

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
}

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
}

.pdp .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
  min-height: 60vh;
  position: sticky;
  top: 96px;
  align-self: start;
}

.pdp .tile img {
  max-height: 72vh;
  filter: drop-shadow(0 18px 26px rgba(38, 38, 36, 0.22));
}

@media (max-width: 860px) {
  .pdp .tile { position: static; min-height: auto; }
  .pdp .tile img { max-height: 480px; }
}

.pdp-info .eyebrow { display: block; margin-bottom: 14px; }

.pdp-info h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.pdp-info .price {
  font-size: 20px;
  margin-bottom: 4px;
}

.pdp-info .case-note {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  font-family: inherit;
}

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

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

.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.order-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* spec accordions */

.specs { margin-top: 40px; border-top: 1px solid var(--line); }

.specs details { border-bottom: 1px solid var(--line); }

.specs summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs summary::-webkit-details-marker { display: none; }

.specs summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.25s;
}

.specs details[open] summary::after { transform: rotate(45deg); }

.specs .body {
  padding: 0 2px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- prose pages (about, privacy) ---------- */

.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 56px);
}

.prose-page .eyebrow { display: block; margin-bottom: 20px; }

.prose-page h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 550;
  margin: 40px 0 14px;
}

.prose-page h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 30px 0 10px;
}

.prose-page p, .prose-page li {
  color: var(--ink-soft);
  margin-bottom: 1.2em;
  font-size: 16px;
  line-height: 1.8;
}

.prose-page ul { padding-left: 22px; margin-bottom: 1.2em; }

.prose-page a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(56px, 8vw, 112px) 0;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-grid h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 14px 0 20px;
}

.contact-grid .lede { color: var(--ink-soft); max-width: 38ch; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

/* ---------- footer ---------- */

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 550;
  margin-bottom: 16px;
}

.newsletter {
  display: flex;
  gap: 0;
  max-width: 440px;
  border-bottom: 1px solid var(--ink-soft);
}

.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

.newsletter input:focus { outline: none; }

.newsletter button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  padding: 12px 4px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.footer-base {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.footer-base .tagline {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ---------- thank you ---------- */

.center-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.center-page h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.center-page p { color: var(--ink-soft); margin-bottom: 32px; }
