/* Share a Meal — shared styles for every page */
:root {
  --black: #000;
  --ink: #1d1b19;
  --sand: #ece8e3;
  --sand-line: #cfc8bf;
  --brown: #866e55;
  --gold: #9a7432;
  --gold-light: #b99558;
  --cream: #f3ead8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --plain: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em, .accent { font-style: italic; color: var(--gold); }
.on-dark em, .on-dark .accent { color: var(--gold-light); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
.label { font-family: var(--sans); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.on-dark .label { color: var(--gold-light); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header: hides while scrolling down, returns on scroll up */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; transition: transform .45s ease; }
.site-header.hide { transform: translateY(-100%); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); min-height: 84px; }
.site-header .logo img { height: 46px; width: auto; }
.site-header nav { display: flex; gap: 30px; font-size: 15px; }
.site-header nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.site-header nav a:hover { color: var(--gold-light); }
.site-header nav a[aria-current="page"] { color: var(--cream); border-color: var(--gold-light); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font: 14px var(--sans); letter-spacing: .1em; cursor: pointer; }

/* Logo lockup used in the hero and footer */
.lockup { text-align: center; color: #fff; }
.lockup img { width: min(520px, 76vw); height: auto; margin: 0 auto; }
.lockup .rule { width: min(526px, 77vw); height: 1px; background: rgba(255,255,255,.8); margin: 2px auto 10px; }
.lockup .by { font-family: var(--serif); font-size: clamp(16px, 1.45vw, 21px); color: var(--cream); }
.lockup .since { font-size: 12px; letter-spacing: .5em; margin-top: 10px; color: #e8e2d6; }

/* Reveal-on-scroll animations */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.grow { transform: scale(.86); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .15s; }
.reveal[data-delay="2"] { transition-delay: .3s; }
.reveal[data-delay="3"] { transition-delay: .45s; }
.draw { transform-origin: left center; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
.in .draw, .draw.in { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .draw { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; border: 1px solid #b9b2a8; background: transparent; color: var(--ink); font: 500 15px var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill .chev { font-size: 12px; }
.pill.dark { background: #2a2826; color: #fff; border-color: #2a2826; }
.pill.dark:hover { background: var(--gold); border-color: var(--gold); }
.on-dark .pill { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .pill:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: var(--black); padding: 140px var(--gutter) 70px; }
.site-footer .lockup { opacity: .25; transition: opacity 1.6s ease; }
.site-footer .lockup.in { opacity: 1; }
.site-footer .lockup img { width: min(480px, 80vw); }
.site-footer .lockup .rule { width: min(486px, 72vw); }
.site-footer nav { display: flex; justify-content: center; gap: 28px; margin-top: 46px; font-size: 14px; color: #bdb6aa; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-light); }

/* Pop-up forms */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--sand); padding: clamp(28px, 5vw, 56px); transform: translateY(30px); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.modal.open .panel { transform: none; }
.modal .close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.modal .intro { font-size: 15px; line-height: 1.6; color: #4b4741; margin-bottom: 26px; }

/* Form fields: underline style matching the contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; font-family: var(--plain); }
.form .field { display: flex; flex-direction: column; gap: 10px; }
.form .full { grid-column: 1 / -1; }
.form label, .form legend { font-size: 15px; color: #2a2826; }
.form input, .form select, .form textarea { font: 16px var(--plain); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #6f6a63; padding: 8px 2px; outline: none; border-radius: 0; }
.form textarea { min-height: 90px; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form fieldset legend { width: 100%; margin-bottom: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.form .check input { accent-color: var(--gold); width: 16px; height: 16px; }
.form button[type="submit"] { justify-self: start; min-width: 228px; padding: 13px 28px; border: 0; border-radius: 999px; background: #2a2826; color: #fff; font: 16px var(--plain); cursor: pointer; transition: background .3s; }
.form button[type="submit"]:hover { background: var(--gold); }
.form button[disabled] { opacity: .6; cursor: wait; }
.form .err { grid-column: 1 / -1; color: #9b2c1f; font-size: 14px; min-height: 1em; }
.form-done { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); padding: 20px 0; }

@media (max-width: 760px) {
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--black); padding: 8px var(--gutter) 22px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 0; }
  .menu-btn { display: block; }
  .site-header .logo img { height: 38px; }
  .form { grid-template-columns: 1fr; }
  .label { font-size: 13px; }
}
