/* DinnerChime site. Palette and type from the styleboard (docs/styleboard.jpg). */
:root {
  --orange: #ff7f50;
  --orange-deep: #b8431a;
  --yellow: #ffca28;
  --sky: #4fc3f7;
  --teal: #4db6ac;
  --teal-deep: #1f766d;
  --creme: #fdf6e3;
  --card: #ffffff;
  --text: #2b2420;
  --text-secondary: #6e6259;
  --border: #eadfc4;
  --radius: 20px;
  --max: 960px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--orange-deep); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header .brand img { display: block; width: 180px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current='page'] { color: var(--orange-deep); }

.site-footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Landing page */
.hero { text-align: center; padding: 32px 0 48px; }
.hero .mascot { width: 120px; }
.hero .logo { display: block; width: min(520px, 100%); margin: 8px auto 20px; }
.hero h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.25; font-weight: 800; margin: 0 auto 16px; max-width: 18em; }
.hero p { color: var(--text-secondary); max-width: 34em; margin: 0 auto; }

.pill {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  font-weight: 700;
}

.section-title { text-align: center; font-size: 28px; font-weight: 800; margin: 56px 0 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps .card img { width: 56px; height: 56px; object-fit: contain; }
.steps h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 700; }
.steps p { margin: 0; color: var(--text-secondary); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.features h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.features p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.features .accent-orange { border-top: 6px solid var(--orange); }
.features .accent-teal { border-top: 6px solid var(--teal); }
.features .accent-yellow { border-top: 6px solid var(--yellow); }
.features .accent-sky { border-top: 6px solid var(--sky); }

/* Text pages (privacy, support) */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; line-height: 1.2; margin: 24px 0 8px; }
.doc .meta { color: var(--text-secondary); margin: 0 0 32px; }
.doc h2 { font-size: 23px; font-weight: 700; margin: 40px 0 8px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 24px 0 4px; }
.doc .card { margin: 24px 0; }
.doc address { font-style: normal; line-height: 1.8; }

.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 700; background: #fbf1d8; }
tr:last-child td { border-bottom: 0; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header .brand img { width: 150px; }
}
