/* The four pages Intuit asks for before it will issue production keys, plus
   the two the club ought to have had anyway. Static files rather than
   routes on the service: they are read by people and by Intuit's reviewer,
   and neither should be told "502" because the club service is restarting.

   The palette is the one in api/app/templates/base.html. Kept here rather
   than imported because these pages are served by nginx straight from disk
   and must not depend on the service being up. */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-400.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #faf8f5; --surface: #ffffff;
  --text: #2c1e24; --text-2: #5c4650; --muted: #9a8890;
  --wine: #5c0037; --wine-deep: #43002a; --wine-pale: #f1e2ea;
  --border: #e2d8d0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1215; --surface: #241a1e;
    --text: #ede6e0; --text-2: #c0b0b6; --muted: #86747a;
    --wine: #c2628f; --wine-deep: #7a1a56; --wine-pale: #2e1826;
    --border: #3a2c32;
  }
}

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

body {
  font-family: 'Lato', 'Optima', 'Candara', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.masthead { text-align: center; margin-bottom: 2.5rem; }
.masthead a {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wine); text-decoration: none;
}
.masthead a em { font-style: italic; text-transform: none; letter-spacing: 0.02em; }

.eyebrow {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 0.75rem;
}

h1 {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2;
  text-wrap: balance; margin-bottom: 0.5rem;
}
h2 {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-weight: 400; font-size: 1.25rem; line-height: 1.3;
  margin: 2.25rem 0 0.6rem; text-wrap: balance;
}
h3 {
  font-size: 0.95rem; font-weight: 700; margin: 1.4rem 0 0.35rem;
}

p, li { color: var(--text-2); }
p { margin-bottom: 0.9rem; }
ul { margin: 0 0 0.9rem 1.2rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--text); }
a { color: var(--wine); }

.updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 2rem; }

.card {
  border: 1px solid var(--border); border-left: 3px solid var(--wine);
  background: var(--surface); padding: 1.1rem 1.35rem; margin: 1.5rem 0;
  font-size: 0.92rem;
}
.card p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: 0.9rem; }
th, td {
  text-align: left; vertical-align: top; padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border); color: var(--text-2);
}
th { color: var(--text); font-weight: 700; width: 34%; }

.btn {
  display: inline-block; padding: 0.8rem 2rem; border: 1px solid var(--wine);
  background: var(--wine); color: #fff; text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; margin-top: 0.5rem;
}
.btn:hover { background: var(--wine-deep); }
.btn.ghost { background: transparent; color: var(--wine); }
.btn.ghost:hover { background: var(--wine-pale); }

.foot {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--muted); text-align: center;
}
.foot a { color: var(--muted); }
