/* Chef Tash House — a keepsake booklet: pink cover, letter, menus from recent tables, brown back cover */
:root {
  --pink: #f4c9d6;
  --pink-deep: #e5aec0;
  --brown: #3e2723;
  --paper: #fdf8f4;
  --card: #fffdfb;
  --berry: #9c4a5d;
  --rule: rgba(62, 39, 35, 0.28);
  --serif: "Labrada", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brown);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
}
img { display: block; max-width: 100%; }
h1, h2, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section, footer { scroll-margin-top: 1.5rem; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; background: var(--card); padding: 0.65rem 1rem; }
.skip-link:focus { top: 1rem; }

.small-label {
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--berry);
}
.small-label.centered { text-align: center; }
.small-label.light { color: var(--pink); margin-bottom: 0.4rem; }

/* ---- Front cover ---- */
.cover {
  min-height: 100svh;
  padding: 1.75rem 24px 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--pink);
  text-align: center;
}
.cover-nav {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.cover-nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.cover-nav a:hover { border-bottom-color: currentColor; }

.cover-card {
  margin: auto;
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wordmark {
  max-width: 12ch;
  font: italic 900 clamp(3.1rem, 10.5vw, 8.2rem)/0.95 var(--serif);
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.cover-sub {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.portrait { margin-top: clamp(2.75rem, 6vh, 4.25rem); }
.portrait-disc {
  display: block;
  width: clamp(280px, 40vw, 460px);
  aspect-ratio: 1;
}
.portrait-disc img { width: 100%; height: 100%; object-fit: contain; }
.portrait figcaption {
  margin-top: 1.25rem;
  font: italic 500 1.05rem/1.4 var(--serif);
}
.come-in {
  margin-top: clamp(2.5rem, 5vh, 3.75rem);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.come-in:hover { border-bottom-color: currentColor; }

/* Cover load-in */
.cover-nav, .wordmark, .cover-sub, .portrait, .come-in { animation: rise 0.9s ease both; }
.wordmark { animation-delay: 0.08s; }
.cover-sub { animation-delay: 0.22s; }
.portrait { animation-delay: 0.36s; }
.come-in { animation-delay: 0.5s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---- Scalloped edges between panels ---- */
.scallop { height: 22px; }
.scallop-pink {
  background-image: radial-gradient(circle at 11px -7px, var(--pink) 14px, rgba(244, 201, 214, 0) 15px);
  background-size: 22px 22px;
}
.scallop-paper {
  background-color: var(--brown);
  background-image: radial-gradient(circle at 11px -7px, var(--paper) 14px, rgba(253, 248, 244, 0) 15px);
  background-size: 22px 22px;
}

/* ---- The letter ---- */
.letter {
  min-height: clamp(390px, 52svh, 560px);
  padding: clamp(5.5rem, 10vw, 8rem) 24px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: visible;
}
.letter-inner { width: 100%; max-width: 60rem; margin: 0 auto; position: relative; z-index: 1; }
.salutation {
  font: italic 600 clamp(2.5rem, 5vw, 3.7rem)/1.1 var(--serif);
  letter-spacing: -0.03em;
  margin-bottom: 2.25rem;
}
.letter p.lead { font-size: clamp(1.16rem, 2vw, 1.35rem); }
.letter .lead, .letter .lead ~ p { max-width: 37rem; }
.letter .lead ~ p { margin-top: 1.4rem; }
.chili-decoration {
  width: clamp(160px, 19vw, 250px);
  height: auto;
  position: absolute;
  z-index: 3;
  right: max(4vw, 24px);
  bottom: clamp(-90px, -6vw, -62px);
  filter: drop-shadow(0 12px 14px rgba(62, 39, 35, 0.14));
  animation: chili-float 4.5s ease-in-out infinite;
}
@keyframes chili-float {
  0%, 100% { transform: translateY(0) rotate(-13deg); }
  50% { transform: translateY(-10px) rotate(-9deg); }
}

/* ---- Menus from recent tables ---- */
.tables {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: #fae7ed;
  overflow: hidden;
}
.tables .small-label { margin-bottom: 0; text-align: center; }
.strip-wrap { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.menu-strip {
  list-style: none;
  margin: 0;
  padding: 1.25rem max(24px, calc((100vw - 72rem) / 2)) 1.75rem;
  display: flex;
  align-items: center;
  gap: clamp(3.5rem, 7vw, 7rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-deep) transparent;
}
.menu-group {
  width: clamp(340px, 48vw, 610px);
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.menu-group--solo { width: clamp(250px, 29vw, 365px); }
.menu-cluster {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(120px, 0.54fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
}
.menu-group--solo .menu-cluster { display: block; }
.menu-art,
.food-photo {
  display: block;
  background: var(--card);
  border: 1px solid rgba(62, 39, 35, 0.14);
  box-shadow: 0 14px 32px rgba(62, 39, 35, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-art { padding: 8px; transform: rotate(-1.1deg); }
.menu-group:nth-child(even) .menu-art { transform: rotate(1.1deg); }
.menu-art img { width: 100%; height: auto; }
.food-photos { display: grid; gap: clamp(0.75rem, 2vw, 1.25rem); }
.food-photos--single { align-self: center; }
.food-photo { padding: 6px; }
.food-photo:first-child { transform: rotate(2.6deg); }
.food-photo:nth-child(2) { transform: rotate(-2.3deg); }
.food-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.menu-art:hover,
.food-photo:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 20px 40px rgba(62, 39, 35, 0.2);
}
.menu-group > p {
  margin-top: 1.35rem;
  font: italic 500 1rem/1.4 var(--serif);
  text-align: center;
}
.strip-hint {
  margin: 0.25rem max(24px, calc((100vw - 72rem) / 2)) 0;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--berry);
}

/* ---- Ways i can cook ---- */
.ways { padding: clamp(4rem, 8vw, 6rem) 24px clamp(5rem, 10vw, 8.5rem); }
.ways-inner { max-width: 60rem; margin: 0 auto; }
.ways-list { max-width: 37rem; }
.ways-list dt { font: italic 600 1.25rem/1.3 var(--serif); }
.ways-list dt:not(:first-child) { margin-top: 1.9rem; }
.ways-list dd { margin-top: 0.35rem; font-size: 0.97rem; }
.ways-note { max-width: 37rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.ways-note a { color: var(--berry); text-underline-offset: 4px; }
.ways-note a:hover { color: var(--brown); }

/* ---- Back cover ---- */
.close {
  padding: clamp(4.5rem, 9vw, 7.5rem) 24px clamp(2.5rem, 5vw, 4rem);
  background: var(--brown);
  color: var(--pink);
  text-align: center;
}
.close h2 {
  font: italic 600 clamp(2.6rem, 6vw, 4.4rem)/1.05 var(--serif);
  letter-spacing: -0.035em;
}
.close-copy { max-width: 26rem; margin: 1.5rem auto 2.5rem; color: rgba(253, 248, 244, 0.85); }
.email {
  font: italic 500 clamp(1.25rem, 2.8vw, 1.7rem)/1.3 var(--serif);
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.email:hover { color: var(--pink); }
.signoff {
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
  font: italic 900 clamp(2.8rem, 6vw, 4.6rem)/1 var(--serif);
  letter-spacing: -0.05em;
  transform: rotate(-2.5deg);
}
.colophon {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 201, 214, 0.25);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(244, 201, 214, 0.75);
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cover { padding-top: 1.4rem; }
  .cover-nav { gap: 1.1rem 1.6rem; font-size: 0.78rem; }
  .portrait-disc { width: min(82vw, 350px); }
  .letter { min-height: 430px; padding: 5.5rem 24px 7rem; align-items: start; }
  .chili-decoration { width: 155px; right: 3vw; bottom: -58px; }
  .menu-strip { gap: 3.5rem; scroll-snap-type: x mandatory; }
  .menu-group { width: min(88vw, 430px); }
  .menu-group--solo { width: min(72vw, 330px); }
  .menu-cluster { grid-template-columns: minmax(165px, 1fr) minmax(95px, 0.5fr); gap: 0.65rem; }
  .food-photos { gap: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .cover-nav, .wordmark, .cover-sub, .portrait, .come-in { animation: none; }
  .chili-decoration { animation: none; transform: rotate(-13deg); }
  .reveal { opacity: 1; transform: none; }
}
