/* =============================================================================
   Florida Weather & Tides — Public site
   Brand tokens lifted from packages/fwt_design/lib/src/app_colors.dart so the
   website reads as an extension of the app, not a generic legal page.
   ========================================================================= */

:root {
  --brass: #B8862F;
  --brass-deep: #8C6516;
  --brass-glow: #E0A94A;
  --gold-fleck-bright: #FFD877;

  --pearl-warm: #FBF8F4;
  --pearl-cool: #F2F4F8;
  --pearl-mist: #EAEEF3;

  --card-navy-top: #18335C;
  --card-navy-base: #0E1E3A;
  --dark-surface: #0A1628;
  --dark-elevated: #142640;

  --text-primary: #1A2332;
  --text-secondary: #5A6B7D;
  --text-light: #6B7C90;
  --text-on-dark: #F5F2EC;

  --radius-card: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 12px 32px rgba(26, 35, 50, 0.10);
  --shadow-deep: 0 18px 48px rgba(14, 30, 58, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, var(--pearl-warm) 0%, var(--pearl-cool) 100%) fixed;
}

/* ── Header band — brass gradient echoing the About modal ──────────── */
.site-header {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-deep) 100%);
  border-bottom: 1px solid rgba(255, 216, 119, 0.45);
  color: var(--text-on-dark);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.site-header__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__mark {
  font-size: 22px;
  line-height: 1;
}

.site-header__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.site-header__title a {
  color: inherit;
  text-decoration: none;
}

.site-header__sub {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Main content surface — pearl card on pearl background ─────────── */
main {
  max-width: 760px;
  margin: 32px auto 64px;
  padding: 0 24px;
}

.card {
  background: linear-gradient(135deg, var(--pearl-warm) 0%, var(--pearl-cool) 100%);
  border: 1px solid rgba(184, 134, 47, 0.30);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 32px 28px;
  margin-bottom: 20px;
}

.card + .card { margin-top: 20px; }

h1, h2, h3 {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 600;
}

h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 600;
  color: var(--brass-deep);
}

h2:first-of-type { margin-top: 24px; }

h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  font-weight: 600;
}

.lede {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brass-deep);
  background: rgba(184, 134, 47, 0.10);
  border: 1px solid rgba(184, 134, 47, 0.30);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

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

p { margin: 0 0 12px; }

ul, ol { padding-left: 22px; margin: 0 0 12px; }

li { margin-bottom: 6px; }

a {
  color: var(--brass-deep);
  text-decoration: underline;
  text-decoration-color: rgba(140, 101, 22, 0.4);
  text-underline-offset: 2px;
}

a:hover { color: var(--brass); text-decoration-color: var(--brass); }

strong { color: var(--text-primary); }

.muted {
  color: var(--text-light);
  font-size: 13px;
}

/* ── Disclaimer callout — for the marine navigation warning ────────── */
.callout {
  background: rgba(184, 134, 47, 0.06);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}

.callout strong { color: var(--brass-deep); }

/* ── Tile grid on landing page ─────────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.tile {
  display: block;
  padding: 20px;
  background: rgba(234, 238, 243, 0.5);
  border: 1px solid rgba(184, 134, 47, 0.30);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184, 134, 47, 0.12);
  color: var(--text-primary);
}

.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(184, 134, 47, 0.10);
  border: 1px solid rgba(184, 134, 47, 0.35);
  color: var(--brass);
  font-size: 18px;
  margin-bottom: 10px;
}

.tile__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tile__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}

.site-footer a { color: var(--text-light); }

/* ── Small screens ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .tiles { grid-template-columns: 1fr; }
  main { margin-top: 20px; padding: 0 16px; }
  .site-header { padding: 22px 16px; }
}

/* ── Dark mode — only the header gradient flips to navy; the body
      stays pearl to keep legal text readable in any context. ──────── */
@media (prefers-color-scheme: dark) {
  body {
    background:
      linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-elevated) 100%) fixed;
  }
  .site-header {
    background: linear-gradient(135deg, var(--card-navy-top) 0%, var(--card-navy-base) 100%);
    border-bottom-color: rgba(212, 162, 76, 0.35);
  }
  .card {
    box-shadow: var(--shadow-deep);
    border-color: rgba(212, 162, 76, 0.22);
  }
  .site-footer { color: rgba(245, 242, 236, 0.55); }
  .site-footer a { color: rgba(245, 242, 236, 0.7); }
}
