/* Derived from the app, not invented for the web: the same felt green, the same
   gold, the same two typefaces, the same card-with-a-seven mark. A site that
   looks like a different product than the app it is about is worse than no
   site. See app/lib/theme/app_theme.dart. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --felt: #0b5138;
  --felt-deep: #06301f;
  --gold: #e3b04b;
  --gold-deep: #9c7222;
  --cream: #f7f1e3;
  --ink: #17130f;
  --red: #b5342b;
  /* 0.76, not the 0.66 it started at. Measured, not eyeballed: against the
     lightest part of the felt gradient (#0b5138) 0.66 gives 4.16:1, which
     fails WCAG AA for body text. 0.76 gives 5.00:1. */
  --muted: rgba(237, 228, 211, 0.76);
}

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

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

body {
  margin: 0;
  background: radial-gradient(120% 90% at 50% 0%, var(--felt), var(--felt-deep));
  background-attachment: fixed;
  color: var(--cream);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-variation-settings: 'wght' 450;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */

header { padding: 3.5rem 0 0; }

.mark {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
}
.mark img { width: 62px; height: 62px; border-radius: 14px; display: block; }
.mark .name {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 800, 'opsz' 144;
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
}
.mark .kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-variation-settings: 'wght' 700;
  margin-top: 0.35rem;
}

/* ---------- type ---------- */

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 800, 'opsz' 144;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.08;
  margin: 2.5rem 0 1rem;
  color: var(--cream);
}
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 700, 'opsz' 60;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2.6rem 0 0.6rem;
  color: var(--gold);
}
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.22rem; color: var(--cream); }
.muted { color: var(--muted); }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0c877; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.45rem; }

/* ---------- the rule strip ---------- */

.rules {
  border-top: 1px solid rgba(227, 176, 75, 0.22);
  border-bottom: 1px solid rgba(227, 176, 75, 0.22);
  padding: 1.6rem 0;
  margin: 2.4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.4rem;
}
.rules div span {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 800, 'opsz' 144;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--gold);
}
.rules div small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- status note ---------- */

.status {
  border: 1px solid rgba(227, 176, 75, 0.3);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.16);
}
.status p:last-child { margin-bottom: 0; }

footer {
  margin-top: 4.5rem;
  padding: 1.8rem 0 3.5rem;
  border-top: 1px solid rgba(237, 228, 211, 0.12);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Policy pages read better a touch narrower and quieter. */
.policy { max-width: 40rem; }
.policy h2 { font-size: 1.2rem; }
.policy .date { font-size: 0.9rem; color: var(--muted); margin-top: -0.5rem; }
