/* ============================================================
   Tonight's Dinner — Shared Stylesheet
   tonights-dinner.com
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:          #FFFFFF;
  --bg-muted:    #FAFAFA;
  --text:        #0A0A0A;
  --text-muted:  #6B6B6B;
  --text-faint:  #9B9B9B;
  --primary:     #111111;
  --accent:      #B0743A;
  --accent-dim:  rgba(176, 116, 58, 0.10);
  --accent-mid:  rgba(176, 116, 58, 0.18);
  --on-accent:   #FFFFFF;
  --border:      #ECECEC;
  --field-bg:    #F5F5F5;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-card: 22px;
  --radius-pill: 9999px;

  --shadow:      0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-content: 1080px;
  --max-prose:   720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { color: var(--text-muted); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

.prose-container {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.site-header__logo:hover { text-decoration: none; }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-header__nav a:hover { color: var(--text); text-decoration: none; }

.site-header__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.15s;
}

.site-header__cta:hover { opacity: 0.88; text-decoration: none; }

/* ---------- Site Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 48px 0 40px;
  margin-top: 96px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.site-footer__logo:hover { text-decoration: none; }

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer__links a:hover { color: var(--text); }

.site-footer__links .sep {
  color: var(--border);
  font-size: 13px;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--on-accent);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); text-decoration: none; }

/* App Store Badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
}

.appstore-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.appstore-badge__icon { width: 24px; height: 24px; flex-shrink: 0; }

.appstore-badge__text { display: flex; flex-direction: column; gap: 0; }

.appstore-badge__sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

.appstore-badge__label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- Legal Callout ---------- */
.legal-callout {
  background: #FFF8F0;
  border: 1px solid rgba(176, 116, 58, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 40px;
}

.legal-callout p {
  font-size: 13px;
  color: #7A5020;
  line-height: 1.55;
  margin: 0;
}

.legal-callout strong {
  font-weight: 600;
  color: #5C3A15;
}

/* ---------- Prose (legal pages) ---------- */
.prose {
  padding: 64px 0 80px;
}

.prose .page-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.prose .page-subtitle {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.prose p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose ol { list-style: decimal; }

.prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text); font-weight: 600; }

.prose code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
  font-size: 13px;
  background: var(--field-bg);
  border-radius: 4px;
  padding: 2px 6px;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}

.prose th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.55;
}

.prose td:first-child { font-weight: 500; color: var(--text); }

.prose td a { color: var(--accent); font-size: 13px; }

.placeholder-token {
  /* Values are filled in — render inline as normal body text. */
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header__nav { display: none; }
  .container { padding: 0 20px; }
  .prose { padding: 40px 0 60px; }
  .prose-container { padding: 0 20px; }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 10px 10px; }
}
