:root {
  color-scheme: light;
  --green: #12221c;
  --green-deep: #0c1712;
  --ink: #182820;
  --paper: #f3efe5;
  --gold: #d6bd8b;
  --olive: #bec8ad;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--gold); color: var(--green-deep); }

.wrap { width: min(100% - clamp(2.5rem, 10vw, 10rem), 82rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .65rem; left: .65rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.header { position: absolute; z-index: 2; top: 0; width: 100%; color: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5.4rem; border-bottom: 1px solid #f3efe548; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 1.65rem/.83 var(--serif); letter-spacing: -.055em; }
.brand small { display: block; margin-top: .45rem; font: 600 .65rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.brand-mark { display: grid; width: 1.95rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--gold); transform: rotate(45deg); border-radius: 40% 0; }
.brand-mark::after { content: ""; width: .75rem; height: 1.05rem; border: 1px solid var(--gold); border-radius: 70%; transform: rotate(-45deg); box-shadow: inset .22rem 0 0 #d6bd8b47; }
nav { display: flex; gap: clamp(1rem, 4vw, 3.3rem); }
nav a, .footer-top { text-decoration: none; font-size: .9rem; font-weight: 550; }
nav a { display: grid; align-items: center; min-height: 2.75rem; }
nav a:hover, .footer-top:hover { color: var(--gold); }

.hero { position: relative; display: flex; min-height: max(39rem, 91svh); isolation: isolate; color: var(--paper); background: var(--green-deep); }
.hero-media, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; overflow: hidden; background: var(--green-deep) url("assets/latte.webp") 71% 50% / cover no-repeat; }
.hero-media video { object-fit: cover; object-position: 72% 48%; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #0b1611e6 0%, #0b1611bf 25%, #0b161153 50%, #0b161108 72%), linear-gradient(0deg, #0a130eaa, transparent 28%, transparent 72%, #0b1611a3); }
.hero-inner { position: relative; display: flex; align-items: center; padding-block: 8rem 5rem; }
.hero-copy { max-width: 47rem; padding-block: 1.8rem; }
.label { margin: 0 0 1rem; font: 650 .875rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; gap: .85rem; color: var(--gold); }
.hero-label::before { content: ""; display: block; width: 1.7rem; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(4.2rem, 8.5vw, 9rem); line-height: .94; letter-spacing: -.07em; }
h1 em { color: #e7d6b1; font-weight: inherit; }
.hero-copy > p:not(.label) { max-width: 21rem; margin: 1.65rem 0 1.8rem; color: #f3efe5e6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.3rem; border: 1px solid var(--gold); background: var(--gold); color: var(--green-deep); text-decoration: none; font-weight: 650; font-size: .9rem; }
.button:hover { background: #ebd7af; border-color: #ebd7af; }

.film-control { position: absolute; right: 0; bottom: 1.7rem; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.8rem; padding: .44rem .9rem; border: 1px solid #f3efe58c; background: #101c16ba; color: var(--paper); cursor: pointer; font-size: .875rem; }
.film-control:hover { background: var(--green); }
.film-icon { width: .7rem; height: .75rem; border: 0 solid transparent; border-width: .38rem 0 .38rem .62rem; border-left-color: currentColor; }
.film-control[data-playing="true"] .film-icon { border: solid currentColor; border-width: 0 .18rem; }

.section-pad { padding-block: clamp(3.75rem, 8vw, 8rem); }
.section-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 2rem; margin-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.section-intro > p { max-width: 30ch; margin: 0 0 .26rem; color: #475047; }
.coffee .label { color: #526653; }
h2 { margin: 0; font-size: clamp(3.4rem, 6.4vw, 6.7rem); letter-spacing: -.068em; line-height: .99; }
.coffee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2.55rem); }
.coffee-image { overflow: hidden; background: var(--green); aspect-ratio: 1.27; }
.coffee-image img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; transition: transform .6s ease; }
.coffee-grid article:hover img { transform: scale(1.045); }
.coffee-grid h3 { margin: .85rem 0 .15rem; font-size: clamp(1.9rem, 2.8vw, 2.6rem); letter-spacing: -.045em; line-height: 1.2; }
.coffee-grid p { margin: 0; max-width: 32ch; color: #475047; }

.craft { background: var(--green); color: var(--paper); }
.craft .label { color: var(--olive); }
.craft-layout { display: grid; grid-template-columns: 1fr .95fr; align-items: start; gap: 3rem; }
.craft-guide { margin-top: .3rem; border-top: 1px solid #bec8ad69; }
details { border-bottom: 1px solid #bec8ad69; }
summary { display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 1.2rem; min-height: 3.4rem; padding: .8rem .1rem; cursor: pointer; font-size: 1.02rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.35rem; line-height: 1; font-weight: 450; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 1.25rem; max-width: 55ch; color: #d6ddce; }
.footer { background: var(--green-deep); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 7rem; }
.footer-top { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 700px) {
  .header-inner { min-height: 4.7rem; }
  .brand { font-size: 1.38rem; gap: .6rem; }
  .brand small { font-size: .62rem; }
  .brand-mark { width: 1.45rem; }
  .brand-mark::after { width: .57rem; height: .8rem; }
  .hero { min-height: max(38rem, 92svh); }
  .hero-inner { align-items: end; padding-block: 8rem 5.1rem; }
  .hero-copy { padding: 0; }
  .hero-media { background-position: 74% 48%; }
  .hero-media video { object-position: 74% 48%; }
  .hero-media::after { background: linear-gradient(0deg, #0a140ef9 0%, #0a140ebf 37%, #0a140e22 76%, #0a140ea8 100%); }
  h1 { font-size: clamp(3.65rem, 11.8vw, 5rem); }
  nav a { font-size: .875rem; }
  .film-control { bottom: 1rem; }
  .section-intro, .craft-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .coffee-grid { grid-template-columns: 1fr; gap: 2rem; }
  .coffee-image { aspect-ratio: 1.55; }
  .craft-guide { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coffee-image img { transition: none; }
  .coffee-grid article:hover img { transform: none; }
}
