/* Dinner Bell site. Palette and fonts from dinnerbell-app/reference/UIUX.md. */

:root {
  --cream: #FBF7F0;
  --brick: #A83A2C;
  --sage: #4E6A4A;
  --charcoal: #2E2A26;
  --muted: #6B635B;
  --rule: #E6DDCF;
  --card: #FFFDF9;
  /* The app's gingham: brick stripes at half strength over cream, 28px checks. */
  --stripe: rgba(168, 58, 44, 0.5);
  --check: 28px;

  --font-logo: "Libre Baskerville", Georgia, serif;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 16px 3rem;
}

/* ---- Gingham band with the logo label ---------------------------------- */

.band {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, var(--stripe) 50%, transparent 50%),
    linear-gradient(0deg, transparent 50%, var(--stripe) 50%);
  background-size: calc(var(--check) * 2) calc(var(--check) * 2);
  padding: 2.25rem 16px;
  display: flex;
  justify-content: center;
}

.band--home { padding: 4.5rem 16px; }

.logo {
  display: inline-block;
  background: var(--cream);
  border: 1.5px solid var(--brick);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(46, 42, 38, 0.18);
  padding: 0.35rem 1.1rem 0.45rem;
  transform: rotate(-3deg);
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--brick);
  text-decoration: none;
  line-height: 1.3;
}

.band--home .logo {
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  padding: 0.5rem 1.5rem 0.65rem;
  transform: rotate(-6deg);
}

a.logo:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }

/* ---- Type ---------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.35rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--brick); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

.lede { font-size: 1.2rem; color: var(--muted); }
.meta { font-size: 0.95rem; color: var(--muted); }

/* ---- Home ---------------------------------------------------------------- */

.tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  text-align: center;
  margin: 0 0 2rem;
}

.home p { max-width: 34rem; }

.soon {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--sage);
  background: var(--card);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--sage);
}

/* ---- Cards, FAQ, notices ------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 1.5rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  background: var(--brick);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.button:hover { background: #923225; }

details {
  border-bottom: 1px solid var(--rule);
}
details:first-of-type { border-top: 1px solid var(--rule); }

summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.75rem 2rem 0.75rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--sage);
}
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > ol, details > ul, details > p { padding-bottom: 0.25rem; }
ol { padding-left: 1.4rem; margin: 0 0 1rem; }

.draft {
  border: 2px dashed var(--brick);
  background: #FCEDEA;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.draft strong { color: var(--brick); }

.placeholder {
  background: #FFF1B8;
  border: 1px solid #E2C65C;
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 700;
  white-space: nowrap;
}

.review-note {
  font-size: 0.95rem;
  background: #EEF2EC;
  border-left: 4px solid var(--sage);
  padding: 0.6rem 0.9rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 1rem;
}

.toc { columns: 2 14rem; font-size: 0.98rem; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 16px 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.5rem; margin-bottom: 0.4rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--charcoal);
  font-weight: 600;
}
.site-footer p { margin: 0; }

/* ---- Print: drop the band's background --------------------------------- */
@media print {
  .band { background: none; padding: 0.5rem 0; }
  .logo { box-shadow: none; transform: none; }
  .draft, .review-note { break-inside: avoid; }
}
