/* House of Sharbat — brand site
   Theme: cream / maroon / gold, Gloock + Outfit (same tokens as the Sharbat Ledger app) */

:root {
  --bg: #FBF3E4;
  --surface: #FFFBF3;
  --ink: #3A1218;
  --muted: #8A6A60;
  --line: #EADBC3;
  --maroon: #7A1F2B;
  --on-maroon: #FBF3E4;
  --gold: #C9962B;
  --rose: #E2546B;
  --mint: #2E8C7A;

  /* product accents, taken from the labels */
  --rosselle: #B8302B;
  --ninkasi: #B9852F;
  --carmine: #3F8478;

  --display: "Gloock", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(58, 18, 24, .06), 0 12px 32px -12px rgba(58, 18, 24, .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E0F12;
    --surface: #2A161A;
    --ink: #F6E9D6;
    --muted: #BFA493;
    --line: #4A2A2F;
    --maroon: #9E3242;
    --gold: #E0B04A;
    --rose: #F07088;
    --mint: #4FB8A2;
    --rosselle: #D9544A;
    --ninkasi: #D9A44A;
    --carmine: #5DB0A2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E0F12;
  --surface: #2A161A;
  --ink: #F6E9D6;
  --muted: #BFA493;
  --line: #4A2A2F;
  --maroon: #9E3242;
  --gold: #E0B04A;
  --rose: #F07088;
  --mint: #4FB8A2;
  --rosselle: #D9544A;
  --ninkasi: #D9A44A;
  --carmine: #5DB0A2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* the line · diamond · line motif from the labels */
.ornament {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold);
  max-width: 280px;
  margin: 22px 0;
}
.center .ornament, .ornament--center { margin-inline: auto; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.ornament span { width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); flex: none; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--on-maroon);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid var(--maroon);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.link-arrow {
  font-weight: 500; text-decoration: none; color: var(--maroon);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
:root[data-theme="dark"] .link-arrow { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link-arrow { color: var(--gold); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wordmark small { font-family: var(--display); font-size: .62rem; letter-spacing: .28em; margin-bottom: 3px; color: var(--muted); }
.wordmark b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .95rem; padding: 8px 14px; border-radius: 999px; color: var(--ink);
  transition: background .2s ease;
}
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { color: var(--maroon); font-weight: 500; }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--gold); } }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover { background: transparent; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--maroon); }
:root[data-theme="dark"] .hero h1 em { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--gold); } }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-art img { filter: drop-shadow(0 24px 40px rgba(58, 18, 24, .25)); }
.hero-art::before {
  content: ""; position: absolute; inset: 5% -5% -4% 5%;
  border: 1px solid var(--gold); border-radius: 14px; opacity: .55; z-index: -1;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(80%, 360px); order: -1; }
}

/* page hero (inner pages) */
.page-hero { padding: clamp(48px, 8vw, 100px) 0 clamp(24px, 4vw, 48px); text-align: center; }
.page-hero .lede { margin-inline: auto; }

/* ---------- arch frames ---------- */
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); margin-top: 48px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.p-card {
  --accent: var(--maroon);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-card img { aspect-ratio: 961 / 840; object-fit: cover; width: 100%; }
.p-card .body { padding: 22px 22px 26px; border-top: 4px solid var(--accent); flex: 1; display: flex; flex-direction: column; }
.p-card h3 { margin-bottom: 4px; }
.p-card .say { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.p-card p { color: var(--muted); font-size: .98rem; }
.p-card .more { margin-top: auto; color: var(--accent); font-weight: 500; font-size: .95rem; }
.accent-rosselle { --accent: var(--rosselle); }
.accent-ninkasi { --accent: var(--ninkasi); }
.accent-carmine { --accent: var(--carmine); }

/* ---------- two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature--flip > :first-child { order: 2; }
.feature .arch { max-width: 420px; justify-self: center; width: 100%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip > :first-child { order: 0; }
  .feature .arch { max-width: 340px; }
}

/* ---------- ratio block ---------- */
.ratio { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 40px); margin: 36px 0 8px; flex-wrap: wrap; }
.ratio .part { text-align: center; }
.ratio .num { font-family: var(--display); font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; color: var(--maroon); }
:root[data-theme="dark"] .ratio .num { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ratio .num { color: var(--gold); } }
.ratio .lbl { font-size: .9rem; color: var(--muted); letter-spacing: .06em; }
.ratio .sep { font-family: var(--display); font-size: 2.4rem; color: var(--gold); }

/* ---------- facts list ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.facts > div { background: var(--surface); padding: 28px 24px; }
.facts h3 { font-size: 1.3rem; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* ---------- product detail (products page) ---------- */
.product {
  --accent: var(--maroon);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.product:first-of-type { border-top: 0; }
.product .label-img { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 96px; }
.product .tag { color: var(--accent); }
.product h2 { margin-bottom: 6px; }
.product .say { color: var(--muted); margin-bottom: 18px; }
.product .notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; padding: 0; list-style: none; }
.product .notes li { font-size: .88rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.spec { border-top: 1px solid var(--line); margin: 0; }
.spec > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product .label-img { position: static; max-width: 420px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
}

/* placeholder text the brand still needs to confirm */
.tbc {
  display: inline-block; font-size: .85rem; padding: 2px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--ink);
  border: 1px dashed var(--gold);
}

/* ---------- jump nav ---------- */
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .95rem; }
.jump a:hover { border-color: var(--gold); }

/* ---------- recipes ---------- */
.recipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 28px); margin-top: 48px; }
@media (max-width: 820px) { .recipes { grid-template-columns: 1fr; } }
.recipe {
  --accent: var(--maroon);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); border-top: 4px solid var(--accent);
}
.recipe .tag { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.recipe h3 { margin: 8px 0 14px; }
.recipe ul, .recipe ol { margin: 0 0 14px; padding-left: 1.2em; }
.recipe li { margin-bottom: 4px; }
.recipe .label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }

/* ---------- find us ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 28px); margin-top: 40px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--maroon); color: var(--on-maroon); margin-bottom: 16px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); margin-bottom: 12px; }
.card a.big { font-weight: 500; color: var(--ink); word-break: break-word; }

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 40px;
}
.notice p { margin: 0; color: var(--muted); }
.notice strong { color: var(--ink); font-weight: 500; }

/* ---------- cta band ---------- */
.band { background: var(--maroon); color: var(--on-maroon); text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.band .lede { color: color-mix(in srgb, var(--on-maroon) 78%, transparent); }
.band .ornament { color: var(--gold); }
.band .btn { background: var(--on-maroon); color: #3A1218; border-color: var(--on-maroon); }
.band .btn--ghost { background: transparent; color: var(--on-maroon); border-color: color-mix(in srgb, var(--on-maroon) 40%, transparent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--maroon); }
.site-footer .small { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
.notice svg { width: 22px; height: 22px; }

/* illustrated artwork panels */
.framed { max-width: 420px; width: 100%; justify-self: center; }
.framed img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.hero-art img { border-radius: 10px; }

/* product accents last, so they win over each component's default */
.accent-rosselle { --accent: var(--rosselle); }
.accent-ninkasi { --accent: var(--ninkasi); }
.accent-carmine { --accent: var(--carmine); }

/* stop grid children (large images) from forcing the page wider than the screen */
.product > *, .feature > *, .hero .wrap > * { min-width: 0; }
.product .label-img { width: 100%; }

/* tasting notes: labelled and set in italic so they don't read as ingredients */
.product .notes-block { margin: 24px 0 26px; }
.product .notes-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.product .notes-block .notes { margin: 0; }
.product .notes li { font-style: italic; }

/* event listing on Find Us */
.event { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin: 4px 0 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--bg); }
.event-date { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.event strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.event span:last-child { color: var(--muted); font-size: .95rem; }
.band strong { color: var(--on-maroon); font-weight: 600; }
