/* Sailor's Bakery + Studio — North Haven, Maine
   Danish editorial: characterful grotesk at scale, warm white + oat + fog
   bands, one Danish-red moment, numbered sections, big-type footer. */

:root {
  --paper: #fbfaf7;
  --oat: #f0ead9;        /* warm band */
  --fog: #e3e7e2;        /* cool band */
  --ink: #171716;
  --ink-soft: #6d6a63;
  --red: #b5382a;        /* the one Danish-red moment */
  --hair: #e2dfd7;
  --max: 72rem;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.gro, h1, h2, h3, .kicker, nav.main, .btn, .wordmark, label.frm, .hours-pill,
.timeline, .visit-card h3, .site-foot, .stepper, figcaption {
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--ink); text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--red); text-decoration-color: var(--red); }

h1, h2, h3 { line-height: 1.02; margin: 0 0 0.6rem; color: var(--ink); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(3.4rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 0; }
h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: 0; }

/* numbered sections */
main { counter-reset: sec; }
main > section .kicker { counter-increment: sec; }
main > section .kicker::before {
  content: "0" counter(sec) " — ";
  color: var(--red);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.lede { font-size: 1.17rem; color: #454239; max-width: 42rem; line-height: 1.7; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
}
.site-head .inner {
  max-width: none;
  margin: 0;
  padding: 0.9rem 1.6rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.6rem;
}
.wordmark {
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark em { font-style: normal; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.12em; }
nav.main {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  margin-left: auto; text-transform: uppercase;
}
nav.main a { color: var(--ink-soft); text-decoration: none; }
nav.main a:hover { color: var(--ink); }
nav.main a.order-link {
  color: var(--paper); background: var(--red);
  padding: 0.3rem 1.05rem; border-radius: 99px;
}
nav.main a.order-link:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; }
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 65%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,14,0) 40%, rgba(15,15,14,0.6) 100%);
}
.hero .inner {
  position: relative; z-index: 2;
  width: 100%; max-width: none;
  padding: 4rem 1.6rem 3rem; color: #fff;
}
.hero h1 { color: #fff; font-weight: 500; letter-spacing: -0.04em; text-transform: lowercase; }
.hero .kicker { color: rgba(255,255,255,0.8); }
.hero p.tag {
  font-size: 1.15rem; max-width: 33rem;
  margin: 1rem 0 1.8rem; color: rgba(255,255,255,0.94); line-height: 1.6;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
.hours-pill {
  display: inline-block;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink); background: var(--paper);
  border: none; border-radius: 99px; padding: 0.65rem 1.5rem;
}

/* ---------- baked words (static) ---------- */
.bakeline {
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.95rem 1.6rem;
  line-height: 2.1;
}
.bakeline b { color: var(--red); font-weight: 400; padding: 0 0.35rem; }
.bakeline span { white-space: nowrap; }
.bakeline a.more {
  white-space: nowrap; color: var(--red); text-decoration: none;
  border-bottom: 1px solid var(--red); padding-bottom: 1px;
}
.bakeline a.more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 1.6rem 0; }
section { padding-top: 5.5rem; }

/* full-bleed bands */
.band-oat, .band-fog, .band-red {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}
.band-oat { background: var(--oat); padding-top: 4.5rem; padding-bottom: 4.5rem; margin-top: 5.5rem; }
.band-oat + section, .band-fog + section { padding-top: 5.5rem; }
.band-fog { background: var(--fog); padding-top: 4.5rem; padding-bottom: 4.5rem; margin-top: 5.5rem; }

.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.two-col img { width: 100%; border-radius: 2px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- menu grid ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2.4rem 1.6rem; margin-top: 2.4rem;
}
.dish { background: none; border: none; }
.dish img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  border-radius: 2px; margin-bottom: 0.85rem;
  transition: transform 0.25s ease;
}
.dish:hover img { transform: scale(1.015); }
.dish .body { padding: 0; border-top: 1px solid var(--ink); padding-top: 0.6rem; }
.dish h3 { margin: 0 0 0.15rem; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.dish p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.note {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  margin: 2.4rem 0 0;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); font-weight: 600; }

/* ---------- order form ---------- */
#order.band-red {
  background: var(--red);
  padding-top: 4.5rem; padding-bottom: 5rem; margin-top: 5.5rem;
}
#order .kicker { color: rgba(255,255,255,0.8); }
#order .kicker::before { color: var(--paper); }
#order h2 { color: var(--paper); }
#order .lede { color: rgba(255,255,255,0.92); }
#order .lede a { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }

.order-wrap {
  background: var(--paper);
  border: none;
  border-radius: 4px;
  padding: 2.2rem 2rem 2.4rem;
  margin-top: 2.2rem;
}
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.3rem 2.2rem; margin: 0.6rem 0 0.4rem; }
.item-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair);
}
.item-row .nm { font-size: 0.95rem; }
.stepper { display: flex; align-items: center; gap: 0.55rem; }
.stepper button {
  width: 1.65rem; height: 1.65rem; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent;
  font-size: 0.95rem; color: var(--ink);
  cursor: pointer; line-height: 1;
}
.stepper button:hover { background: var(--ink); color: var(--paper); }
.stepper .qty { min-width: 1.3rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

label.frm {
  display: block;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 1.4rem 0 0.4rem;
}
input[type="text"], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.65rem 0.8rem; color: var(--ink);
  border: 1px solid var(--hair); border-radius: 2px; background: #fff;
}
input[type="text"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.btn {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper) !important;
  border: 1px solid var(--ink); border-radius: 99px;
  padding: 0.8rem 1.8rem; cursor: pointer; text-decoration: none;
  margin: 1.4rem 0.5rem 0 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.alt { background: transparent; color: var(--ink) !important; }
.btn.alt:hover { background: var(--ink); color: var(--paper) !important; }
.btn.ghost { background: transparent; color: var(--ink-soft) !important; border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink) !important; }
pre.dm {
  white-space: pre-wrap;
  background: var(--oat);
  border: none; border-radius: 2px;
  padding: 1.2rem 1.3rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 0.93rem;
}

/* ---------- timeline ---------- */
.timeline {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin: 2.6rem 0 0.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}
.timeline div { max-width: 11.5rem; }
.timeline .yr {
  display: block; font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--red); line-height: 1.1;
}
.timeline .ev { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 2px; display: block;
}
.gallery img.wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .gallery img.wide { grid-column: span 1; } }

/* ---------- story ---------- */
.story p { max-width: 44rem; color: #3b3a36; }
figure { margin: 2.2rem 0; }
figure img { width: 100%; border-radius: 2px; }
figcaption { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.6rem; }
blockquote {
  margin: 2.4rem 0; padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--red);
  font-size: 1.3rem; font-weight: 400; font-style: italic;
  color: var(--ink); max-width: 38rem; line-height: 1.5;
}
blockquote footer { font-size: 0.82rem; font-style: normal; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.visit-card {
  background: none; border: none; border-top: 2px solid var(--ink);
  border-radius: 0; padding: 1.1rem 0 0;
}
.visit-card h3 { margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.visit-card p { margin: 0.35rem 0; font-size: 0.96rem; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 6rem;
  background: var(--ink);
  color: #b9b6ae;
  padding: 3rem 1.6rem 2.4rem;
  font-size: 0.88rem;
  overflow: hidden;
}
.site-foot .inner { max-width: var(--max); margin: 0 auto; }
.site-foot a { color: var(--paper); }
.site-foot .big {
  font-size: clamp(3.4rem, 12vw, 10rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 0.95;
  text-transform: lowercase;
  color: var(--paper); margin: 0 0 1.6rem;
}
.site-foot .big::after { content: "*"; color: var(--red); }

@media (max-width: 640px) {
  :root { font-size: 16px; }
  .hero { min-height: 72vh; }
  section { padding-top: 3.6rem; }
}
