/*
 * The website's own styles.
 *
 * Deliberately not the app's design tokens: this is a handful of static pages a
 * link lands on, and coupling them to a design system that is still being chosen
 * would mean touching both every time either moves. Plain, readable, and legible
 * on a phone at the bottom of a group chat.
 */

:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --border: #e2e2df;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --accent: #2f2f2c;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --surface: #1f1f23;
    --border: #33333a;
    --text: #ececea;
    --muted: #a0a09a;
    --accent: #ececea;
    --accent-text: #17171a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

main, .top, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand { font-weight: 650; font-size: 1.1rem; text-decoration: none; color: inherit; }
.top nav a, footer nav a { color: var(--muted); margin-right: 0.75rem; font-size: 0.9rem; }

a { color: inherit; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

h1 { font-size: 1.6rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0.5rem 0; }

.meta, .hint, .credit { color: var(--muted); font-size: 0.9rem; }
.hint { font-size: 0.85rem; }
.unknown { color: var(--muted); font-style: italic; }
.amount { color: var(--muted); }

ul.ingredients, ul.list { list-style: none; padding: 0; }
ul.ingredients li, ul.list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
ul.ingredients li:last-child, ul.list li:last-child { border-bottom: 0; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.4rem 0; }

table.plan { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
table.plan th { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; width: 8rem; color: var(--muted); font-weight: 500; }
table.plan td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
}

.button--ghost { background: transparent; color: inherit; border-color: var(--border); }

button.button { cursor: pointer; font: inherit; }

footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); font-size: 0.85rem; }
footer nav { margin-bottom: 0.5rem; }

.fill-me {
  background: #fdf6e3;
  border: 1px dashed #8a6d1f;
  color: #6b5416;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  .fill-me { background: #2e2a1e; border-color: #8a6d1f; color: #d8bd76; }
}

dl dt { font-weight: 600; margin-top: 0.85rem; }
dl dd { margin: 0.25rem 0 0; color: var(--muted); }
