/* Unflown website. Colours match the app's Evening palette (docs/design/BRAND.md). */
:root {
  --bg: #111722;          /* Night Ink */
  --surface: #1E2835;     /* Dusk Slate */
  --raised: #283445;
  --hairline: #323E50;
  --text: #EEE9E0;        /* Paper */
  --text-2: #B9BEC6;
  --text-3: #98A1AD;
  --accent: #F0B96B;      /* Lamplight: help and the ground line only */
  --paper-button: #EEE9E0;
  --on-paper: #111722;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.site-header img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.site-header .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Hero, with the horizon glow and the ground line */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 100%, rgba(240, 185, 107, 0.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.lede {
  max-width: 34em;
  margin: 0 0 32px;
  color: var(--text-2);
  font-size: 19px;
}
.button {
  display: inline-block;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--paper-button);
  color: var(--on-paper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.button:hover { background: #fff; color: var(--on-paper); }
.fine {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

/* The two doors */
section { padding: 56px 0 0; }
h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
}
.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.card p { margin: 0; color: var(--text-2); }

.tagline {
  margin: 56px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text);
}

/* Help, always visible */
.help {
  margin: 56px 0 0;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--raised);
}
.help h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 12px;
}
.help h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.help ul { margin: 0; padding-left: 20px; }
.help li { margin: 6px 0; color: var(--text-2); }
.help a { color: var(--text); font-weight: 700; white-space: nowrap; }

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 14px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-2); }

/* Privacy page */
.prose { max-width: 40em; padding: 32px 0 0; }
.prose h1 { font-size: clamp(32px, 6vw, 44px); }
.prose h2 { font-size: 22px; margin-top: 36px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose .updated { color: var(--text-3); font-size: 14px; }

@media (max-width: 480px) {
  .hero { padding: 48px 0 64px; }
  .button { display: block; text-align: center; }
}
