/* FlipTheBird Guide website: navy and gold (docs/BRAND.md). System fonts only, so the
   site loads nothing from other companies. */
:root {
  --navy: #0b1f3a;
  --navy-2: #16345f;
  --gold: #d9b44a;
  --ivory: #f7f5ef;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #0e1a2b;
  --text-2: #3d4a60;
  --muted: #5c6679;
  --line: #e1dccf;
  --link: #16305a;
  --accent-ring: #a88424;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1526;
    --surface: #112038;
    --text: #eeeae0;
    --text-2: #bac2d0;
    --muted: #8e99ac;
    --line: #22344f;
    --link: #e2c266;
    --accent-ring: #d9b44a;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  text-wrap: balance;
}
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left));
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--ivory);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand b {
  color: var(--gold);
}
.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}
.site-header nav a {
  color: var(--ivory);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--gold);
}
/* Phones: the menu goes on its own line under the logo. */
@media (max-width: 560px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .site-header nav {
    width: 100%;
    gap: 20px;
  }
}

/* Hero */
.hero {
  background: radial-gradient(circle at 50% 30%, var(--navy-2), var(--navy) 70%);
  color: var(--ivory);
  text-align: center;
  padding: 48px 0 64px;
}
.hero img {
  width: min(220px, 55vw);
  height: auto;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  margin: 8px 0 4px;
}
.hero h1 span {
  color: var(--gold);
}
.hero .lede {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  margin: 0 auto 12px;
  max-width: 36rem;
}
.hero .facts {
  color: #c9cfdb;
  margin: 0 0 20px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
}
.button {
  display: inline-block;
  margin-top: 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
}

/* Sections */
main section {
  padding: 48px 0;
}
.section-title {
  font-size: 1.8rem;
  margin: 0 0 8px;
}
.intro {
  color: var(--text-2);
  max-width: 44rem;
  margin: 0 0 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--text-2);
}
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Long text pages */
.doc {
  max-width: 46rem;
  padding-top: 40px;
  padding-bottom: 56px;
}
.doc h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin: 0 0 4px;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 24px;
}
.doc h2 {
  font-size: 1.4rem;
  margin: 32px 0 8px;
}
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-ring);
  border-radius: 10px;
  padding: 14px 18px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p,
details ol,
details ul {
  color: var(--text-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
