
:root {
  --sand: #efe6d4;
  --sand-2: #f8f2e8;
  --ink: #18231f;
  --muted: #697269;
  --line: rgba(24, 35, 31, .14);
  --kelp: #24463e;
  --sea: #527a76;
  --foam: #fbfaf5;
  --sun: #c67c4a;
  --shadow: 0 24px 70px rgba(24, 35, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-2), #fffaf0 54%, #f4ead8);
}

a { color: inherit; }
.hero {
  min-height: 72vh;
  padding: 22px clamp(18px, 4vw, 56px) 64px;
  background:
    radial-gradient(circle at 78% 18%, rgba(82, 122, 118, .28), transparent 34%),
    linear-gradient(135deg, #f8f2e8 0%, #e6d3b8 52%, #c8d9d4 100%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto 76px;
}
.mark { font-family: Georgia, "Times New Roman", serif; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 750; color: var(--sea); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; line-height: .96; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 9vw, 116px); max-width: 880px; }
h2 { font-size: clamp(32px, 4.6vw, 62px); }
.lede { max-width: 690px; margin: 28px 0 0; color: #33413b; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.primary { background: var(--kelp); color: var(--foam); border-color: var(--kelp); }
.button.ghost:hover, .button.primary:hover { transform: translateY(-1px); }
.log-card {
  background: rgba(251, 250, 245, .74);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card-kicker { color: var(--sea); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.log-card h2 { margin-top: 18px; font-size: clamp(31px, 3vw, 46px); }
.log-card p { color: var(--muted); line-height: 1.55; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.mini-stats span { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13px; }
.mini-stats strong { display: block; color: var(--ink); font-size: 28px; }
main { max-width: 1120px; margin: 0 auto; padding: 52px clamp(18px, 4vw, 28px) 80px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 34px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: #33413b; }
.photo-break {
  margin: 0 0 42px;
  color: var(--muted);
}
.polaroid-break {
  display: grid;
  justify-items: center;
  padding: clamp(12px, 3vw, 30px) 0 0;
}
.polaroid-stack {
  position: relative;
  width: min(500px, 92vw);
  min-height: clamp(390px, 58vw, 500px);
  filter: drop-shadow(0 28px 50px rgba(24, 35, 31, .18));
}
.polaroid {
  position: absolute;
  display: block;
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), transparent 34%),
    #f4f0df;
  border: 1px solid rgba(24, 35, 31, .1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    0 16px 34px rgba(24, 35, 31, .16);
}
.polaroid-back {
  inset: 8% 20% auto auto;
  width: min(230px, 40vw);
  height: min(278px, 48.5vw);
  border-radius: 4px;
  overflow: hidden;
}
.polaroid-back::before {
  content: "";
  position: absolute;
  inset: 14px 14px 64px;
  background:
    linear-gradient(180deg, rgba(9, 68, 92, .1), rgba(232, 223, 199, .24)),
    url("images/hawaiian-surfer-web.jpg") center / cover;
  border-radius: 2px;
  box-shadow: inset 0 0 18px rgba(24, 35, 31, .22);
  filter: blur(.35px) saturate(.78) contrast(.76) brightness(1.13) sepia(.14);
}
.polaroid-back::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(20deg, rgba(24, 35, 31, .035) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 12% 88%, rgba(132, 91, 61, .13) 0 2px, transparent 4px),
    linear-gradient(90deg, rgba(24, 35, 31, .04), transparent 18%, transparent 82%, rgba(24, 35, 31, .04));
  mix-blend-mode: multiply;
}
.back-one { transform: rotate(-8deg) translate(-64px, 36px); }
.back-one::before { background-position: 36% 46%; }
.back-two { transform: rotate(4deg) translate(18px, 44px); background: #f7f0dc; }
.back-two::before { background-position: 58% 54%; filter: blur(.35px) saturate(.72) contrast(.74) brightness(1.16) sepia(.18); }
.back-three { transform: rotate(9deg) translate(54px, 72px); background: #eee6d0; }
.back-three::before { background-position: 72% 48%; filter: blur(.35px) saturate(.68) contrast(.72) brightness(1.18) sepia(.22); }
.polaroid-front {
  inset: 0 auto auto 50%;
  width: min(300px, 72vw);
  padding: 18px 18px 82px;
  border-radius: 5px;
  transform: translateX(-50%) rotate(-1.4deg);
  z-index: 1;
  overflow: hidden;
}
.polaroid-front::before,
.polaroid-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.polaroid-front::before {
  background:
    radial-gradient(circle at 88% 8%, rgba(24, 35, 31, .18) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 13%, rgba(24, 35, 31, .14) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(24, 35, 31, .04), transparent 12%, transparent 88%, rgba(24, 35, 31, .05));
}
.polaroid-front::after {
  opacity: .46;
  background:
    linear-gradient(180deg, rgba(255, 252, 238, .42), rgba(255, 252, 238, .18)),
    repeating-linear-gradient(18deg, rgba(24, 35, 31, .04) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 8% 93%, rgba(132, 91, 61, .18) 0 2px, transparent 4px),
    radial-gradient(circle at 95% 42%, rgba(24, 35, 31, .13) 0 1px, transparent 3px);
}
.polaroid-front img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 49% 52%;
  border-radius: 2px;
  box-shadow: inset 0 0 22px rgba(24, 35, 31, .22);
  filter: blur(.45px) saturate(.78) contrast(.76) brightness(1.14) sepia(.12);
}
.photo-break figcaption {
  max-width: 660px;
  margin: 8px auto 0;
  padding: 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 10px;
  padding: 12px;
  margin: 0 0 42px;
  background: rgba(248,242,232,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: var(--foam);
  color: var(--ink);
  font: inherit;
}
.filter-pill {
  align-self: end;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--foam);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.filter-pill[aria-pressed="true"] { background: var(--sun); color: #fffaf4; border-color: var(--sun); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-heading h2 { max-width: 760px; }
.results-summary { color: var(--muted); margin: 0 0 14px; }
.view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,252,245,.74);
}
.view-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}
.view-button.active { background: var(--kelp); color: var(--foam); }
.map-panel {
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,252,245,.82);
  box-shadow: 0 12px 38px rgba(24, 35, 31, .07);
}
.wave-map {
  height: clamp(360px, 58vh, 620px);
  border-radius: 20px;
  overflow: hidden;
  background: #dbe6df;
}
.map-note {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.surf-pin {
  background: transparent;
  border: 0;
}
.surf-pin span {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--foam);
  border-radius: 999px 999px 999px 3px;
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px rgba(24, 35, 31, .28);
}
.surf-pin-default span { background: var(--sea); }
.surf-pin-want span { background: var(--sun); }
.surf-pin-hit span { background: #4e7d55; }
.map-popup { max-width: 260px; }
.map-popup h3 { margin: 2px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1; }
.map-popup p { margin: 0 0 10px; color: #425048; line-height: 1.35; }
.popup-kicker { color: var(--sea) !important; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.popup-note { color: var(--muted) !important; font-size: 12px; }
.popup-actions { margin-top: 10px; }
.popup-actions button { color: var(--muted); background: var(--foam); }
.popup-actions button.active { color: var(--foam); background: var(--kelp); }
.wave-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wave-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,252,245,.82);
  box-shadow: 0 12px 38px rgba(24, 35, 31, .07);
}
.wave-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span, .tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-size: 12px; }
.wave-card p { margin: 0; color: #425048; line-height: 1.45; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.card-actions button.active { background: var(--kelp); color: var(--foam); border-color: var(--kelp); }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 24px; }
.submit {
  margin-top: 68px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
  align-items: start;
  gap: 24px;
  padding: 32px;
  border-radius: 30px;
  background: var(--kelp);
  color: var(--foam);
}
.submit p { color: rgba(251,250,245,.76); line-height: 1.5; max-width: 650px; }
.submit .eyebrow { color: #b7d1ca; }
.submit .button.primary { background: var(--foam); color: var(--kelp); border-color: var(--foam); white-space: nowrap; }
.wave-form { display: grid; gap: 12px; }
.wave-form label { color: rgba(251,250,245,.78); }
.wave-form input, .wave-form textarea { border-color: rgba(251,250,245,.22); background: rgba(251,250,245,.94); }
.wave-form textarea { min-height: 96px; padding: 13px 14px; resize: vertical; border-radius: 16px; font: inherit; }
.form-note { margin: 0; font-size: 13px; color: rgba(251,250,245,.68); }
.form-note a { color: var(--foam); font-weight: 800; }
.contact {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
  align-items: start;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,252,245,.76);
  box-shadow: 0 12px 38px rgba(24, 35, 31, .06);
}
.contact-card { color: #425048; line-height: 1.5; }
.contact-card p { margin: 0 0 18px; }
.contact-card .button.primary { width: fit-content; }
footer { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 28px) 42px; color: var(--muted); display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
footer p { margin: 0; }
.muted { color: var(--muted); max-width: 520px; }

@media (max-width: 880px) {
  .hero-grid, .intro { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; position: static; }
  .search-wrap { grid-column: 1 / -1; }
  .wave-grid { grid-template-columns: 1fr 1fr; }
  .submit, .contact { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding-bottom: 42px; }
  .nav { margin-bottom: 54px; }
  .nav-links { display: none; }
  .toolbar, .wave-grid { grid-template-columns: 1fr; }
  .log-card { padding: 22px; }
  h1 { font-size: clamp(48px, 16vw, 74px); }
  .polaroid-stack { min-height: 380px; }
  .polaroid-front { width: 72vw; padding: 14px 14px 72px; }
  .polaroid-back { width: 54vw; height: 65vw; }
  .polaroid-back::before { inset: 12px 12px 54px; }
  .back-one { transform: rotate(-8deg) translate(-34px, 32px); }
  .back-two { transform: rotate(4deg) translate(14px, 42px); }
  .back-three { transform: rotate(9deg) translate(34px, 66px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
