/* Toast & Char — shared styles
   Sizes are in rem against a 14px root, matching the original WordPress theme. */

@font-face {
  font-family: "Formula Condensed";
  src: url("../fonts/FormulaCondensed-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Formula Condensed";
  src: url("../fonts/FormulaCondensed-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Klarheit";
  src: url("../fonts/KlarheitGrotesk-Book.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Klarheit";
  src: url("../fonts/KlarheitGrotesk-Semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Klarheit";
  src: url("../fonts/KlarheitGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --char: #181818;
  --cream: #dfd3c3;
  --display: "Formula Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Klarheit", "Helvetica Neue", Arial, sans-serif;
}

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

html { font-size: 14px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--char);
  color: var(--char);
  font-family: var(--body);
  font-size: 1.3rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }

.container { width: 88%; max-width: 1200px; margin-inline: auto; }

/* ---------- Header ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 11rem;
  padding: 0 32px;
  background: var(--char);
}
.masthead__logo img { width: 150px; }
.masthead__social { display: flex; }
.masthead__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.2s, color 0.2s;
}
.masthead__social a:hover,
.masthead__social a:focus-visible { background: var(--cream); color: var(--char); }
.masthead__social svg { width: 20px; height: 20px; }

/* ---------- Type ---------- */

.heading {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #000;
}
.eyebrow {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #000;
}
.name { font-size: 2rem; font-weight: 600; }

.prose { padding: 2.6rem 0 1rem; }
.prose > * + * { margin-top: 1.313em; }
.prose ul { padding-left: 1.655em; }
.prose--loose { line-height: 1.8; }
.prose--flush { padding-top: 0; }

/* ---------- Link with icon ---------- */

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 0.85rem 0.9rem 0;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.7;
  text-decoration: none;
}
.link svg { flex: none; width: 28px; height: 28px; }
.link:hover span,
.link:focus-visible span { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Home: hero + crew ---------- */

.hero img { width: 100%; }

.crew {
  position: relative;
  overflow: hidden;
  padding: 12% 0 15%;
  background: var(--char);
}
.crew__bg {
  position: absolute;
  inset: -30% 0 -30% 0;
  background: url("../img/drink-for-good-back.jpg") center top / 100% auto no-repeat;
  will-change: transform;
}
.crew::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, 0.86);
}
.crew__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: -1px 28px 42px rgba(24, 24, 24, 0.86);
}

/* ---------- Home: intro ---------- */

.intro { padding: 8% 0 12%; background: var(--char); color: var(--cream); }
.intro p + p { margin-top: 1.313em; }
.intro .intro__label {
  margin-top: 60px;
  font-weight: 600;
  letter-spacing: 0.215em;
  text-align: center;
  text-transform: uppercase;
}
.intro .intro__total {
  margin-top: 12px;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-align: center;
}

/* ---------- Home: releases ---------- */

.releases { padding-bottom: 20%; background: var(--cream); }

.latest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 45px;
}
.latest__text { padding: 4.33rem 2.6rem 0 0; }
.latest__photo { width: 500px; margin: -25px auto 0; align-self: start; }

.rule { height: 0; margin: 60px 0 120px; border: 0; border-top: 1px solid var(--char); }

.pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 85px;
}
.pick img { width: 100%; }

/* ---------- Detail pages ---------- */

.bottle { padding: 8% 0; background: var(--cream); scroll-margin-top: 0; }
.bottle__grid {
  display: grid;
  grid-template-columns: 498fr 674fr;
  gap: 28px;
  align-items: start;
}
.bottle__photo { width: 100%; }
.bottle__photo--narrow { width: 600px; margin-inline: auto; }
.bottle__extra { margin-top: 50px; }

.charity { padding: 5% 0; background: var(--char); color: var(--cream); }
.charity .heading { margin-top: 72px; color: var(--cream); text-align: center; }
.charity__name { padding: 3.65rem 0 1.36rem; font-size: 1.75rem; font-weight: 600; line-height: 1.8; }
.charity .link { color: var(--cream); }
.charity__total {
  padding: 2.6rem 0 2.3rem;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.055em;
}

/* ---------- Closing band ---------- */

.signoff {
  padding: 45px 16px;
  background: var(--char);
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2.6rem, 9.8vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.063em;
  text-align: center;
}
.signoff--light { background: var(--cream); color: var(--char); }

/* ---------- Responsive ---------- */

@media (max-width: 766px) {
  .masthead { height: 8rem; padding: 0 20px; }
  .masthead__logo img { width: 120px; }
  .intro { padding: 14% 0 18%; }
  .intro .intro__label { letter-spacing: 0.12em; }
  .intro .intro__total { font-size: 3.6rem; }

  .latest,
  .pick,
  .bottle__grid { grid-template-columns: 1fr; }
  .latest { padding-top: 12%; }
  .latest__text { padding: 0; }
  .latest__photo { width: 100%; margin: 28px 0 0; }
  .rule { margin: 40px 0 70px; }
  .pick { margin-top: 60px; }
  .bottle { padding: 14% 0; }
  .bottle__photo--narrow { width: 100%; }
  .charity { padding: 10% 0; }
  .charity .heading { margin-top: 20px; }
  .charity__total { font-size: 2.4rem; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
