/* The Gin Baker — standalone stylesheet.
 *
 * Deliberately independent of tailwind.out.css. This site is a separate brand
 * on the same process, and sharing recipe.net's utility build would mean every
 * visual change here needed a Tailwind rebuild, and every recipe.net class
 * change could move this site's layout without anyone noticing. One file, no
 * build step, no shared cascade.
 *
 * Palette comes from what gin actually is rather than from a generic food-blog
 * scheme: bottle-green glass, copper still, dried citrus peel, apothecary
 * label stock. Bodoni for display (spirits labels and English baking books are
 * both didone territory), Karla for text.
 */

:root {
  --gb-paper:       #fbfaf6;
  --gb-surface:     #ffffff;
  --gb-surface-2:   #f2f1ea;
  --gb-ink:         #17231d;
  --gb-ink-soft:    #3d4a43;
  --gb-muted:       #6b7770;
  --gb-line:        #e2e1d7;
  --gb-line-soft:   #eeede5;

  --gb-juniper:     #24503c;
  --gb-juniper-dp:  #13302506;
  --gb-juniper-deep:#133025;
  --gb-juniper-soft:#e7efe9;
  --gb-copper:      #a5603a;
  --gb-peel:        #b8891f;

  --gb-display: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif;
  --gb-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gb-measure: 68ch;
  --gb-wrap: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--gb-paper);
  color: var(--gb-ink);
  font-family: var(--gb-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gb-juniper); text-underline-offset: 2px; }
a:hover { color: var(--gb-copper); }

:focus-visible { outline: 2px solid var(--gb-copper); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.gb-wrap { width: 100%; max-width: var(--gb-wrap); margin: 0 auto; padding: 0 24px; }
.gb-narrow { max-width: 780px; }

/* ── Type ──────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--gb-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
  color: var(--gb-ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.05rem; max-width: var(--gb-measure); }

.gb-eyebrow {
  font-family: var(--gb-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gb-copper);
}

.gb-lede {
  font-size: 1.12rem;
  color: var(--gb-ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

.gb-muted { color: var(--gb-muted); }

/* A juniper sprig as a section rule. Cheap, on-subject, and it does the job a
   generic hairline would do while saying what site you are on. */
.gb-rule {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
}
.gb-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--gb-line);
}

/* ── Header ────────────────────────────────────────────────────────────── */

.gb-header {
  background: var(--gb-juniper-deep);
  color: #f4f2e9;
  position: sticky; top: 0; z-index: 40;
}
.gb-header a { color: #f4f2e9; text-decoration: none; }
.gb-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.gb-logo {
  font-family: var(--gb-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.gb-logo em { font-style: italic; color: #cbb26a; }

.gb-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.gb-nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.86;
}
.gb-nav a:hover { opacity: 1; color: #cbb26a; }

.gb-nav-toggle {
  display: none; background: none; border: 1px solid rgba(244,242,233,.35);
  color: inherit; border-radius: 3px; padding: 7px 11px; font: inherit;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 860px) {
  .gb-nav-toggle { display: block; }
  .gb-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 14px; padding: 6px 0 20px;
  }
  .gb-header-inner { flex-wrap: wrap; padding-top: 12px; }
  #gb-nav[data-open="true"] { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.gb-hero { padding: 56px 0 12px; }
.gb-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.gb-hero-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--gb-surface-2); }
.gb-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .gb-hero-grid { grid-template-columns: 1fr; gap: 28px; } .gb-hero { padding-top: 32px; } }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.gb-btn {
  display: inline-block; padding: 12px 24px;
  background: var(--gb-juniper); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 2px; cursor: pointer;
  transition: background 0.15s ease;
}
.gb-btn:hover { background: var(--gb-juniper-deep); color: #fff; }
.gb-btn-ghost {
  background: transparent; color: var(--gb-juniper);
  border: 1px solid var(--gb-juniper);
}
.gb-btn-ghost:hover { background: var(--gb-juniper); color: #fff; }

/* ── Cards ─────────────────────────────────────────────────────────────── */

.gb-grid { display: grid; gap: 34px 28px; }
.gb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gb-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .gb-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .gb-grid-4, .gb-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gb-grid-4, .gb-grid-3 { grid-template-columns: 1fr; } }

.gb-card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.gb-card-img {
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--gb-surface-2);
  border-radius: 2px;
}
.gb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gb-card:hover .gb-card-img img { transform: scale(1.035); }
.gb-card h3 { font-size: 1.14rem; line-height: 1.25; }
.gb-card h3 a { text-decoration: none; color: var(--gb-ink); }
.gb-card:hover h3 a { color: var(--gb-juniper); }
.gb-card h3 a::after { content: ""; position: absolute; inset: 0; }
.gb-card-meta {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gb-copper);
}
.gb-card p { font-size: 0.92rem; color: var(--gb-muted); margin: 0; }

/* ── Sections ──────────────────────────────────────────────────────────── */

.gb-section { padding: 52px 0; }
.gb-section + .gb-section { border-top: 1px solid var(--gb-line-soft); }
.gb-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.gb-section-head a {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}

/* ── Recipe page ───────────────────────────────────────────────────────── */

.gb-recipe { padding: 40px 0 20px; }
.gb-crumbs {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gb-muted); margin-bottom: 22px;
}
.gb-crumbs a { text-decoration: none; }
.gb-crumbs span { margin: 0 8px; opacity: .5; }

.gb-recipe-hero { margin: 26px 0 40px; border-radius: 2px; overflow: hidden; }

.gb-facts {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--gb-line); border-radius: 2px;
  background: var(--gb-surface); margin: 0 0 40px;
}
.gb-fact { flex: 1 1 140px; padding: 16px 20px; border-right: 1px solid var(--gb-line-soft); }
.gb-fact:last-child { border-right: 0; }
.gb-fact dt {
  font-size: .66rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gb-muted); margin-bottom: 4px;
}
.gb-fact dd {
  margin: 0; font-family: var(--gb-display); font-size: 1.3rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gb-cols { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .gb-cols { grid-template-columns: 1fr; gap: 36px; } }

.gb-ingredients {
  background: var(--gb-surface); border: 1px solid var(--gb-line);
  border-top: 3px solid var(--gb-juniper);
  border-radius: 2px; padding: 26px 24px; position: sticky; top: 92px;
}
@media (max-width: 900px) { .gb-ingredients { position: static; } }
.gb-ingredients h2 { font-size: 1.25rem; margin-bottom: 18px; }
.gb-ingredients ul { list-style: none; margin: 0; padding: 0; }
.gb-ingredients li {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--gb-line-soft); font-size: .95rem;
}
.gb-ingredients li:last-child { border-bottom: 0; }
.gb-amount {
  font-weight: 700; color: var(--gb-juniper); white-space: nowrap;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

.gb-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.gb-steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 58px; margin: 0;
}
.gb-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gb-juniper-soft); color: var(--gb-juniper);
  font-family: var(--gb-display); font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gb-steps li p { margin: 0; max-width: none; }

.gb-note {
  background: var(--gb-juniper-soft); border-left: 3px solid var(--gb-juniper);
  padding: 18px 22px; border-radius: 2px; margin: 0 0 14px;
}
.gb-note p { margin: 0; }

.gb-faq { border-top: 1px solid var(--gb-line); }
.gb-faq details { border-bottom: 1px solid var(--gb-line-soft); }
.gb-faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.gb-faq summary::-webkit-details-marker { display: none; }
.gb-faq summary::after { content: "+"; color: var(--gb-copper); font-size: 1.3rem; line-height: 1; }
.gb-faq details[open] summary::after { content: "\2013"; }
.gb-faq .gb-answer { padding: 0 0 18px; color: var(--gb-ink-soft); }

/* Long-form article body */
.gb-prose { max-width: var(--gb-measure); }
.gb-prose h2 { margin: 2.2rem 0 .8rem; }
.gb-prose h3 { margin: 1.8rem 0 .6rem; }
.gb-prose ul, .gb-prose ol { padding-left: 1.2rem; }
.gb-prose li { margin-bottom: .4rem; }
.gb-prose img { border-radius: 2px; margin: 1.6rem 0; }
.gb-prose blockquote {
  margin: 1.6rem 0; padding-left: 20px;
  border-left: 3px solid var(--gb-copper); font-style: italic; color: var(--gb-ink-soft);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.gb-footer {
  margin-top: auto; background: var(--gb-juniper-deep); color: #cfd6d0;
  padding: 52px 0 30px; font-size: .9rem;
}
.gb-footer a { color: #cfd6d0; text-decoration: none; }
.gb-footer a:hover { color: #cbb26a; }
.gb-footer .gb-foot-h {
  font-family: var(--gb-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #8d9b92;
  margin: 0 0 14px;
}
.gb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .gb-footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.gb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gb-footer-base {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: #8d9b92;
}

.gb-empty {
  border: 1px dashed var(--gb-line); border-radius: 2px;
  padding: 44px 28px; text-align: center; color: var(--gb-muted);
}
