/* Cakes by Tessa Perella — one-page site
   Palette: white paper, near-black ink, warm hairlines. Photos carry the color. */

:root {
  --paper: #ffffff;
  --paper-warm: #faf7f3;
  --ink: #1a1817;
  --muted: #6f6a64;
  --line: #e7e2db;
  --script: 'Parisienne', 'Segoe Script', cursive;
  --sans: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { font-weight: 400; margin: 0; }

/* ---------- Shared ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 1rem;
}

.wordmark { font-family: var(--script); font-weight: 400; line-height: 1; }
.wordmark-sm { font-family: var(--script); font-size: 1.6rem; text-decoration: none; white-space: nowrap; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2rem;
  border: 1px solid var(--ink);
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 1.5rem; }
.section--warm { max-width: none; background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--warm .section-head, .section--warm .menu-wrap { max-width: 700px; margin-inline: auto; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 30rem; }
.hero .wordmark {
  font-size: clamp(2.8rem, 6.4vw, 4.8rem);
  margin: 0.25rem 0 1.5rem;
  text-wrap: balance;
}
.lede { font-size: 1.12rem; color: #33302d; margin: 0 0 2.25rem; max-width: 34ch; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* ---------- Gallery (masonry via columns) ---------- */

.gallery { columns: 3; column-gap: 1rem; }
.shot { margin: 0 0 1rem; break-inside: avoid; overflow: hidden; }
.shot img {
  width: 100%;
  transition: transform .5s ease;
}
.shot:hover img { transform: scale(1.03); }

/* ---------- Menu ---------- */

.menu-wrap { max-width: 720px; }

.pricelist { list-style: none; margin: 0; padding: 0; }
.pricelist li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.pricelist .item { font-weight: 400; }
.pricelist .dots { flex: 1 1 auto; border-bottom: 1px dotted #c9c2b8; transform: translateY(-3px); }
.pricelist .price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricelist .addon { color: #4a4640; }
.pricelist .addon .item { font-weight: 300; font-size: 0.95rem; max-width: 30ch; }

.note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.flavors { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.flavors h3 {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.flavors p { margin: 0; max-width: 52ch; font-size: 1.08rem; }

/* ---------- Order ---------- */

.order { text-align: center; }
.order .section-head { margin-bottom: 1.5rem; }
.order-lede { max-width: 46ch; margin: 0 auto 2.5rem; color: #33302d; font-size: 1.12rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 3rem 1.5rem;
}
.site-footer .wordmark-sm { font-size: 2rem; display: inline-block; margin-bottom: 0.5rem; }
.foot-note { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.95rem; }
.copyright { margin: 0; color: #a49d94; font-size: 0.78rem; letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .gallery { columns: 2; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; order: 2; }
  .hero-photo { order: 1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .site-nav { gap: 1.6rem; }
  .site-nav a { letter-spacing: 0.14em; }
  .wordmark-sm { font-size: 1.5rem; }
  .gallery { columns: 1; }
  .btn { display: block; text-align: center; }
  .order-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .btn, .site-nav a { transition: none; }
}
