/* West Palm Resort Guide — site styles */
:root {
  --ink: #10363f;
  --ink-soft: #4c6268;
  --page: #faf6ee;
  --surface: #fffdf8;
  --rule: #e4dccb;
  --sea: #0f6b74;
  --sea-soft: #dff0ef;
  --coral: #d4583a;
  --coral-soft: #fbe8e1;
  --sand: #efe4cd;
  --link: #0d5f68;
  --focus: #0f6b74;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --measure: 70ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8f0ef;
    --ink-soft: #a7b9bb;
    --page: #0d1a1d;
    --surface: #132428;
    --rule: #26393d;
    --sea: #6cc8cf;
    --sea-soft: #133238;
    --coral: #f08a6c;
    --coral-soft: #3a1f17;
    --sand: #2a2a20;
    --link: #86d6dc;
    --focus: #86d6dc;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 1.08rem; line-height: 1.62; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Independence banner + header */
.indie { background: var(--ink); color: var(--page); font-size: 0.82rem; text-align: center; padding: 6px 16px; letter-spacing: 0.01em; }
.site-head { border-bottom: 1px solid var(--rule); background: var(--surface); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: 14px; }
.wordmark { font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.wordmark em { color: var(--coral); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; padding: 3px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--coral); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 0 0 14px; max-width: 16ch; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 2em 0 0.55em; }
h3 { font-size: 1.35rem; margin: 1.5em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); max-width: 52ch; margin-bottom: 0; }
.kicker { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }
.small { font-size: 0.92rem; color: var(--ink-soft); }

main { padding: 44px 0 72px; }
.article { max-width: var(--measure); }
.article > h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); max-width: 22ch; }
.article .lede { margin-bottom: 22px; }
.article.wide { max-width: 100%; }
.article.wide > :not(.tool):not(.table-scroll) { max-width: var(--measure); }
.updated { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 26px; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; font-size: 0.9rem; background: var(--sand); }
.table-scroll { overflow-x: auto; margin: 1.1em 0 1.5em; border-radius: 10px; border: 1px solid var(--rule); }
.table-scroll table { min-width: 600px; }
.table-scroll tr:last-child td { border-bottom: 0; }

/* Home */
.hero { padding: 6px 0 26px; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.card-grid li { margin: 0; }
.card-grid a { display: block; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: inherit; }
.card-grid a:hover { border-color: var(--sea); }
.card-grid .c-name { font-family: var(--display); font-size: 1.35rem; display: block; color: var(--ink); margin-bottom: 4px; }
.card-grid .c-meta { font-size: 0.95rem; color: var(--ink-soft); display: block; line-height: 1.45; }

/* Month tool */
.tool { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; margin: 8px 0 0; }
.tool h2 { margin: 0 0 14px; font-size: 1.6rem; }
.month-picker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.month-picker button { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 0; border-radius: 10px; border: 1px solid var(--rule); background: var(--page); color: var(--ink); cursor: pointer; }
.month-picker button:hover { border-color: var(--sea); }
.month-picker button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
@media (max-width: 640px) { .month-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.month-out h3 { margin: 0 0 10px; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 12px; }
.mstats div { background: var(--sea-soft); border-radius: 12px; padding: 10px 14px; }
.mstats dt { font-size: 0.85rem; color: var(--ink-soft); }
.mstats dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.rainbar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: 4px 0 4px; }
.rainbar span { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
.month-out p { margin: 8px 0 0; }
.credit { font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); margin: 14px 0 0; }

/* Forms */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; padding: 10px 18px; border: 0; border-radius: 99px; background: var(--coral); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.form { max-width: 34rem; }
.form label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.form textarea { min-height: 140px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 30px 0 46px; font-size: 0.94rem; color: var(--ink-soft); background: var(--surface); }
.site-foot nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--ink-soft); }
.site-foot p { max-width: 78ch; margin: 0 0 8px; }

@media print { .indie, .site-head, .site-foot, .month-picker { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Illustrations */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 30px rgba(16, 54, 63, 0.18)); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 20px; } .hero-art { max-height: 300px; object-fit: cover; } }
.card-grid a { position: relative; }
.c-icon { width: 34px; height: 34px; color: var(--coral); display: block; margin-bottom: 10px; }
.badge { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; background: var(--coral-soft); color: var(--coral); align-items: center; justify-content: center; margin-bottom: 14px; }
.badge .icon { width: 30px; height: 30px; }
.wave { display: block; width: 100%; max-width: var(--measure); height: 14px; color: var(--sea); opacity: 0.45; margin: 18px 0 10px; }
.article.wide .wave { max-width: 100%; }
.banner { display: block; width: 100%; height: clamp(90px, 14vw, 150px); border-radius: 20px; margin: 0 0 22px; }
.article:not(.wide) .banner { max-width: 100%; }

/* Photos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--sand); }
.photo figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.photo figcaption a { color: var(--ink-soft); }
.hero-photo img { aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 14px 30px rgba(16, 54, 63, 0.18); }
.banner-photo { margin-bottom: 22px; }
.banner-photo img { aspect-ratio: 16 / 6; object-fit: cover; }
@media (max-width: 640px) { .banner-photo img { aspect-ratio: 16 / 9; } .hero-photo img { aspect-ratio: 4 / 3; } }

/* Analytics consent */
.consent[hidden] { display: none; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 34rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 16px 18px; z-index: 20; font-size: 1rem; box-shadow: 0 8px 28px rgba(16, 54, 63, 0.2); }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.linklike { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
@media print { .consent { display: none !important; } }
.aff-note { font-size: .9rem; color: var(--ink-soft); border-left: 3px solid var(--coral); padding: 2px 0 2px 12px; margin: 0 0 1.2rem; }
.partner { margin: 2rem 0; padding: 18px 20px; border-radius: 16px; background: var(--sea-soft); }
.partner h2 { margin-top: 0; }
.map-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; font-size: 0.95rem; }
.map-gate[hidden] { display: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
