/* chrisplans.com
   A sunset travel poster: sand, deep water, mango sun, coral.
   Safety information is colour-coded to real beach flags, green/amber/red,
   because that is the metaphor the group will already be reading on the sand. */

:root {
  --sand: #fbf3e4;
  --sand-2: #f3e7d1;
  --paper: #fffcf6;
  --ink: #16292c;
  --ink-2: #5d6f70;
  --deep: #0b3b3c;
  --ocean: #12776f;
  --foam: #4fb3a6;
  --sun: #ef9d38;
  --coral: #e4572e;
  --rip: #c0392b;
  --line: rgba(22, 41, 44, 0.13);
  --line-2: rgba(22, 41, 44, 0.07);
  --shadow: 0 1px 2px rgba(11, 59, 60, 0.06), 0 10px 30px rgba(11, 59, 60, 0.07);
  --r: 16px;
  --sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #0d1618;
    --sand-2: #091113;
    --paper: #142124;
    --ink: #eef4f2;
    --ink-2: #94a8a7;
    --deep: #061f20;
    --ocean: #4fb3a6;
    --foam: #7fd6cd;
    --sun: #f5b45f;
    --coral: #f4805c;
    --rip: #ef6d5c;
    --line: rgba(238, 244, 242, 0.15);
    --line-2: rgba(238, 244, 242, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 2px; }
ul { margin: 0; padding-left: 1.1em; }
li { margin: 4px 0; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---------- boot + gate ---------------------------------------------------- */

.boot {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--ink-2);
}
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ocean);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gate {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(178deg, #0b3b3c 0%, #14545a 42%, #b8603f 78%, #ef9d38 100%);
  color: #fdf6e8;
}
/* The sun, sitting on the horizon behind the card. */
.gate::before {
  content: ''; position: absolute; left: 50%; bottom: 12%;
  width: 320px; height: 320px; margin-left: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 160, 0.95) 0%, rgba(239, 157, 56, 0.55) 45%, transparent 70%);
  pointer-events: none;
}
.gate-inner { position: relative; z-index: 1; width: 100%; max-width: 400px; }
.gate h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 11vw, 58px);
  letter-spacing: -0.03em; margin-bottom: 6px;
}
.gate .eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.75; margin-bottom: 14px;
}
.gate .dates { opacity: 0.8; font-size: 15px; margin-bottom: 30px; }

form { display: flex; flex-direction: column; gap: 11px; text-align: left; }
label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }

input, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 11px;
}
.gate input { background: rgba(255, 252, 246, 0.94); color: #16292c; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

button {
  padding: 13px 18px; font: inherit; font-size: 16px; font-weight: 600;
  border: 0; border-radius: 11px; cursor: pointer;
  background: var(--coral); color: #fff;
  transition: transform 0.08s ease, filter 0.15s ease;
}
button:hover { filter: brightness(1.07); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; }
button.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.gate button.ghost { color: #fdf6e8; border-color: rgba(253, 246, 232, 0.4); }
button.ghost:hover { background: var(--line-2); filter: none; }
button.danger { background: var(--rip); color: #fff; }

.error { color: #ffd9cf; font-size: 14px; }
.hint { font-size: 13px; opacity: 0.75; }
main .hint, .card .hint { color: var(--ink-2); opacity: 1; }

.waiting .pulse {
  width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(255, 224, 160, 0.5); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.82); opacity: 0.4; } 50% { transform: scale(1); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; } .waiting .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ----------------------------------------------------------- */

header.hero {
  position: relative; overflow: hidden; padding: 52px 0 0;
  background: linear-gradient(175deg, #0b3b3c 0%, #17565c 46%, #ba6440 80%, #ef9d38 100%);
  color: #fdf6e8;
}
header.hero::before {
  content: ''; position: absolute; right: -60px; top: 40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 165, 0.9) 0%, rgba(239, 157, 56, 0.4) 50%, transparent 72%);
}
header.hero .wrap { position: relative; z-index: 1; }
header.hero .eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8;
}
header.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em;
  font-size: clamp(40px, 11vw, 68px); margin: 8px 0 6px;
}
header.hero .sub { opacity: 0.82; font-size: 15px; }

.countdown { display: flex; gap: 26px; margin: 26px 0 40px; }
.countdown .n {
  display: block; font-family: var(--serif); font-size: clamp(30px, 8vw, 44px);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.countdown .l { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

/* The wave that separates the sky from the page. */
.wave { display: block; width: 100%; height: 46px; margin-bottom: -1px; }
.wave path { fill: var(--sand); }

/* ---------- nav ------------------------------------------------------------ */

nav.tabs {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto; scrollbar-width: none;
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs .wrap { display: flex; gap: 6px; padding-top: 9px; padding-bottom: 9px; }
nav.tabs button {
  background: transparent; color: var(--ink-2); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
nav.tabs button:hover { background: var(--line-2); filter: none; }
nav.tabs button[aria-current='true'] { background: var(--deep); color: var(--sand); }
@media (prefers-color-scheme: dark) {
  nav.tabs button[aria-current='true'] { background: var(--foam); color: #061f20; }
}

/* ---------- sections + cards ----------------------------------------------- */

main { padding: 34px 0 90px; }
section { margin-bottom: 46px; scroll-margin-top: 70px; }

.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-head .num {
  font-family: var(--serif); font-size: 13px; color: var(--coral);
  letter-spacing: 0.1em; flex: none;
}
.sec-head h2 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

.lede { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin-bottom: 18px; }

.card {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card h3 { font-size: 18px; margin-bottom: 3px; }
.card > p + p, .card > .meta + .meta { margin-top: 8px; }
.meta { color: var(--ink-2); font-size: 14.5px; }
.kicker {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); font-weight: 600; margin-bottom: 6px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }

.row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2);
}
.row:last-child { border-bottom: 0; }
.row:first-child { padding-top: 0; }
.row .k { color: var(--ink-2); flex: 0 0 auto; }
.row .v { text-align: right; }
.row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(239, 157, 56, 0.18); color: var(--sun); margin-left: 8px;
}
.chip.star { background: rgba(228, 87, 46, 0.15); color: var(--coral); }

/* Callouts. `warn` is amber advice, `bad` is a real danger note. */
.note {
  border-left: 3px solid var(--ocean); border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--ocean) 8%, transparent);
  padding: 14px 16px; margin: 12px 0; font-size: 14.5px;
}
.note.warn { border-left-color: var(--sun); background: color-mix(in srgb, var(--sun) 11%, transparent); }
.note.bad { border-left-color: var(--rip); background: color-mix(in srgb, var(--rip) 10%, transparent); }
.note strong { display: block; margin-bottom: 3px; }

/* ---------- big five ------------------------------------------------------- */

.five { counter-reset: five; }
.five .item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.five .item:last-child { border-bottom: 0; }
.five .item::before {
  counter-increment: five; content: counter(five, decimal-leading-zero);
  font-family: var(--serif); font-size: 22px; color: var(--coral); flex: none; line-height: 1.1;
}
.five h3 { font-size: 17px; margin-bottom: 4px; }

/* ---------- days ----------------------------------------------------------- */

.day { position: relative; overflow: hidden; }
.day .dayhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.day .dow {
  font-family: var(--serif); font-size: 26px; line-height: 1;
}
.day .dnum { color: var(--ink-2); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.day .items { margin-top: 14px; }
.day .it { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.day .when {
  flex: 0 0 46px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ocean); padding-top: 3px;
}

/* One night gets the full poster treatment. */
.day.feature {
  background: linear-gradient(150deg, #0b3b3c 0%, #1d5f60 45%, #c2673f 100%);
  color: #fdf6e8; border-color: transparent;
}
.day.feature .dnum, .day.feature .meta { color: rgba(253, 246, 232, 0.78); }
.day.feature .when { color: var(--sun); }
.day.feature .it { border-top-color: rgba(253, 246, 232, 0.18); }
.day.feature .note { background: rgba(0, 0, 0, 0.2); border-left-color: var(--sun); }
.stamp {
  position: absolute; top: 16px; right: -30px; transform: rotate(12deg);
  background: var(--coral); color: #fff; padding: 5px 34px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
}

/* ---------- closure strip -------------------------------------------------- */

.nights { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.night {
  flex: 1 1 130px; padding: 11px 13px; border-radius: 12px; font-size: 13px;
  border: 1px solid var(--line-2); background: var(--paper);
}
.night b { display: block; font-size: 14px; margin-bottom: 2px; }
.night.ok { border-left: 4px solid var(--ocean); }
.night.warn { border-left: 4px solid var(--sun); }
.night.bad { border-left: 4px solid var(--rip); }

/* ---------- beach flags ---------------------------------------------------- */

.beach { display: flex; gap: 14px; align-items: flex-start; }
.flag { flex: none; width: 14px; height: 34px; border-radius: 2px; position: relative; margin-top: 3px; }
.flag::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: rgba(0, 0, 0, 0.25); border-radius: 2px;
}
.flag.safe { background: var(--ocean); }
.flag.mixed { background: var(--sun); }
.flag.danger { background: var(--rip); }
.beach .b-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.beach .verdict { font-size: 12px; color: var(--ink-2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 20px; border-radius: 2px; display: inline-block; }

/* ---------- misc ----------------------------------------------------------- */

.pill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2);
}
.dim { opacity: 0.6; }
.empty { color: var(--ink-2); font-style: italic; font-size: 14px; }
.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

footer {
  border-top: 1px solid var(--line); padding: 26px 0 50px;
  color: var(--ink-2); font-size: 13px;
}
footer p + p { margin-top: 6px; }

/* ---------- admin ---------------------------------------------------------- */

.admin-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-row .who { flex: 1 1 190px; min-width: 0; }
.admin-row .who strong { display: block; }
.admin-row button { padding: 8px 15px; font-size: 14px; }
