:root {
  color-scheme: light dark;
  --bg: #f2f3ef;
  --surface: #e5e8df;
  --ink: #20231f;
  --muted: #5a6158;
  --line: #bdc3b9;
  --accent: #52762f;
  --accent-ink: #f7faef;
  --focus: #3157aa;
  --max: 1440px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a17;
    --surface: #242923;
    --ink: #eef0e9;
    --muted: #b2b9ae;
    --line: #454c43;
    --accent: #9abd70;
    --accent-ink: #13200c;
    --focus: #9fb9f4;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
figure { margin: 0; }
address { font-style: normal; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  min-height: 72px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; width: max-content; }
.wordmark span { font-weight: 900; letter-spacing: -.05em; font-size: 1.5rem; }
.wordmark small { font-size: .72rem; color: var(--muted); }
nav { display: flex; gap: clamp(18px, 3vw, 40px); white-space: nowrap; }
nav a, .header-call, .text-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.header-call { justify-self: end; font-weight: 700; }

.hero {
  max-width: var(--max);
  min-height: calc(100dvh - 73px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 64px) clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}
.hero-copy { align-self: center; }
.eyebrow, .intro-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: .98; }
h1 { margin-bottom: 22px; max-width: 12ch; font-size: clamp(3rem, 5.8vw, 6rem); }
h2 { margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 5.4rem); }
.hero-text { max-width: 34ch; margin-bottom: 30px; color: var(--muted); font-size: 1.1rem; }
.hero-actions, .visit-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-secondary { background: transparent; color: var(--ink); }
.hero-photo { height: min(70dvh, 760px); min-height: 480px; border-radius: var(--radius); overflow: hidden; }
.hero-photo img { object-position: 58% 55%; }

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 13vw, 190px) clamp(18px, 8vw, 128px);
}
.intro h2 { max-width: 11ch; }
.intro > p:last-child { max-width: 48ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.coffee-story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px) clamp(88px, 12vw, 170px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.coffee-image { height: min(78dvh, 900px); overflow: hidden; border-radius: var(--radius); }
.coffee-image img { object-position: 48% 50%; }
.coffee-copy { padding-bottom: clamp(0px, 6vw, 80px); }
.coffee-copy h2 { max-width: 7ch; }
.coffee-copy p { max-width: 30ch; color: var(--muted); }

.bakeshop { background: var(--surface); padding: clamp(80px, 11vw, 160px) max(clamp(18px, 4vw, 64px), calc((100vw - var(--max)) / 2 + 64px)); }
.bakeshop-heading { max-width: 680px; margin-bottom: clamp(34px, 5vw, 70px); }
.bakeshop-heading p { color: var(--muted); max-width: 55ch; }
.bakeshop-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(18px, 3vw, 44px); align-items: end; }
.bakeshop-grid figure { overflow: hidden; border-radius: var(--radius); }
.pastry-case { height: clamp(360px, 52vw, 720px); }
.takeaway { height: clamp(420px, 48vw, 670px); margin-bottom: clamp(-60px, -4vw, -30px); }
.pastry-case img { object-position: 50% 72%; }
.takeaway img { object-position: 50% 50%; }

.visit {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 15vw, 220px) clamp(18px, 4vw, 64px) clamp(88px, 12vw, 170px);
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
  gap: clamp(46px, 10vw, 150px);
  align-items: start;
}
.visit-photo { height: min(76dvh, 880px); overflow: hidden; border-radius: var(--radius); }
.visit-photo img { object-position: 58% 45%; }
.visit-details { padding-top: clamp(0px, 4vw, 62px); }
.visit-details h2 { max-width: 8ch; }
.detail-block { margin-top: 30px; }
.detail-block h3 { margin-bottom: 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.detail-block a { font-size: 1.1rem; text-underline-offset: 4px; }
.hours dl { max-width: 470px; margin: 0 0 34px; }
.hours dl div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 5px 0; }
.hours dd { margin: 0; color: var(--muted); }
.text-link { font-weight: 700; }

.map-section { max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) clamp(90px, 10vw, 150px); }
.map-heading { max-width: 680px; margin-bottom: 32px; }
.map-heading p { color: var(--muted); }
.map-frame { position: relative; aspect-ratio: 16 / 7; min-height: 380px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px clamp(18px, 4vw, 64px) 46px;
  display: grid;
  grid-template-columns: .7fr .8fr 1.5fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.footer-brand { display: flex; flex-direction: column; color: var(--ink); }
.footer-brand strong { font-size: 1.5rem; letter-spacing: -.05em; }
.footer-brand span { font-size: .72rem; }
.photo-note { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 46px; }
  .hero-copy { max-width: 680px; }
  .hero-photo { min-height: 420px; height: 62dvh; }
  .coffee-story { grid-template-columns: 1fr; }
  .coffee-image { height: 70dvh; }
  .coffee-copy { padding: 0; max-width: 560px; }
  .bakeshop-grid { grid-template-columns: 1.25fr .75fr; }
  .visit { grid-template-columns: .85fr 1.15fr; gap: 50px; }
  footer { grid-template-columns: 1fr 1fr; }
  .photo-note { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-header { padding-inline: 16px; min-height: 64px; }
  .wordmark small { display: none; }
  .hero { display: flex; flex-direction: column; padding: 34px 16px 70px; gap: 36px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.3rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.8rem); }
  .hero-photo { width: 100%; height: 58dvh; min-height: 390px; }
  .intro { padding: 86px 16px; }
  .coffee-story { display: flex; flex-direction: column; padding: 0 16px 88px; }
  .coffee-image { width: 100%; height: 66dvh; min-height: 440px; }
  .bakeshop { padding: 80px 16px 100px; }
  .bakeshop-grid { display: flex; flex-direction: column; }
  .pastry-case { width: 100%; height: 52dvh; min-height: 340px; }
  .takeaway { width: 78%; height: 58dvh; min-height: 420px; margin: -30px 0 0 auto; border: 8px solid var(--surface); }
  .visit { display: flex; flex-direction: column; padding: 110px 16px 88px; }
  .visit-photo { width: 100%; height: 68dvh; min-height: 470px; }
  .visit-details { width: 100%; }
  .hours dl div { gap: 16px; }
  .map-section { padding: 0 16px 88px; }
  .map-frame { aspect-ratio: 4 / 5; min-height: 480px; }
  footer { display: flex; flex-direction: column; padding: 32px 16px 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
