:root {
  --paper: #f4ede2;
  --cream: #faf6ef;
  --foam: #fff9f2;
  --ink: #1a1612;
  --roast: #2a221c;
  --crust: #8f5a32;
  --amber: #c4873f;
  --amber-hot: #d49a4f;
  --wheat: #ddd0bc;
  --line: rgba(26, 22, 18, 0.14);
  --white-line: rgba(255, 249, 242, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 24px 70px rgba(42, 34, 28, 0.12);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--paper);
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: var(--foam);
  color: var(--roast);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus { top: 16px; }

.overlay-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foam);
}

.overlay-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -56px;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.92) 0%, rgba(6, 5, 4, 0.55) 34%, rgba(6, 5, 4, 0.12) 58%, rgba(6, 5, 4, 0) 72%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.96) 0%, rgba(8, 7, 6, 0.78) 38%, rgba(8, 7, 6, 0.32) 72%, rgba(8, 7, 6, 0) 100%);
  pointer-events: none;
}

.overlay-nav > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 249, 242, 0.12);
  border: 1px solid var(--white-line);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
}

.brand-lockup span:last-child {
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.top-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 13px;
}

.top-links a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 249, 242, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.top-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.72;
  transition: transform 0.22s var(--ease);
}

.top-links a:hover::after,
.top-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-phone {
  font-weight: 700;
  color: var(--foam) !important;
}

.hero {
  position: relative;
  height: min(760px, 100svh);
  min-height: 580px;
  overflow: hidden;
  color: var(--foam);
  isolation: isolate;
  background: var(--roast);
}

.hero-food {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 68% 46%;
  transform: scale(1.04);
  animation: slowFood 22s var(--ease) forwards;
  filter: saturate(0.86) contrast(1.12) brightness(0.78);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.96) 0%, rgba(10, 8, 6, 0.88) 28%, rgba(12, 10, 8, 0.52) 48%, rgba(14, 11, 9, 0.16) 68%, rgba(14, 11, 9, 0.04) 86%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.32) 100%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 36px));
  padding-left: clamp(20px, 7vw, 92px);
  padding-top: clamp(118px, 25svh, 174px);
}

.hero-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 249, 242, 0.86);
  opacity: 0;
  transform: translateY(10px);
  animation: titleIn 0.72s var(--ease) 0.04s forwards;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  margin: 0;
  color: var(--foam);
  font-size: clamp(48px, 6.2vw, 78px);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.28);
}

h1 span {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  animation: titleIn 0.82s var(--ease) forwards;
}

h1 span:nth-child(2) { animation-delay: 0.14s; }

.hero-text {
  max-width: 400px;
  margin: 16px 0 22px;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255, 249, 242, 0.83);
  opacity: 0;
  transform: translateY(12px);
  animation: titleIn 0.76s var(--ease) 0.22s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: titleIn 0.76s var(--ease) 0.32s forwards;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--roast);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(42, 34, 28, 0.22);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--amber-hot);
  box-shadow: 0 18px 36px rgba(42, 34, 28, 0.28);
}

.cta-primary.dark {
  background: var(--foam);
  color: var(--roast);
  box-shadow: none;
}

.quiet-link,
.ink-link {
  font-weight: 650;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.quiet-link { color: var(--foam); }

.ink-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--crust);
}

.torn-edge,
.footer-tear {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  background: var(--paper);
  clip-path: polygon(0 48%, 5% 60%, 12% 42%, 19% 66%, 29% 45%, 40% 62%, 49% 40%, 58% 64%, 67% 47%, 76% 61%, 86% 41%, 94% 58%, 100% 45%, 100% 100%, 0 100%);
}

.torn-edge {
  bottom: -1px;
  z-index: 4;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--crust);
}

.hours-board,
.product-grid,
.story-block,
.contact-paper {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hours-board {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  padding: clamp(72px, 10vw, 128px) 0 clamp(54px, 8vw, 94px);
  align-items: center;
}

.board-copy h2,
.story-copy h2,
.contact-copy h2,
.coffee-copy h2,
.event-strip h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 58px);
  max-width: 650px;
}

.board-copy p:not(.eyebrow),
.story-copy p,
.contact-copy p,
.coffee-copy p {
  max-width: 490px;
  margin: 16px 0 0;
  color: rgba(26, 22, 18, 0.72);
  font-size: 17px;
  line-height: 1.76;
}

.hour-slips {
  display: grid;
  gap: 13px;
  padding: 10px;
}

.slip {
  padding: 18px 22px 17px;
  background: rgba(255, 249, 242, 0.72);
  border: 1px solid var(--line);
  box-shadow: 10px 14px 0 rgba(42, 34, 28, 0.08);
  transform: rotate(var(--r, -1.2deg));
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.slip:nth-of-type(2) { --r: 1.1deg; }
.slip:nth-of-type(3) { --r: -0.6deg; }

.slip:hover,
.slip:focus-within {
  transform: rotate(0) translateY(-3px);
  box-shadow: 14px 18px 0 rgba(42, 34, 28, 0.1);
  background: var(--foam);
}

.slip span {
  display: block;
  font-size: 12px;
  color: rgba(26, 22, 18, 0.58);
}

.slip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.06;
  color: var(--roast);
}

.slip.is-open {
  background: var(--roast);
  color: var(--foam);
}

.slip.is-open span,
.slip.is-open strong {
  color: var(--foam);
}

.section-head {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.product-grid {
  padding: 0 0 clamp(64px, 9vw, 100px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 30px);
}

.card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 22, 18, 0.72);
}

.coffee-strip {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto clamp(64px, 9vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
  background: var(--wheat);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
}

.coffee-visual {
  margin: 0;
  min-height: 280px;
}

.coffee-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(32px, 7vw, 80px);
  align-items: center;
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.story-notes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  color: rgba(26, 22, 18, 0.74);
}

.story-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-notes span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(196, 135, 63, 0.14);
}

.story-visual {
  position: relative;
  margin: 0;
  background: var(--foam);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.story-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.story-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 249, 242, 0.88);
  padding: 7px 10px;
  font-size: 12px;
}

.event-strip {
  position: relative;
  overflow: hidden;
  margin: 0 auto clamp(68px, 9vw, 118px);
  width: min(1180px, calc(100vw - 40px));
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: var(--roast);
  color: var(--foam);
}

.event-strip h2 {
  color: var(--foam);
  font-size: clamp(30px, 3.8vw, 48px);
}

.event-text {
  margin: 0;
  color: rgba(255, 249, 242, 0.78);
  line-height: 1.7;
}

.contact-paper {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 80px);
  align-items: stretch;
  padding: 0 0 clamp(70px, 10vw, 130px);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-cta {
  margin-top: 22px;
  display: inline-flex;
}

.contact-lines a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.contact-lines span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 22, 18, 0.56);
}

.map-wrap {
  position: relative;
  min-height: 430px;
  background: var(--wheat);
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) sepia(0.08);
}

.map-wrap a {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--foam);
  color: var(--roast);
  padding: 10px 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.roast-footer {
  position: relative;
  background: var(--roast);
  color: var(--foam);
  margin-top: 20px;
  overflow: hidden;
}

.footer-tear {
  top: -69px;
  background: var(--roast);
  transform: rotate(180deg);
}

.footer-inner {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 34px;
}

.footer-inner strong {
  font-family: var(--font-display);
  font-size: 28px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 249, 242, 0.75);
}

.medweb-line {
  font-size: 14px;
  text-align: right;
}

.medweb-line a {
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

@keyframes slowFood {
  to { transform: scale(1.06); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reveal { transition-delay: var(--d, 0ms); }
.slip.reveal { transition-delay: var(--d, 0ms); }
.map-wrap.reveal { transition-delay: var(--d, 0ms); }
.coffee-strip.reveal,
.story-block .story-copy,
.story-block .story-visual {
  transition-delay: 0ms;
}

@media (max-width: 900px) {
  .hero-food {
    animation: none;
    transform: none;
    object-position: 62% 50%;
  }
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-food { transform: none; }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  .overlay-nav {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-top: 14px;
  }

  .top-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-links a:not(.nav-phone) { display: none; }

  .hero {
    height: 100svh;
    min-height: 620px;
  }

  .hero-copy { padding-top: 128px; }

  .hours-board,
  .story-block,
  .contact-paper,
  .coffee-strip,
  .event-strip,
  .cards {
    grid-template-columns: 1fr;
  }

  .cards { gap: 20px; }

  .event-strip { align-items: start; }

  .footer-inner { display: block; }

  .medweb-line {
    text-align: left;
    margin-top: 22px !important;
  }
}

@media (max-width: 560px) {
  body { font-size: 15px; }

  .overlay-nav { padding-inline: 14px; }

  .brand-lockup span:last-child { font-size: 14px; }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .top-links { font-size: 12px; }

  .hero { min-height: 600px; }

  .hero-copy {
    padding-left: 18px;
    padding-top: 116px;
    width: calc(100vw - 28px);
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
    max-width: 330px;
  }

  .hero-text {
    font-size: 14px;
    max-width: 310px;
    margin-top: 12px;
  }

  .hero-actions {
    gap: 14px;
    flex-wrap: wrap;
  }

  .cta-primary {
    min-height: 38px;
    padding-inline: 18px;
  }

  .quiet-link { font-size: 14px; }

  .torn-edge { height: 48px; }

  .hours-board,
  .product-grid,
  .story-block,
  .contact-paper,
  .coffee-strip {
    width: min(100vw - 28px, 1180px);
    padding-block: 58px;
  }

  .product-grid { padding-top: 0; }

  .board-copy h2,
  .story-copy h2,
  .contact-copy h2,
  .coffee-copy h2,
  .event-strip h2,
  .section-head h2 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }

  .board-copy p:not(.eyebrow),
  .story-copy p,
  .contact-copy p,
  .coffee-copy p {
    font-size: 16px;
    line-height: 1.72;
  }

  .slip { padding: 15px 16px; }

  .slip strong { font-size: 26px; }

  .story-visual img { height: 300px; }

  .event-strip {
    width: min(100vw - 28px, 1180px);
    padding: 28px 20px;
    margin-bottom: 62px;
  }

  .contact-lines a {
    display: block;
    font-size: 17px;
  }

  .contact-lines span {
    display: block;
    margin-bottom: 2px;
  }

  .map-wrap { min-height: 340px; }

  .footer-inner {
    width: min(100vw - 28px, 1180px);
    padding-top: 34px;
  }

  .medweb-line { font-size: 13px; }

  .footer-tear {
    height: 46px;
    top: -45px;
  }
}

@media (max-width: 360px) {
  .hero { min-height: 560px; }

  .hero-copy { padding-top: 104px; }

  .hero-note { font-size: 12px; }

  h1 { font-size: 39px; }

  .hero-text {
    font-size: 13px;
    line-height: 1.58;
    margin-bottom: 16px;
  }

  .cta-primary { font-size: 13px; }

  .hours-board,
  .product-grid,
  .story-block,
  .contact-paper,
  .coffee-strip,
  .event-strip {
    width: min(100vw - 22px, 1180px);
  }
}
