:root {
  --navy: #14283a;
  --deep: #20384a;
  --sea: #3f6f7a;
  --glass: #8fb3ad;
  --foam: #e6eeea;
  --sand: #f4ede2;
  --sand-dark: #c9a77c;
  --sun: #f2b880;
  --ink: #1b2a33;
  --muted: #5d6d74;
  --radius: 14px;
  --display: "Tenor Sans", "Helvetica Neue", sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); text-transform: uppercase; letter-spacing: .08em; line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--sea); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sea); margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: transform .2s, background .2s, color .2s;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--sand); }
.btn-primary:hover { background: var(--sea); }
.btn-ghost { border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--sand); }
.link { font-weight: 600; color: var(--sea); font-size: .95rem; }
.link:hover { color: var(--navy); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(244, 237, 226, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(20,40,58,.08); }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; color: var(--navy); }
.logo svg { width: 34px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: .95rem; color: var(--navy); }
.nav-links a:hover { color: var(--sea); }
.nav-cta { padding: .55rem 1.1rem; border: 1.5px solid var(--navy); border-radius: 999px; }
.nav-cta:hover { background: var(--navy); color: var(--sand) !important; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--navy); border-radius: 999px; padding: .45rem 1rem; font: 600 .85rem var(--sans); color: var(--navy); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-sky {
  position: absolute; inset: 0 0 38%; overflow: hidden;
  background: linear-gradient(180deg, #dfe8e4 0%, #f6e3cc 70%, #f8d7b4 100%);
}
.sun {
  position: absolute; left: 74%; bottom: -100px; width: 200px; height: 200px; margin-left: -100px;
  border-radius: 50%; background: radial-gradient(circle, #f7c08a 0%, #ec9a5c 68%, rgba(236,154,92,0) 70%); filter: drop-shadow(0 0 40px rgba(236,154,92,.55));
  animation: rise 6s ease-out both;
}
@keyframes rise { from { transform: translateY(80px); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-sea {
  position: absolute; inset: 62% 0 0;
  background: linear-gradient(180deg, #a9c4bd 0%, var(--sea) 55%, var(--deep) 100%);
}
.hero-sea::before {
  content: ""; position: absolute; left: 74%; top: 0; width: 140px; height: 70%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(251,211,163,.8), rgba(251,211,163,0));
  filter: blur(6px);
}
.ripple { position: absolute; height: 1.5px; background: rgba(255,255,255,.45); border-radius: 2px; animation: drift 9s ease-in-out infinite; }
.r1 { top: 22%; left: 12%; width: 22%; }
.r2 { top: 46%; right: 10%; width: 28%; animation-delay: -3s; }
.r3 { top: 72%; left: 30%; width: 18%; animation-delay: -6s; }
@keyframes drift { 50% { transform: translateX(30px); opacity: .5; } }

.hero-copy { position: relative; z-index: 2; padding: 0 1.25rem; max-width: 760px; margin-top: -20vh; }
.hero-copy h1 { color: var(--navy); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--deep); margin: 1.25rem auto 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Strip */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(244,237,226,.15); color: var(--sand);
}
.strip > div { background: var(--navy); padding: 1.6rem 1.25rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.strip strong { font-family: var(--display); font-size: .95rem; font-weight: 400; text-transform: uppercase; letter-spacing: .16em; }
.strip span { font-size: .85rem; opacity: .75; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem); max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: 2.5rem; max-width: 620px; }
.section-head.sub { display: flex; justify-content: space-between; align-items: baseline; max-width: none; margin-top: 5rem; }
.section-head.sub h2 { font-size: 1.8rem; }
.section-sub { color: var(--muted); margin-top: .75rem; }

/* Shop by moment */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.moment {
  aspect-ratio: 3/4; border-radius: var(--radius); position: relative; overflow: hidden; color: var(--sand);
  padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .3s, box-shadow .3s;
}
.moment:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(20,40,58,.45); }
.moment .orb { position: absolute; left: 50%; width: 90px; height: 90px; border-radius: 50%; transform: translateX(-50%); }
.moment h3 { text-transform: uppercase; letter-spacing: .2em; font-size: 1.3rem; }
.moment p { font-size: .9rem; opacity: .85; }
.moment .link { color: inherit; margin-top: .6rem; }
.m-dawn { background: linear-gradient(180deg, #c9d8d4 0%, #f3c59a 58%, var(--sea) 58.3%, var(--deep) 100%); }
.m-dawn .orb { top: calc(58% - 45px); background: #ec9a5c; clip-path: inset(0 0 50% 0); }
.m-noon { background: linear-gradient(180deg, #a9c9d3 0%, var(--foam) 52%, var(--glass) 52.3%, var(--sea) 100%); color: var(--navy); }
.m-noon .orb { top: 14%; background: #f7d9a8; }
.m-dusk { background: linear-gradient(180deg, #2c4258 0%, #c98a6a 56%, var(--deep) 56.3%, var(--navy) 100%); }
.m-dusk .orb { top: calc(56% - 45px); background: #e8a072; clip-path: inset(0 0 50% 0); }

/* Products */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.product { cursor: pointer; }
.product-img {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); background: #ebe2d4;
  display: grid; place-items: center; margin-bottom: .9rem; overflow: hidden; transition: background .3s;
}
.product:hover .product-img { background: #e3d7c4; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.04); }
.tag { z-index: 1; position: absolute; top: .8rem; left: .8rem; background: var(--navy); color: var(--sand); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; }
.product h3 { font-size: 1.05rem; }
.meta { font-size: .85rem; color: var(--muted); }
.price { font-weight: 600; margin-top: .2rem; }

/* Story */
.story { background: var(--foam); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem); }
.story-art svg { border-radius: var(--radius); width: 100%; box-shadow: 0 30px 60px -30px rgba(20,40,58,.5); }
.story-art .sky { fill: #f3dcc0; }
.story-art .sun { fill: var(--sun); }
.story-art .sea { fill: var(--sea); }
.story-art .sail { fill: var(--sand); }
.story-art .hull { fill: var(--navy); }
.story-art .line { stroke: rgba(255,255,255,.4); stroke-width: 2; stroke-linecap: round; }
.story-copy { max-width: 540px; }
.story-copy h2 { margin-bottom: 1.25rem; }
.story-copy p { color: var(--muted); margin-bottom: 1rem; }
.story-copy .btn { margin-top: 1rem; }

/* Tides */
.tide-card { background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 20px 50px -30px rgba(20,40,58,.4); }
.tide-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.tide-spot { font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.tide-date { color: var(--muted); font-size: .9rem; }
.badge { background: var(--foam); color: var(--sea); font-weight: 600; font-size: .8rem; padding: .45rem .9rem; border-radius: 999px; }
.tide-chart { width: 100%; height: 140px; margin: 1.5rem 0; }
.tide-fill { fill: rgba(143,179,173,.3); }
.tide-line { fill: none; stroke: var(--sea); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tide-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--foam); padding-top: 1.25rem; }
.tide-stats span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tide-stats strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--navy); }

/* Journal */
.journal { padding-top: 0; }
.journal .section-head.sub { margin-top: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { cursor: pointer; }
.post-img { aspect-ratio: 3/2; border-radius: var(--radius); margin-bottom: 1rem; transition: transform .3s; }
.post:hover .post-img { transform: translateY(-4px); }
.p1 { background: linear-gradient(180deg, #f8d7b4 0 45%, var(--sea) 45% 100%); }
.p2 { background: linear-gradient(180deg, #cfe0dc 0 40%, #6f9a98 40% 58%, #e8d6bc 58% 100%); }
.p3 { background: linear-gradient(160deg, var(--deep) 0%, var(--glass) 100%); }
.post h3 { margin-bottom: .4rem; }
.post p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.post .eyebrow { margin-bottom: .35rem; }

/* Join */
.join { background: var(--navy); color: var(--sand); text-align: center; padding: clamp(4rem, 9vw, 6.5rem) 1.25rem; }
.join-inner { max-width: 560px; margin: 0 auto; }
.join .eyebrow { color: var(--glass); }
.join p { opacity: .8; margin-top: .75rem; }
.join-form { display: flex; gap: .6rem; margin-top: 2rem; }
.join-form input {
  flex: 1; min-width: 0; padding: .9rem 1.25rem; border-radius: 999px; border: 1.5px solid rgba(244,237,226,.3);
  background: transparent; color: var(--sand); font: inherit;
}
.join-form input::placeholder { color: rgba(244,237,226,.5); }
.join-form input:focus { outline: none; border-color: var(--glass); }
.join .btn-primary { background: var(--sand); color: var(--navy); }
.join .btn-primary:hover { background: var(--glass); }
.join-msg { min-height: 1.6em; color: var(--glass); opacity: 1 !important; }
.join .join-soon { display: inline-block; margin-top: 2rem; padding: .85rem 1.6rem; border: 1px solid rgba(244,237,226,.35); border-radius: 999px; font-family: var(--display); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--glass); opacity: 1; }

/* Footer */
.footer { padding: 4rem clamp(1rem, 5vw, 4rem) 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; max-width: 1240px; margin: 0 auto; }
.footer-brand p { color: var(--muted); margin-top: .5rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-cols a { display: block; color: var(--muted); font-size: .95rem; margin-bottom: .45rem; }
.footer-cols a:hover { color: var(--navy); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(20,40,58,.1); padding-top: 1.5rem; font-size: .85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) and (min-width: 901px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .moments, .posts { grid-template-columns: 1fr; }
  .moment { aspect-ratio: 1/1; }
  .products {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .product { scroll-snap-align: start; }
  .story { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 1rem; right: 1rem; flex-direction: column; gap: 1rem;
    background: var(--sand); padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(20,40,58,.4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .strip { grid-template-columns: 1fr; }
  .tide-stats { grid-template-columns: repeat(2, 1fr); }
  .join-form { flex-direction: column; }
  .section-head.sub { margin-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.story-copy .story-quote { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--sea); font-size: 1rem; margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--glass); }
