@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
  --bg: #F4EEE0;
  --surface: #F7F1E3;
  --border: #E5D9C2;
  --primary: #7A1C28;
  --accent: #E8B86D;
  --text-primary: #2B2622;
  --text-secondary: #4A3F35;
  --text-tertiary: #80675B;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding: 18px 24px;
}



header .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a.brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

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

main {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
}

h1, h2, header a.brand {
  font-family: "Barlow Condensed", system-ui, sans-serif;
}

h1 {
  font-size: 38px;
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: 0;
}

.last-updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 32px;
}

section {
  background: var(--surface);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
}

section h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

section p {
  color: var(--text-secondary);
  margin: 0 0 12px;
  font-size: 15px;
}

section p:last-child {
  margin-bottom: 0;
}

footer {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 8px;
}

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

.hero {
  text-align: center;
  padding: 40px 0 24px;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.links a {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.links a.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.links a:hover {
  filter: brightness(1.05);
}

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  section { padding: 20px; }
  header nav a { margin-left: 12px; }
}

/* The header is the maroon bar the app and the landing page both wear. These
   sit last so they win over the original green rules above. */
header a.brand { color: #F4EEE0; }
header nav a { color: #E3C9CE; }
header a.brand:hover,
header nav a:hover { color: var(--accent); }
