/* Better Recipes — shared site styles. No JS, no external assets. */

:root {
  --bg: #fffbf7;
  --surface: #fff2e8;
  --text: #2a211b;
  --muted: #6e6259;
  --accent: #c2451e;
  --accent-contrast: #ffffff;
  --border: #e8dcd2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #221b15;
    --text: #f0e8e1;
    --muted: #a69b91;
    --accent: #ff8b5e;
    --accent-contrast: #2a1207;
    --border: #372e27;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  padding-top: 1.4rem;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

main {
  padding-top: 2.4rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0.6rem 0;
}

a {
  color: var(--accent);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
}
