/* ===========================================================================
   FLBoatingHub.com — Coastal editorial design system
   Palette: warm sand + gulf teal + coral. Editorial serif + clean sans.
   =========================================================================== */

:root {
  /* --- Coastal palette --- */
  --sand-50:  #fdfaf3;   /* page background, warm off-white */
  --sand-100: #f7f0e2;   /* cards / raised surfaces */
  --sand-200: #ece0c9;   /* borders, dividers */
  --sand-300: #dcc9a4;   /* muted lines */

  --teal-900: #06363a;   /* darkest teal, footer */
  --teal-800: #0a4e54;
  --teal-700: #0d6e75;   /* primary gulf-teal */
  --teal-600: #128089;
  --teal-500: #1a9aa4;
  --teal-100: #d6ecec;   /* teal wash */

  --coral-600: #d64828;
  --coral-500: #e85d3d;  /* coral accent / CTA */
  --coral-400: #f27a5c;
  --coral-100: #fbe0d6;

  --gold-500:  #e0a43b;  /* sunrise gold accent (sparing) */

  --ink-900: #1c2321;   /* body text */
  --ink-700: #3a4642;   /* secondary text */
  --ink-500: #6a7772;   /* muted text */

  /* --- Semantic --- */
  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-warm: var(--sand-100);
  --border: var(--sand-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --primary: var(--teal-700);
  --primary-dark: var(--teal-800);
  --accent: var(--coral-500);

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Scale --- */
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.35rem;
  --step-3: 1.7rem;
  --step-4: 2.15rem;
  --step-5: 2.75rem;
  --step-6: 3.6rem;
  --step-hero: clamp(2.9rem, 6.5vw, 5.4rem);

  /* --- Layout --- */
  --maxw: 1200px;
  --maxw-text: 720px;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --shadow-sm: 0 1px 3px rgba(28,35,33,0.07), 0 1px 2px rgba(28,35,33,0.04);
  --shadow: 0 12px 34px -14px rgba(6,54,58,0.28);
  --shadow-lg: 0 28px 64px -22px rgba(6,54,58,0.4);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--coral-600); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink-900); margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
p { margin: 0 0 1.1em; }

/* --- Utilities --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-text { max-width: var(--maxw-text); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral-600);
  margin: 0 0 .8rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--coral-500); display:inline-block; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.lede { font-size: var(--step-2); line-height: 1.5; color: var(--ink-700); font-family: var(--font-display); font-weight: 400; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(232,93,61,.6); }
.btn-primary:hover { background: var(--coral-600); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: var(--sand-300); }
.btn-ghost:hover { background: var(--sand-100); color: var(--teal-800); }
.btn-teal { background: var(--teal-700); color:#fff; }
.btn-teal:hover { background: var(--teal-800); color:#fff; transform: translateY(-2px); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,243,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--teal-800); }
.brand:hover { color: var(--teal-800); }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; }
.brand-name b { color: var(--coral-600); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-700); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--coral-600); }
.nav-cta { display: inline-flex; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--teal-800); }

/* --- Footer --- */
.site-footer { background: var(--teal-900); color: #cfe3e2; margin-top: 4rem; }
.site-footer a { color: #cfe3e2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; font-size: .94rem; }
.footer-brand svg { width: 42px; height: 42px; margin-bottom: 1rem; color: #fff; }
.footer-brand p { color: #9fbfbe; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; font-size: .84rem; color: #8fb0af; display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; justify-content: space-between; }

/* --- Ad slots --- */
.ad-slot {
  background: repeating-linear-gradient(45deg, var(--sand-100), var(--sand-100) 12px, #f2ead9 12px, #f2ead9 24px);
  border: 1px dashed var(--sand-300);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-align: center; padding: 1rem;
}
.ad-leaderboard { min-height: 90px; margin: 1.5rem auto; max-width: 728px; }
.ad-inarticle { min-height: 250px; margin: 2rem 0; }
.ad-sidebar { min-height: 600px; width: 300px; }

/* --- Cards --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 3/2; overflow: hidden; background: var(--sand-100); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.card-body h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .5rem; }
.card-meta { font-size: .86rem; color: var(--text-muted); margin-top: auto; display:flex; gap:.8rem; flex-wrap:wrap; padding-top:.8rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* --- Chips / pills --- */
.chip { display:inline-flex; align-items:center; gap:.35rem; font-size:.8rem; font-weight:600; padding:.32rem .7rem; border-radius:100px; background: var(--teal-100); color: var(--teal-800); }
.chip-coral { background: var(--coral-100); color: var(--coral-600); }
.chip-sand { background: var(--sand-100); color: var(--ink-700); border:1px solid var(--sand-200); }
.chips { display:flex; flex-wrap:wrap; gap:.5rem; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: .84rem; color: var(--text-muted); padding-block: 1.2rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--coral-600); }
.breadcrumb span { color: var(--sand-300); }

/* --- Callout --- */
.callout {
  background: var(--teal-100); border-left: 4px solid var(--teal-700);
  border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin: 1.8rem 0;
}
.callout h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing:.1em; text-transform: uppercase; color: var(--teal-800); margin-bottom:.5rem; }
.callout.coral { background: var(--coral-100); border-color: var(--coral-500); }
.callout.coral h4 { color: var(--coral-600); }

/* --- Article layout --- */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 3rem; align-items: start; }
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.sidebar { position: sticky; top: 90px; display:flex; flex-direction:column; gap: 1.5rem; }
.sidebar-box { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.sidebar-box h4 { font-family: var(--font-body); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-700); margin-bottom:.9rem; }
.sidebar-box ul { list-style:none; margin:0; padding:0; }
.sidebar-box li { margin-bottom:.6rem; font-size:.92rem; border-bottom:1px solid var(--sand-100); padding-bottom:.6rem; }
.sidebar-box li:last-child { border-bottom:none; padding-bottom:0; margin-bottom:0; }

/* --- Data table / spec list --- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border:1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.spec { background: var(--surface); padding: 1rem 1.1rem; }
.spec dt { font-size: .74rem; letter-spacing:.06em; text-transform: uppercase; color: var(--text-muted); font-weight:600; margin-bottom:.25rem; }
.spec dd { margin:0; font-weight:600; color: var(--ink-900); font-size:.98rem; }

/* --- Map --- */
.map { height: 380px; width: 100%; border-radius: var(--radius); border:1px solid var(--border); z-index: 1; }

/* --- Tide chart --- */
.chart-wrap { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.tide-today { display:flex; gap:1rem; flex-wrap:wrap; margin: 1.2rem 0; }
.tide-pill { flex:1; min-width:130px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.tide-pill .t-type { font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.tide-pill.high .t-type { color: var(--teal-700); }
.tide-pill.low .t-type { color: var(--coral-600); }
.tide-pill .t-time { font-family: var(--font-display); font-size: 1.4rem; font-weight:600; }
.tide-pill .t-val { font-size:.86rem; color: var(--text-muted); }

/* --- Source cite --- */
.source-note { font-size:.82rem; color: var(--text-muted); border-top:1px solid var(--border); padding-top:1rem; margin-top:2rem; }
.source-note a { color: var(--teal-700); }

/* --- Search --- */
.searchbox { position: relative; max-width: 560px; }
.searchbox input {
  width: 100%; font-family: var(--font-body); font-size: 1.05rem;
  padding: 1rem 1.3rem 1rem 3rem; border-radius: 100px;
  border: 1.5px solid var(--sand-200); background: #fff; color: var(--ink-900);
  box-shadow: var(--shadow);
}
.searchbox input:focus { outline: none; border-color: var(--teal-500); }
.searchbox svg { position:absolute; left:1.1rem; top:50%; transform:translateY(-50%); width:20px; height:20px; stroke: var(--ink-500); }
.search-results { position:absolute; top:calc(100% + .5rem); left:0; right:0; background:#fff; border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 340px; overflow:auto; z-index: 20; display:none; }
.search-results.open { display:block; }
.search-results a { display:block; padding:.75rem 1.1rem; border-bottom:1px solid var(--sand-100); color: var(--ink-900); }
.search-results a:hover { background: var(--sand-50); }
.search-results a small { color: var(--text-muted); display:block; font-size:.8rem; }

/* --- Stats strip --- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--sand-200); border-radius: var(--radius); overflow:hidden; border:1px solid var(--sand-200); }
.stat { background: var(--sand-50); padding: 1.75rem 1.2rem; text-align:center; }
.stat .num { font-family: var(--font-display); font-size: var(--step-4); font-weight:600; color: var(--teal-700); line-height:1.15; padding-top:.1em; }
.stat .lbl { font-size:.82rem; color: var(--text-muted); margin-top:.4rem; letter-spacing:.03em; }

/* --- Prose links list --- */
.linklist { list-style:none; padding:0; margin: 1rem 0; columns: 2; column-gap: 2rem; }
.linklist li { margin-bottom:.5rem; break-inside: avoid; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap:wrap; }
  .sidebar-box, .ad-sidebar { flex:1; min-width: 260px; width:auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--sand-50); border-bottom:1px solid var(--border); padding: .5rem var(--gutter) 1.2rem; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--sand-100); }
  .nav-cta { margin-top:.6rem; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .linklist { columns: 1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
