/* An open notebook: the host's letter on the left page, a ring-bound recipe book on the right.
   The tabs on the recipe book open the menu, November booking, the December waitlist and the details. */
:root {
  --green: #2D4628;
  --ink: #2A3526;
  --cream: #FDFBF2;
  --paper: #F5F0E4;
  --sheet: #FBF9F3;
  --wine: #712424;
  --muted: #6B7563;
  --line: rgba(45, 70, 40, .16);
  /* Paper grain and faint fibres for the recipe book's pages */
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18  0 0 0 0 .22  0 0 0 0 .14  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .38  0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23f)' opacity='.35'/%3E%3C/svg%3E");
  --butter: #F3D77A;
  --beet: #E8A3B0;
  --sage: #B7D0A5;
  --sky: #BFD2E3;
  --plum: #D8C4E2;
  --serif: Cochin, "EB Garamond", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --sign: "Homemade Apple", "Snell Roundhand", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper) radial-gradient(rgba(45,70,40,.13) 1px, transparent 1.6px) 0 0 / 24px 24px;
  color: var(--ink);
  font: 400 17px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden], .hidden { display: none !important; }
/* Netlify adds a "Powered by Netlify" badge to free-plan projects; keep it off the page */
#nl-badge-frame, iframe[title="Powered by Netlify"] { display: none !important; }

.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); height: 100vh; overflow: hidden; }

/* ---------- The letter ---------- */
.letter { display: flex; flex-direction: column; justify-content: center; padding: 4vh clamp(32px, 5vw, 80px); overflow: hidden; }
.letter article { max-width: 560px; margin: 0 auto; }
.logo { display: block; width: min(280px, 65%); height: auto; margin-bottom: 4.5vh; }
.letter p { margin: 0 0 .9em; font-size: clamp(16px, 2.3vh, 20px); line-height: 1.65; }
.letter .hello { font-weight: 700; font-size: clamp(18px, 2.6vh, 22px); margin-bottom: .8em; }
.letter .signoff { margin-top: 1.4em; margin-bottom: .1em; }
.signature {
  display: inline-block; margin: 6px 0 0 !important; padding: 8px 10px 14px 0;
  font-family: var(--sign); font-size: clamp(22px, 3.4vh, 30px) !important; line-height: 1.6 !important; color: var(--wine);
  transform: rotate(-4deg); transform-origin: left center;
  animation: write 2.4s cubic-bezier(.5,.1,.4,1) .8s both;
}
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
.ig { display: block; width: fit-content; margin-top: 18px; font-size: 15px; color: var(--muted); text-decoration: none; }
.ig b { font-weight: 400; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.ig:hover b { color: var(--green); }
.page-foot a { color: inherit; text-decoration: none; }
.page-foot a:hover { color: var(--wine); }
.scribble { font-family: var(--hand); font-size: 26px; line-height: 1.2; color: var(--wine); }
.scribble-mobile { display: none; }

/* ---------- The recipe book ---------- */
.book { position: sticky; top: 0; height: 100vh; }
.page {
  position: absolute; top: 24px; bottom: 24px; left: 40px; right: 66px;
  display: flex; flex-direction: column; overflow: auto;
  border-radius: 4px 10px 10px 4px;
  background: var(--texture), radial-gradient(ellipse at 30% 20%, #FFFDF8, transparent 70%), var(--sheet);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 50px rgba(45,70,40,.14), inset 0 0 0 1px rgba(45,70,40,.08), inset 0 0 60px rgba(196,170,120,.18);
}
.rings { position: absolute; z-index: 2; top: 24px; bottom: 24px; left: 26px; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; }
.rings i {
  display: block; width: 30px; height: 14px; border-radius: 8px;
  background: linear-gradient(180deg, #DDD9CE, #A9A597 60%, #CFCBC0);
  box-shadow: 0 2px 3px rgba(0,0,0,.18);
}

.tabs { position: absolute; z-index: 1; top: 48px; right: 22px; display: flex; flex-direction: column; gap: 8px; }
.tabs button {
  writing-mode: vertical-rl; padding: 14px 9px; border: 0; border-radius: 0 10px 10px 0; cursor: pointer;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  box-shadow: 2px 3px 8px rgba(45,70,40,.12);
  transform: translateX(-6px); transition: transform .25s cubic-bezier(.3,1.5,.5,1), filter .2s;
}
.tabs button:hover { transform: translateX(0); }
.tabs [aria-selected=true] { transform: translateX(4px); filter: saturate(1.25); }
.tabs .short { display: none; }
.tab-menu { background: var(--butter); }
.tab-nov { background: var(--beet); }
.tab-dec { background: var(--sage); }
.tab-info { background: var(--sky); }
.tab-past { background: var(--plum); }

.view { flex: 1 0 auto; padding: 52px 56px 40px 104px; text-align: center; animation: view-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
.page-foot {
  display: flex; justify-content: space-between; margin: 0 28px 0 92px; padding: 12px 0 16px;
  border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* The place setting on the first page */
#v-home { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.setting { position: relative; width: 380px; height: 250px; }
.setting .plate { position: absolute; left: 90px; top: 25px; width: 200px; height: 200px; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.setting:hover .plate { transform: rotate(-14deg) scale(1.03); }
.setting .plate img { width: 64%; height: auto; }
.napkin { position: absolute; left: 6px; top: 40px; width: 70px; height: 170px; border-radius: 4px; background: var(--wine); transform: rotate(-4deg); box-shadow: inset -8px 0 0 rgba(0,0,0,.08); }
.fork, .knife { position: absolute; top: 65px; width: 20px; height: 120px; color: #9C9886; }
.fork { left: 31px; transform: rotate(-4deg); color: #E9E5D8; }
.knife { left: 304px; }
.glass { position: absolute; right: 8px; top: 0; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(191,210,227,.55) 60%, rgba(150,170,190,.45)); box-shadow: 0 6px 12px rgba(45,70,40,.12), inset 0 0 0 1.5px rgba(255,255,255,.8); }
.note { margin: 24px 0 0; font-family: var(--hand); font-size: 32px; line-height: 1.05; color: var(--green); transform: rotate(-3deg); }
.arrow { position: absolute; right: 18px; top: 40px; width: 150px; color: var(--green); opacity: .7; }

/* Plates */
.plate {
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 55%, #EEEADF 56.5%, #fff 59%, #fff 100%);
  box-shadow: 0 12px 26px rgba(45,70,40,.16), inset 0 0 0 1px rgba(45,70,40,.08), inset 0 0 60px rgba(196,170,120,.18);
}
.dish { position: relative; display: block; width: 150px; height: 150px; margin: 0 auto 18px; padding: 0; border: 0; background: none; }
.plate.small { width: 150px; height: 150px; align-content: center; gap: 0; }
.plate.small b { font-weight: 400; font-size: 52px; line-height: .9; color: var(--green); }
.plate.small i { font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--wine); }
.cloche-dish { margin-top: 40px; cursor: pointer; }
.cloche {
  position: absolute; left: 6px; right: 6px; bottom: 44px; height: 92px;
  border-radius: 70px 70px 8px 8px / 80px 80px 8px 8px;
  background: linear-gradient(115deg, #F4F2EC 0%, #D5D1C5 40%, #B2AEA2 75%, #CECABE 100%);
  box-shadow: 0 10px 18px rgba(45,70,40,.2), inset -8px -4px 14px rgba(0,0,0,.08);
  transform-origin: 85% 100%; transition: transform .6s cubic-bezier(.3,1.4,.5,1);
}
.cloche::before { content: ""; position: absolute; left: 50%; top: -12px; width: 22px; height: 14px; margin-left: -11px; border-radius: 10px 10px 4px 4px; background: #B2AEA2; }
.cloche::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 8px; border-radius: 4px; background: #A9A597; }
.cloche-dish:hover .cloche, .cloche-dish.lifted .cloche { transform: translate(18px, -54px) rotate(14deg); }

/* Past gatherings: prints scattered and overlapping, like photos left on the table */
.pile { --k: 1.3; position: relative; max-width: 560px; height: 420px; margin: 18px auto 0; }
.print {
  position: absolute; left: 50%; top: 50%; z-index: var(--z); width: 176px; height: 214px; margin: -107px 0 0 -88px;
  padding: 9px 9px 30px; border: 0; background: #fff; cursor: pointer;
  box-shadow: 0 8px 18px rgba(45,70,40,.18), 0 1px 2px rgba(0,0,0,.08);
  transform: translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k))) rotate(var(--r));
  transition: transform .55s cubic-bezier(.3,1.3,.5,1), opacity .3s, filter .3s;
}
.print img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* An empty frame, for a photo still to come */
.print.empty span {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(45,70,40,.12) 0 1px, transparent 1px 7px);
  font-family: var(--hand); font-size: 20px; color: var(--muted);
}
.print:hover { z-index: 90; transform: translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k) - 8px)) rotate(calc(var(--r) / 2)); }
.has-pick .print:not(.picked) { opacity: .22; filter: grayscale(.7) blur(1px); }
.print.picked { z-index: 100; opacity: 1; transform: translateY(-4px) rotate(-1.5deg) scale(var(--big, 1.6)); box-shadow: 0 24px 50px rgba(45,70,40,.3); }
/* A narrow page gets smaller prints; site.js spreads them to fit the width */
.pile.narrow { height: 400px; }
.pile.narrow .print { width: 124px; height: 152px; margin: -76px 0 0 -62px; padding: 7px 7px 24px; }
.pile.narrow .print.picked { transform: rotate(-1.5deg) scale(var(--big, 1.55)); }
.pile-hint { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.pile-hint[hidden] { display: none; }
.pile-hint .arrow { position: static; order: -1; width: 70px; transform: rotate(-24deg); }
.pile-hint .note { margin: 0; font-size: 26px; text-align: left; }
.caption { margin: 10px auto 0; max-width: 34ch; font-family: var(--hand); font-size: 24px; line-height: 1.15; color: var(--green); animation: view-in .4s ease; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pager button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--green); }
.pager button:hover { border-color: var(--green); }

/* ---------- Type inside the book ---------- */
.kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.view h2 { margin: 0; font-weight: 400; font-size: 38px; line-height: 1.08; color: var(--green); }
.view .sub { margin: 6px 0 22px; font-style: italic; font-size: 18px; color: var(--muted); }
.lead { margin: 0 0 16px; font-size: 20px; line-height: 1.4; }

.courses { list-style: none; max-width: 520px; padding: 0; margin: 0 auto; }
.courses li { padding: 14px 0; border-top: 1px dotted rgba(45,70,40,.3); }
.courses li:first-child { border-top: 0; padding-top: 0; }
.courses small { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.courses b { display: block; margin-top: 2px; font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--green); }
.courses span { display: block; max-width: 42ch; margin: 4px auto 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.courses em { display: block; margin-top: 4px; font-size: 13.5px; color: var(--wine); }
.notice { max-width: 520px; margin: 18px auto 20px; padding: 14px 18px; border-radius: 10px; background: rgba(113,36,36,.07); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.notice b { display: block; font-weight: 400; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 440px; margin: 0 auto 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt, .know dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 19px; color: var(--green); }

.know { max-width: 460px; margin: 10px auto 0; text-align: left; }
.know div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dotted rgba(45,70,40,.3); }
.know div:first-child { border-top: 0; }
.know dt { padding-top: 4px; color: var(--wine); }
.know dd { margin: 0; font-size: 17px; line-height: 1.45; }

/* ---------- Forms ---------- */
.view form, #pay { max-width: 440px; margin: 0 auto; text-align: left; }
#pay { text-align: center; }
.switch { display: grid; grid-template-columns: 1fr 1fr; max-width: 440px; margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: rgba(45,70,40,.08); }
.switch button { padding: 10px 8px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--muted); font-size: 15.5px; transition: background .2s, color .2s; }
.switch [aria-selected=true] { background: var(--green); color: var(--cream); box-shadow: 0 4px 12px rgba(45,70,40,.25); }
.field { position: relative; margin-bottom: 10px; }
.field input {
  display: block; width: 100%; min-height: 54px; margin: 0; padding: 20px 14px 5px;
  border: 1px solid rgba(45,70,40,.25); border-radius: 10px; background: #fff; color: var(--green);
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,70,40,.14); }
.field label {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #85907A; pointer-events: none; transition: top .18s, font-size .18s, color .18s, letter-spacing .18s;
}
.field label i { font-style: normal; opacity: .75; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 15px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.plates { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 4px 0 16px; padding: 0; border: 0; }
.plates legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plate-row { display: flex; gap: 8px; }
.plate-row label { position: relative; cursor: pointer; }
.plate-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.plate-row span {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(45,70,40,.28); font-size: 18px; color: var(--muted);
  transition: background .2s, color .2s, transform .25s cubic-bezier(.3,1.6,.5,1);
}
.plate-row span::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(45,70,40,.18); }
.plate-row .lit span { background: var(--green); color: var(--cream); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(45,70,40,.25); }
.plate-row .lit span::before { border-color: rgba(253,251,242,.35); }
.plate-row input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.total { margin: 0; text-align: right; font-size: 13px; line-height: 1.35; color: var(--muted); }
.total b { display: block; font-weight: 400; font-size: 28px; line-height: 1; color: var(--green); }

.chips { margin: 4px 0 14px; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips label { position: relative; display: inline-block; margin: 0 4px 8px 0; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.2px rgba(45,70,40,.28); font-size: 15px; transition: background .15s, color .15s; }
.chips input:checked + span { background: var(--green); color: var(--cream); box-shadow: none; }
.chips input:checked + span::before { content: "✓"; font-size: 12px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 440px; min-height: 54px; margin: 0 auto;
  padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: var(--cream); text-decoration: none; font-size: 17px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #1F321B; transform: translateY(-1px); }
.btn.wine { background: var(--wine); box-shadow: 0 10px 24px rgba(113,36,36,.25); }
.btn.wine:hover { background: #5E1D1D; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { padding: 0; border: 0; background: none; cursor: pointer; color: var(--green); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.fine { margin: 14px auto 0; max-width: 360px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fine b { color: var(--wine); font-weight: 400; }
.error { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--wine); color: var(--cream); font-size: 15px; text-align: center; }

.thanks { text-align: center; padding: 10px 0 4px; }
.seal {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto;
  border-radius: 48% 52% 50% 46%; background: var(--wine); color: var(--cream); font-size: 22px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 4px rgba(253,251,242,.14), 0 4px 10px rgba(0,0,0,.25);
  animation: press .7s cubic-bezier(.3,1.4,.5,1) both;
}
@keyframes press { from { opacity: 0; transform: scale(2.4) rotate(-40deg); } 60% { opacity: 1; transform: scale(.9) rotate(-6deg); } to { transform: rotate(-10deg); } }
.thanks h3 { margin: 18px 0 0; font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--green); }
.thanks p { margin: 10px auto 0; max-width: 330px; color: var(--muted); }

/* ---------- Phones and tablets: the letter, then the book below it ---------- */
@media (max-width: 960px) {
  .spread { display: block; height: auto; overflow: visible; }
  .letter { display: block; padding: 44px 24px 24px; }
  .logo { margin-bottom: 30px; }
  .letter p { font-size: 18px; }
  .letter .hello { font-size: 20px; }
  .signature { font-size: 28px !important; }
  .scribble-mobile { display: block; margin: 18px 0 0; text-align: center; transform: rotate(-2deg); }
  .book { position: relative; height: auto; padding: 0 12px 36px; }
  .rings { display: none; }
  .tabs { position: static; flex-direction: row; gap: 5px; padding: 0 6px; }
  .tabs button { writing-mode: horizontal-tb; flex: 1 1 0; min-width: 0; padding: 9px 4px 11px; line-height: 1.25; border-radius: 10px 10px 0 0; font-size: 10px; letter-spacing: .04em; transform: translateY(4px); box-shadow: none; }
  .tabs button:hover { transform: translateY(2px); }
  .tabs [aria-selected=true] { transform: translateY(0); }
  .page {
    position: relative; inset: auto; min-height: 64vh; border-radius: 10px;
  }
  .view { padding: 36px 20px 32px; }
  .page-foot { margin: 0 20px; }
  .arrow { display: none; }
  .setting { transform: scale(.82); margin: -20px 0; }
  .view h2 { font-size: 31px; }
  .pile-hint .arrow { display: block; }
}
@media (max-width: 420px) {
  .tabs .full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabs .short { display: inline; }
  .setting { transform: scale(.72); margin: -34px 0; }
  .plate-row span { width: 40px; height: 40px; font-size: 16px; }
  .know div { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { font-size: 16px; }
  .page-foot span + span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .signature, .view, .seal, .caption { animation: none; }
  .print { transition: none; }
  .setting .plate, .cloche { transition: none; }
}
