/* Different 8 Society
   Palette and type come from the brand brief. Change them here only. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  --teal: #0F3D3E;
  --rust: #B5482C;
  --rust-dark: #9E3E25;
  --cream: #F6EBD9;
  --tan: #D8C3A5;
  --paper: #FBF4E7;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --plate: clamp(29px, 9.4vw, 62px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
.defs { position: absolute; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 10.5vw, 4.5rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 7vw, 3rem); }
h3 { font-size: 1.6rem; }

.wrap { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.narrow { max-width: 40rem; }
.section { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.lede { max-width: 34rem; margin-top: 1rem; }

/* Month stripe */
.stripe { display: flex; height: 8px; }
.stripe span { flex: 1; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1.0625rem/1.2 var(--sans);
  color: var(--cream);
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }

/* Handwritten touches */
.hand { font-family: var(--hand); font-weight: 600; color: var(--rust-dark); font-size: 1.9rem; line-height: 1.1; transform: rotate(-2deg); }
.hand-small { font-size: 1.6rem; margin-top: 1.5rem; display: inline-block; }

/* Logo (the artwork itself lives in the #logo symbol in index.html) */
.logo { width: 11.5rem; height: auto; margin-inline: auto; color: var(--teal); overflow: visible; }
.logo-utensils { fill: var(--utensil, #B5482C); }

/* Hero */
.hero { text-align: center; padding: 2.25rem 1.25rem 2.75rem; }
.hero .hand { margin-top: 2.25rem; }
.hero h1 { max-width: 11ch; margin: 0.35rem auto 0; }
.intro { max-width: 30rem; margin: 1.4rem auto 0; }
.hero .btn { margin-top: 1.75rem; }
.trust { max-width: 22rem; margin: 1.1rem auto 0; font-size: 0.95rem; color: var(--rust-dark); font-weight: 500; }

/* Tablecloth band with eight plates */
.cloth {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(181, 72, 44, 0.58) 50%, transparent 50%),
    linear-gradient(rgba(181, 72, 44, 0.58) 50%, transparent 50%);
  background-size: 28px 28px;
  background-position: center top;
  padding: 16px 10px;
  border-block: 2px solid var(--rust);
}
.plates { display: flex; justify-content: center; gap: clamp(5px, 1.6vw, 18px); }
.plate {
  flex: none;
  width: var(--plate);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #FFFBF3 0 50%, #E9D8BC 51% 54%, #FBF4E7 55%);
  box-shadow: 0 2px 0 rgba(72, 24, 10, 0.35), 0 0 0 1px rgba(72, 24, 10, 0.12);
}
.plate svg { width: 42%; height: 42%; color: var(--cream); }
.plate-yours { background: radial-gradient(circle, #14494A 0 50%, #0A2F30 51% 54%, var(--teal) 55%); }
.plate-big { width: 72px; }
.cloth-line { text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; padding: 1.1rem 1.25rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .plates .plate { animation: set-plate 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards; }
  .plates .plate:nth-child(1) { animation-delay: 0.15s; }
  .plates .plate:nth-child(2) { animation-delay: 0.23s; }
  .plates .plate:nth-child(3) { animation-delay: 0.31s; }
  .plates .plate:nth-child(4) { animation-delay: 0.39s; }
  .plates .plate:nth-child(5) { animation-delay: 0.47s; }
  .plates .plate:nth-child(7) { animation-delay: 0.55s; }
  .plates .plate:nth-child(8) { animation-delay: 0.63s; }
  .plates .plate:nth-child(6) { animation-delay: 0.95s; }
  @keyframes set-plate {
    from { opacity: 0; transform: translateY(-14px) scale(0.8); }
    to { opacity: 1; transform: none; }
  }
}

/* The next dinner, set like a printed invitation */
#next { padding-inline: 1.25rem; }
.invite {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--tan);
  outline: 1px solid var(--tan);
  outline-offset: -9px;
  padding: 2.75rem 1.6rem 2.5rem;
}
.invite h2 { font-size: 1.5rem; font-style: italic; font-weight: 500; color: var(--rust-dark); }
.invite-day { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; margin-top: 0.9rem; }
.invite-date { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 10.5vw, 3.4rem); line-height: 1.05; font-variant-numeric: lining-nums; }
.invite-time { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-top: 0.2rem; font-variant-numeric: lining-nums; }
.facts { text-align: left; margin: 2rem 0 2.1rem; border-top: 1px solid var(--tan); }
.facts > div { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--tan); }
.facts dt { font-weight: 600; color: var(--rust-dark); }
.dots { display: inline-flex; gap: 5px; margin-left: 0.6rem; vertical-align: -2px; }
.dots span { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 61, 62, 0.2); }
.seat-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.55rem; }
.seat-row span { width: 19px; height: 19px; border-radius: 50%; background: #FFFBF3; box-shadow: inset 0 0 0 1.5px var(--teal), inset 0 0 0 4px #FFFBF3, inset 0 0 0 5px var(--tan); }
.seat-row span.taken { background: var(--tan); box-shadow: inset 0 0 0 1.5px var(--tan); opacity: 0.75; }

/* How it works */
.steps { counter-reset: step; display: grid; gap: 2.25rem; margin-top: 2.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; grid-template-rows: auto 1fr; column-gap: 0.5rem; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--serif); font-weight: 500; font-size: 4rem; line-height: 0.8; color: var(--rust); font-variant-numeric: lining-nums; }
.steps p { margin-top: 0.35rem; max-width: 24rem; }

/* About, the one dark section */
.section-dark { background: var(--teal); color: var(--cream); }
.about { display: grid; gap: 1.75rem; }
.about-lead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.15; margin-top: 0.75rem; color: #E8B9A6; }
.about-body { display: grid; gap: 1.1rem; max-width: 36rem; }
.about-plain { border-left: 3px solid var(--rust); padding-left: 1rem; }

/* Color calendar, set as paint chips */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-top: 2.25rem; }
.chip { background: var(--paper); border: 1px solid var(--tan); padding: 6px 6px 0.9rem; position: relative; }
.chip-bands { display: flex; flex-direction: column; height: 92px; }
.chip-bands span { flex: 1; box-shadow: inset 0 0 0 1px rgba(15, 61, 62, 0.08); }
.chip-month { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; margin: 0.7rem 0.4rem 0; }
.chip-name { font-size: 0.9rem; line-height: 1.35; margin: 0.15rem 0.4rem 0; }
.chip-now { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.chip-tag { display: inline-block; margin: 0.5rem 0.4rem 0; font-size: 0.8rem; font-weight: 600; color: var(--cream); background: var(--teal); border-radius: 999px; padding: 0.1rem 0.6rem; }
.chips-note { margin-top: 1.4rem; font-family: var(--hand); font-weight: 600; font-size: 1.5rem; color: var(--rust-dark); }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 2rem; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Booking */
.section-paper { background: var(--paper); border-block: 1px solid var(--tan); }
.book { display: grid; gap: 2rem; }
.book-copy p:first-of-type { margin-top: 1rem; max-width: 30rem; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea, .notify input {
  font: inherit;
  color: var(--teal);
  background: #FFFDF8;
  border: 1.5px solid var(--tan);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  min-height: 3.1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .notify input:focus { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--teal); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; margin-top: 0.35rem; }
.form-note { font-size: 0.9rem; }
.form-error { color: #8B1E0F; font-weight: 500; background: #FBE3DA; border-radius: 10px; padding: 0.7rem 0.9rem; }
.done { text-align: center; padding: 1rem 0; }
.done .plate { margin: 0 auto 1.25rem; }
.done p { margin: 0.75rem auto 0; max-width: 28rem; }

/* Questions */
details { border-bottom: 1px solid var(--tan); }
details:first-of-type { margin-top: 1.75rem; border-top: 1px solid var(--tan); }
summary { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; padding: 1rem 2rem 1rem 0; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--rust); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 1.2rem; max-width: 34rem; }
.notify { margin-top: 3rem; display: grid; gap: 0.6rem; }
.notify-row { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.notify-done { font-weight: 500; }

/* Footer */
.footer { background: var(--teal); color: var(--cream); padding-block: 3.25rem 3.5rem; text-align: center; }
.footer .logo { color: var(--cream); --utensil: #E08A6E; }
.logo-small { width: 7.5rem; }
.footer-line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; margin-top: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.footer-links a { color: var(--cream); text-underline-offset: 4px; padding: 0.4rem 0; display: inline-block; }
.footer-small { margin-top: 1.25rem; font-size: 0.9rem; opacity: 0.8; }

@media (min-width: 48rem) {
  .hero { padding-top: 3.25rem; padding-bottom: 3.5rem; }
  .logo { width: 13.5rem; }
  .logo-small { width: 8.5rem; }
  .cloth { background-size: 36px 36px; padding-block: 22px; }
  .invite { padding: 3.5rem 3.25rem 3.25rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .about { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; }
  .chips { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .book { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
  .notify-row { grid-template-columns: 1fr auto; }
}
@media (min-width: 66rem) {
  .chips { grid-template-columns: repeat(6, 1fr); }
}
