/* The same fonts as the app (assets/fonts/ in the app repo), served from here so a page never waits on a third-party font host. */
@font-face { font-family: 'Lora'; src: url('fonts/Lora.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/PlusJakartaSans.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  /* QuizPaper's brand, the same values as the app's lib/core/theme/app_colors.dart: a deep green on warm paper. */
  --primary: #356b5a;
  --primary-dark: #234a3e;
  --primary-soft: #dce9e1;
  --text: #26332e;
  --text-secondary: #5d6c65;
  --bg: #f7f6f0;
  --bg-alt: #fcfcf8;
  --border: #dde2dc;
  --max-width: 780px;
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand .logo { width: 32px; height: 32px; display: block; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 20px; }

.brand .from {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

nav.site { display: flex; flex-wrap: wrap; gap: 6px 18px; }

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

nav.site a:hover { color: var(--primary); }

main { padding: 48px 0 80px; }

h1, h2, h3 { font-family: var(--display); }
h1 { font-size: 34px; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 22px; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }

p, li { color: var(--text); }

.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.hero {
  text-align: center;
  padding: 64px 0 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
}

.hero h1 { color: var(--bg); font-size: 40px; }
.hero { padding-left: 24px; padding-right: 24px; }

.hero p.tagline {
  color: rgba(247, 246, 240, 0.92);
  font-size: 18px;
  max-width: 520px;
  margin: 12px auto 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-alt);
}

.card h3 { margin-top: 0; color: var(--primary-dark); }
.card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 0; }

.callout {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-weight: 600; }

@media (max-width: 520px) {
  .brand .from { display: none; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  .hero p.tagline { font-size: 16px; }
  main { padding: 32px 0 64px; }
}
