:root {
  /* Thrift to Table: a lipstick-red awning up top, harbour-navy type on fog, and a manila thrift tag on every price.
     Layout: left-aligned editorial columns; the scalloped red masthead is the one loud moment on each page. */
  --lipstick: #B0142C;
  --lipstick-deep: #8C0F23;
  --harbour: #15233B;
  --fog: #EDF0F1;
  --tag: #EFDDB5;
  --brass: #C9A13B;
  --white: #FFFFFF;
  --ink-soft: #46506A;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hand: "Caveat Brush", "Marker Felt", "Segoe Print", cursive;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fog);
  color: var(--harbour);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.015em; }
h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.01em; }
h3 { font-size: clamp(23px, 2.2vw, 28px); }
p { margin: 0; max-width: var(--measure); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--white); color: var(--harbour); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.muted { color: var(--ink-soft); }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--harbour); color: var(--fog); }
.section--navy .muted { color: #B9C1CE; }

/* Preview notice (remove at launch by setting PREVIEW = False in the build) */
.preview {
  background: var(--tag);
  color: var(--harbour);
  font-size: 14px;
  line-height: 1.4;
  padding: 8px var(--gutter);
  text-align: center;
  max-width: none;
}

/* Header */
.site-header { background: var(--lipstick); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: 27px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.nav a[aria-current="page"] { border-bottom-color: var(--tag); }

/* Red masthead with a scalloped awning edge */
.masthead {
  position: relative; z-index: 1;
  background: var(--lipstick); color: var(--white);
  padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 7vw, 104px);
}
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 18px;
  background: radial-gradient(circle at 13px 0, var(--lipstick) 12.5px, transparent 13px) 0 0 / 26px 18px repeat-x;
}
.masthead .lede { color: #FBE6EA; }
.page-head { max-width: 860px; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 16px/1.1 var(--body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn--light { background: var(--white); color: var(--lipstick); }
.btn--light:hover { background: var(--tag); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--red { background: var(--lipstick); color: var(--white); }
.btn--red:hover { background: var(--lipstick-deep); }
.btn--outline { border-color: var(--harbour); color: var(--harbour); }
.btn--outline:hover { background: rgba(21, 35, 59, 0.06); }
.btn--brass { background: var(--brass); color: var(--harbour); }
.btn--brass:hover { background: var(--tag); }
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.social[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* Home hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.hero h1 { font-style: italic; font-weight: 700; }
.hero .stack { gap: 24px; }

/* Photo frames (placeholders until the real shots go in) */
.frame {
  position: relative; margin: 0;
  background: var(--white); padding: 12px 12px 46px;
  box-shadow: 0 18px 40px rgba(21, 35, 59, 0.26);
  transform: rotate(var(--r, -2.5deg));
}
.frame--small { padding-bottom: 12px; box-shadow: 0 12px 26px rgba(21, 35, 59, 0.18); }
.frame__img {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: repeating-linear-gradient(135deg, #DCE1E6 0 14px, #D3D9DF 14px 28px);
  color: var(--ink-soft);
}
.frame--square .frame__img { aspect-ratio: 1; }
.frame__note { font-family: var(--hand); font-size: 22px; line-height: 1.2; }
.frame figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 10px;
  font-family: var(--hand); font-size: 21px; color: var(--harbour);
}

/* Thrift tag */
.tag {
  display: inline-flex; flex-direction: column; gap: 1px;
  background: var(--tag); color: var(--harbour);
  padding: 10px 20px 11px 36px; line-height: 1.15;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 17px 50%, transparent 4.5px, #000 5px);
  mask: radial-gradient(circle at 17px 50%, transparent 4.5px, #000 5px);
}
.tag__label { font-size: 14px; font-weight: 600; }
.tag__price { font-family: var(--hand); font-size: 30px; line-height: 1.05; }
.tag__note { font-size: 13px; color: var(--ink-soft); }

/* The tag hanging off the hero photo; it swings once on load */
.hang {
  position: absolute; right: -66px; top: 68%;
  transform-origin: -26px 50%; transform: rotate(14deg);
  filter: drop-shadow(0 6px 8px rgba(21, 35, 59, 0.25));
}
.hang::before {
  content: ""; position: absolute; left: -26px; top: 50%;
  width: 44px; height: 1.5px; background: var(--harbour);
}
.hang .tag { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hang { animation: swing 2.6s ease-out 0.5s 1 both; }
}
@keyframes swing {
  0% { transform: rotate(-8deg); }
  30% { transform: rotate(24deg); }
  55% { transform: rotate(8deg); }
  78% { transform: rotate(17deg); }
  100% { transform: rotate(14deg); }
}

/* How an episode works */
.episode {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: clamp(40px, 6vw, 88px); align-items: start; margin-top: 48px;
}
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
}
.steps li {
  counter-increment: step;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 2px solid currentColor;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 600; font-size: 60px; line-height: 0.9;
  color: var(--lipstick);
}
.steps p { color: var(--ink-soft); }
.section--navy .steps li::before { color: var(--brass); }
.section--navy .steps p { color: #C9D0DB; }
.steps--compact { grid-template-columns: 1fr; gap: 28px; }
.steps--compact li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
.steps--compact li::before { grid-row: span 2; font-size: 48px; }

/* Receipt */
.receipt-wrap { filter: drop-shadow(0 14px 22px rgba(21, 35, 59, 0.18)); transform: rotate(1.5deg); }
.receipt {
  background: var(--white); padding: 28px 26px 44px;
  font-size: 16px; font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
.receipt__shop { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; text-align: center; }
.receipt h3 { font-family: var(--body); font-size: 17px; font-weight: 700; text-align: center; margin-top: 4px; }
.receipt__sub { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 2px auto 0; }
.lines { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1.5px dashed rgba(21, 35, 59, 0.4); display: grid; gap: 6px; }
.lines li { display: flex; align-items: baseline; gap: 8px; }
.lines li span:first-child { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lines li span:first-child::after { content: ""; flex: 1; border-bottom: 1.5px dotted rgba(21, 35, 59, 0.45); transform: translateY(-4px); }
.receipt__total {
  display: flex; justify-content: space-between; gap: 12px; font-weight: 700;
  margin-top: 12px; padding-top: 10px; border-top: 3px double var(--harbour);
}
.receipt__menu { margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed rgba(21, 35, 59, 0.4); }
.receipt__menu ul { margin: 6px 0 0; padding-left: 18px; }
.receipt__thanks { font-family: var(--hand); font-size: 22px; text-align: center; margin: 18px auto 0; color: var(--lipstick); }

/* Split layouts */
.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.split--top { align-items: start; }
.tags { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tags .tag:nth-child(1) { transform: rotate(2deg); }
.tags .tag:nth-child(2) { margin-left: 40px; transform: rotate(-2deg); }
.tags .tag:nth-child(3) { margin-left: 14px; transform: rotate(1deg); }

/* Crew */
.crew { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.crew li { display: flex; flex-direction: column; gap: 10px; }
.crew h3 { margin-top: 18px; }
.crew p { color: var(--ink-soft); }

/* Sunday Supper sign-up */
.letter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: end;
  background: var(--white); border: 2px solid var(--harbour);
  padding: clamp(28px, 4vw, 52px);
}
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; }

/* Rows: packages, episode lineup, partnership formats */
.rows { list-style: none; margin: 44px 0 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 48px; align-items: center;
  padding: 30px 0; border-top: 2px solid var(--harbour);
}
.row:last-child { border-bottom: 2px solid var(--harbour); }
.row p { color: var(--ink-soft); margin-top: 8px; }
.row--addon { border-top-style: dashed; }
.row .tag { justify-self: end; min-width: 190px; }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 10px; height: 10px; background: var(--lipstick); transform: rotate(45deg);
}
.section--navy .checks li::before { background: var(--brass); }
.facts { margin: 0; display: grid; gap: 22px; }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-top: 16px; border-top: 2px solid var(--harbour); }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* Callout */
.note {
  border-left: 6px solid var(--brass); background: var(--white);
  padding: 22px 26px; margin-top: 36px; max-width: 760px;
}

/* Forms */
.form { display: grid; gap: 20px; margin-top: 36px; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
.req { color: var(--lipstick); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--harbour);
  background: var(--white); border: 2px solid var(--harbour); border-radius: 6px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; }
.form button { justify-self: start; }
.letter .form { margin-top: 0; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status[data-state="ok"] { color: #1E6B45; }
.form-status[data-state="warn"] { color: #7A5200; }
.form-status[data-state="error"] { color: var(--lipstick); }

/* FAQ */
.faq { margin-top: 36px; display: grid; }
.faq details { border-top: 2px solid var(--harbour); padding: 18px 0; }
.faq details:last-child { border-bottom: 2px solid var(--harbour); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 28px; color: var(--lipstick); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--harbour); color: var(--fog); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.site-footer h2 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--tag); }
.site-footer .wordmark { font-size: 30px; }
.site-footer a { text-decoration: none; }
.site-footer a[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(237, 240, 241, 0.2); font-size: 14px; color: #AEB6C4; max-width: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .episode, .split, .letter { grid-template-columns: 1fr; }
  .hero .frame { max-width: 320px; margin: 8px 76px 0 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .steps, .form .pair { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .tag { justify-self: start; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .crew { grid-template-columns: 1fr; }
  .crew .frame { max-width: 300px; }
  .tags .tag:nth-child(2) { margin-left: 20px; }
}

/* Real photos inside frames */
.frame__img--photo { padding: 0; background: #1b1b1b; overflow: hidden; }
.frame__img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dishes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.dishes .frame figcaption { font-size: 19px; }
@media (max-width: 900px) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.dishes .frame { padding-bottom: 44px; }

/* Kitchen gallery on Book Kayla */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.gallery .frame { padding-bottom: 44px; }
.gallery .frame figcaption { font-size: 19px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* Tally form embeds */
.tally-embed { display: block; width: 100%; border: 0; margin-top: 28px; }
.letter .tally-embed { margin-top: 0; }
