/* Our beers (/our-beers/), from tools/generators/our-beers.mjs. Black and
   white (the brewery's colours): a photo hero, a facts strip, how we brew,
   the rainwater section in a white band, unpasteurised and fresh, and the
   range. The beer colours only appear as the beers' own dots. */

/* ---------- Hero ---------- */
.ob-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(460px, 70svh, 720px); overflow: clip; }
.ob-hero__media { position: absolute; inset: 0; z-index: -2; background: #1E1E1E; }
.ob-hero__img { width: 100%; height: 100%; object-fit: cover; }
.ob-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .25) 35%, rgba(0, 0, 0, .82) 78%); }
.ob-hero__in { padding-block: clamp(96px, 14vw, 180px) clamp(32px, 5vw, 64px); }
.ob-hero h1 span { display: block; }
.ob-hero h1 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ob-hero__lede { margin: 16px 0 22px; }
.ob-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ob-hero__actions .btn--ghost { background: rgba(0, 0, 0, .55); }
.ob-hero__actions .btn--ghost:hover { background: var(--fg); }
@media (min-width: 900px) {
  .ob-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0, rgba(0, 0, 0, .8) 46%, rgba(0, 0, 0, 0) 78%); }
  /* The text sits in the left column, over the dark side of the photo. */
  .ob-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ob-hero__in > * { grid-column: 1; }
}

/* ---------- Facts ---------- */
.ob-facts { border-block: 1px solid var(--line); padding-block: clamp(24px, 4vw, 40px); }
.ob-facts__list { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.ob-facts__list li { display: grid; gap: 4px; align-content: start; font-weight: 600; line-height: 1.3; }
.ob-facts__big { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: .95; color: var(--brand); }
@media (min-width: 900px) { .ob-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Two-column sections ---------- */
.ob-split { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.ob-split h2 { margin-bottom: 18px; }
.ob-photo { margin: 0; }
.ob-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: #1E1E1E; }
.ob-photo figcaption { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.ob-more { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
  .ob-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ob-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.ob-roof { width: min(100%, 420px); justify-self: center; color: inherit; }
html[data-motion="full"]:not(.save-data) .ob-roof__drop { animation: drop 2.6s cubic-bezier(.5, 0, .9, .6) infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(16px); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

/* "To come from ...": what the brewery still owes us, said plainly in place */
.tocome { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.tocome__k { font-weight: 700; }
.band .tocome { background: transparent; border-color: currentColor; }

/* ---------- The range ---------- */
.ob-range__head { display: grid; gap: 8px 48px; align-items: end; margin-bottom: clamp(22px, 3vw, 32px); }
.ob-range__head h2 { margin: 0; }
.ob-range__lede { margin: 0; }
@media (min-width: 900px) { .ob-range__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.rng { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: start; }
@media (min-width: 900px) {
  .rng { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .rng__col:first-child { grid-row: span 3; }
  .rng__col:first-child .rng__list { columns: 2; column-gap: 32px; }
  .rng__col:first-child .rng__list li { break-inside: avoid; }
}
.rng__h { margin: 0 0 6px; font-size: 1.125rem; padding-bottom: 8px; border-bottom: 3px solid var(--fg); display: flex; justify-content: space-between; }
.rng__n { font-variant-numeric: tabular-nums; }
.rng__note { margin: 0 0 6px; font-size: .9375rem; color: var(--muted); }
.rng__list { list-style: none; margin: 0; padding: 0; }
.rng__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rng__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-block: -6px; font-weight: 700; text-decoration: none; }
.rng__list a:hover .rng__name, .rng__list a:focus-visible .rng__name { text-decoration: underline; text-underline-offset: 3px; }
.rng__dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--line-strong); }
.rng__style { font-size: .875rem; color: var(--muted); text-align: right; }
.ob-range__go { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(24px, 3vw, 36px) 0 14px; }
.ob-range__go .btn svg { width: 18px; height: 18px; }

/* ---------- Next ---------- */
.ob-next { padding-block: clamp(40px, 6vw, 72px); }
.ob-next__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.ob-next h2 { margin: 0; }
.ob-next__go { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
body:has(.ob-next) .site-footer { margin-top: 0; }
