/* ═══════════════════════════════════════════════════════════════
   Alder Street Coffee
   A single static page. No JavaScript, no build step.
   Colour and spacing tokens live at the top — change them here.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Ink & paper */
  --paper:       #f4ece1;
  --paper-deep:  #eadfce;
  --paper-edge:  #ded0ba;
  --ink:         #2a211c;
  --ink-soft:    #6a584c;
  --ink-faint:   #9a8877;

  /* One accent, used sparingly */
  --terracotta:  #b5502f;
  --sage:        #7c8a6b;

  --rule:        #cbbaa2;

  --font-display: "Fraunces", "Hoefler Text", Georgia, serif;
  --font-body:    "Karla", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono:    "Courier Prime", "Courier New", monospace;

  --measure: 62ch;
  --gutter:  clamp(1.25rem, 5vw, 5.5rem);

  --shadow-hard: 14px 14px 0 var(--paper-edge);
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;

  /* Faint warm bloom in the upper left, so the page isn't a flat fill */
  background-image:
    radial-gradient(70ch 60ch at 8% -10%, #fbf5ec 0%, transparent 70%),
    radial-gradient(50ch 50ch at 105% 30%, #f0e3d0 0%, transparent 65%);
  background-attachment: fixed;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-color: var(--terracotta);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1.5px;
  transition: color 160ms ease;
}
a:hover { color: var(--terracotta); }
a:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── Paper grain, fixed so it never repaints on scroll ─────── */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ── Sheet ─────────────────────────────────────────────────── */

.sheet {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.rule {
  height: 0;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  padding-top: 3px;
}

/* ── Masthead ──────────────────────────────────────────────── */

.masthead { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.028em;
  font-size: clamp(3.4rem, 15.5vw, 12rem);
  display: grid;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* Each word steps to the right — the masthead reads as a stacked
   sign painted down a shopfront window rather than a centred title. */
.wordmark__a { justify-self: start; }
.wordmark__b {
  justify-self: start;
  margin-left: 0.14em;
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144;
}
.wordmark__c {
  justify-self: start;
  margin-left: 0.28em;
  font-weight: 300;
  -webkit-text-stroke: 0;
  color: var(--ink-soft);
}

.lede {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 24;
  font-size: clamp(1.1rem, 0.95rem + 0.85vw, 1.6rem);
  line-height: 1.42;
  max-width: 34ch;
  color: var(--ink);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  margin-left: auto;      /* pushed right, against the left-aligned mark */
  text-wrap: balance;
}

@media (min-width: 60rem) {
  .lede { max-width: 38ch; margin-right: 6%; }
}

/* ── Visit: hours + address beside the photo ───────────────── */

.visit {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

@media (min-width: 62rem) {
  .visit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.visit__info {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-content: start;
}

.card {
  position: relative;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-hard);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Slight opposing tilts — pinned notices, not a tidy stack */
.card--hours { transform: rotate(-0.55deg); }
.card--find  { transform: rotate(0.7deg); }

.card--hours:hover,
.card--find:hover {
  transform: rotate(0deg) translate(-3px, -3px);
  box-shadow: 18px 18px 0 var(--paper-edge);
}

.card__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1.5px solid var(--rule);
}

.card__note {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* Hours read like a till receipt */
.hours { margin: 0; font-family: var(--font-mono); font-size: 0.95rem; }

.hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--rule);
}
.hours__row:last-child { border-bottom: 0; }

.hours dt { color: var(--ink); }
.hours dd { margin: 0; font-weight: 700; white-space: nowrap; }

.hours__row--closed dt,
.hours__row--closed dd {
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 400;
}

.address {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 48;
  font-style: normal;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.address__zip { color: var(--ink-soft); }

.phone {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ── Photo ─────────────────────────────────────────────────── */

.photo {
  margin: 0;
  position: relative;
  transform: rotate(1.1deg);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo:hover { transform: rotate(0deg) scale(1.012); }

.photo img {
  width: 100%;
  border: 1.5px solid var(--ink);
  /* Photographic paper: a thick white-ish mount inside the rule */
  padding: clamp(0.6rem, 1.6vw, 1.1rem);
  background: #fbf6ee;
  box-shadow: var(--shadow-hard);
}

.photo figcaption {
  margin-top: 1rem;
  padding-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Menu ──────────────────────────────────────────────────── */

.menu { margin-bottom: clamp(3rem, 7vw, 5rem); }

.menu__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 3px double var(--rule);
}

.section-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 96;
  font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.menu__cols {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 6vw, 5rem);
}

@media (min-width: 48rem) {
  .menu__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.group__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* Dot leaders, set on the baseline */
.item {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0;
}
.item + .item { border-top: 1px solid rgba(203, 186, 162, 0.45); }

.item__name {
  font-size: 1.02rem;
  line-height: 1.35;
}

.item__note {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.dots {
  align-self: center;
  height: 0;
  border-bottom: 1.5px dotted var(--rule);
  transform: translateY(0.1em);
}

.item__price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.group__note {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
}

/* The single origin currently on bar — the one loud block */
.beans {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 48rem) {
  .beans {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2.5rem;
    align-items: baseline;
  }
}

.beans__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #d9a07e;
  white-space: nowrap;
}

.beans__body {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  line-height: 1.45;
  max-width: var(--measure);
}
.beans__body strong { font-weight: 700; }
.beans__price {
  font-family: var(--font-mono);
  font-variant-numeric: lining-nums;
  color: #d9a07e;
}

/* ── Colophon ──────────────────────────────────────────────── */

.colophon__grid {
  padding-top: 1.5rem;
  display: grid;
  gap: 0.3rem;
}

.colophon__mark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 36;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.colophon__line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.colophon__line--quiet { color: var(--ink-faint); }

/* ── Entrance ──────────────────────────────────────────────── */

.reveal {
  animation: rise 800ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* The tilted elements need their rotation preserved at rest */
.card--hours.reveal { animation-name: rise-tilt-left; }
.card--find.reveal  { animation-name: rise-tilt-right; }
.photo.reveal       { animation-name: rise-tilt-photo; }

@keyframes rise-tilt-left {
  from { opacity: 0; transform: translate3d(0, 18px, 0) rotate(-2.5deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate(-0.55deg); }
}
@keyframes rise-tilt-right {
  from { opacity: 0; transform: translate3d(0, 18px, 0) rotate(3deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate(0.7deg); }
}
@keyframes rise-tilt-photo {
  from { opacity: 0; transform: translate3d(0, 26px, 0) rotate(3.5deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate(1.1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card--hours:hover, .card--find:hover, .photo:hover { transform: none; }
}

/* ── Print: someone will want the menu on paper ────────────── */

@media print {
  :root { --shadow-hard: none; }
  body { background: #fff; background-image: none; color: #000; }
  .grain, .photo, .lede { display: none; }
  .sheet { max-width: none; padding: 0; }
  .card, .beans { break-inside: avoid; box-shadow: none; transform: none; }
  .beans { background: #fff; color: #000; border: 1.5px solid #000; }
  .beans__label, .beans__price { color: #000; }
  .visit { grid-template-columns: repeat(2, 1fr); }
  .wordmark { font-size: 3rem; }
  .wordmark__b, .card__title, .group__title { color: #000; }
  .reveal { animation: none; }
}
