/* Rising Tides
   Layout: a navy "water" band up top carrying the brand, then a calm sea-foam
   reading surface. Posts read like entries in a ship's log. */
:root {
  color-scheme: light;
  --navy: #0B1F3A;
  --navy-soft: #16345C;
  --gold: #F2B43C;
  --gold-deep: #9C6A14;
  --teal: #2496A8;
  --teal-deep: #1A6C79;
  --teal-pale: #D5EAEE;
  --foam: #EEF4F6;
  --paper: #FFFFFF;
  --ink: #0B1F3A;
  --muted: #3D5266;
  --line: #C6D4DC;
  --on-navy: #EEF4F6;
  --on-navy-muted: #B4C6D4;

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;

  --wrap: 1120px;
  --read: 42rem;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--font-label); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header { background: var(--navy); color: var(--on-navy); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 28px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.03em; line-height: 1; color: var(--on-navy); }
.brand-name span { color: var(--gold); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-navy); text-decoration: none; padding: 10px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }

/* Home hero */
.hero { background: var(--navy); color: var(--on-navy); text-align: center; }
.hero .wrap { padding-block: clamp(20px, 4vw, 44px) clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo { width: min(100%, 620px); }
.hero h1 { position: absolute; left: -9999px; }
.hero-waters { color: var(--on-navy-muted); }
.wave-edge { display: block; width: 100%; height: clamp(26px, 4vw, 54px); background: var(--navy); }
.wave-edge path { fill: var(--foam); }
.wave-edge.to-navy { background: var(--foam); }
.wave-edge.to-navy path { fill: var(--navy); }

/* Sections */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.more-link { font-family: var(--font-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; }
.wave-rule { display: block; width: 180px; height: 22px; margin-top: 12px; }

/* Welcome letter */
.welcome { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.welcome-text { display: flex; flex-direction: column; gap: 1.05em; max-width: var(--read); }
.welcome-text h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.welcome-text .lead { font-size: 1.3rem; line-height: 1.5; font-weight: 500; }
.welcome-aside { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  font-family: var(--font-label); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--navy); color: var(--on-navy); border: 0; border-radius: 8px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-soft); color: var(--on-navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #FFC95A; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photo slots: stand-ins until real photos are added */
.photo-slot {
  margin: 0; aspect-ratio: 3 / 2; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center;
  color: var(--teal-deep);
  background: repeating-linear-gradient(135deg, var(--teal-pale) 0 14px, #E4F1F4 14px 28px);
  border: 2px dashed var(--teal);
}
.photo-slot svg { width: 34px; height: 34px; }
.photo-slot .label { font-size: 0.78rem; }
.photo-slot .slot-note { font-size: 0.98rem; line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 30ch; }
.photo-slot.wide { aspect-ratio: 16 / 9; }
.photo-slot.tall { aspect-ratio: 4 / 5; }
.photo-slot.square { aspect-ratio: 1 / 1; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo figcaption, .slot-caption { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.card .photo-slot, .card .photo img { border-radius: 0; border-width: 0 0 2px 0; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card h3 { font-size: 1.5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.card p { font-size: 1.02rem; line-height: 1.5; color: var(--muted); }
.card .read { margin-top: auto; padding-top: 6px; font-family: var(--font-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: 0.84rem; }
.meta .type { color: var(--navy); background: var(--gold); padding: 1px 9px; border-radius: 999px; }
.card.feature { grid-column: 1 / -1; flex-direction: row; }
.card.feature > .photo-slot, .card.feature > .photo { flex: 1.15 1 0; min-width: 0; aspect-ratio: auto; min-height: 300px; border-width: 0 2px 0 0; }
.card.feature .card-body { flex: 1 1 0; min-width: 0; justify-content: center; padding: clamp(22px, 3vw, 40px); }
.card.feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.card.feature p { font-size: 1.12rem; }
.card.feature .read { margin-top: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font-family: var(--font-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem;
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }

/* Page title band */
.page-title { background: var(--navy); color: var(--on-navy); }
.page-title .wrap { padding-block: clamp(22px, 4vw, 44px) clamp(8px, 2vw, 18px); display: flex; flex-direction: column; gap: 10px; }
.page-title h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.page-title p { color: var(--on-navy-muted); max-width: 46rem; }
.page-title .kicker { color: var(--gold); }
.page-title .meta { color: var(--on-navy-muted); font-size: 0.9rem; }
.page-title .back { color: var(--on-navy-muted); font-family: var(--font-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; text-decoration: none; }
.page-title .back:hover { color: var(--gold); }

/* Article */
.article { max-width: calc(var(--read) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); padding-block: clamp(26px, 4vw, 44px) clamp(36px, 6vw, 64px); display: flex; flex-direction: column; gap: 1.25em; }
.article .standfirst { font-size: 1.38rem; line-height: 1.45; font-weight: 500; }
.article .prose { display: flex; flex-direction: column; gap: 1.15em; font-size: 1.19rem; line-height: 1.7; }
.article .prose h2 { font-size: 1.85rem; margin-top: 0.6em; }
.article .prose ul, .article .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.article .prose li::marker { color: var(--teal); }
.article .prose strong { font-weight: 600; }
.article-hero { max-width: calc(var(--wrap) - 120px); margin-inline: auto; padding-inline: var(--gutter); margin-top: clamp(22px, 4vw, 40px); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 1.7rem; }
.panel p { font-size: 1.05rem; }
.slot-pending { font-size: 1rem; color: var(--muted); border: 2px dashed var(--teal); background: var(--teal-pale); padding: 14px 16px; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.post-nav a:hover { border-color: var(--teal); }
.post-nav .label { font-size: 0.8rem; color: var(--teal-deep); }
.post-nav .t { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.post-nav .next { text-align: right; grid-column: 2; }

/* Sign-up band */
.signup-band { background: var(--navy); color: var(--on-navy); }
.signup-band .wrap { padding-block: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.signup-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--gold); }
.signup-band p { color: var(--on-navy-muted); margin-top: 8px; }
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup label { font-family: var(--font-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: var(--paper); border: 2px solid var(--paper); border-radius: 8px;
}
.signup-note { font-size: 0.98rem; color: var(--gold); }

/* Crew */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 26px; }
.crew-card { display: flex; flex-direction: column; gap: 12px; }
.crew-card h3 { font-size: 1.6rem; }
.crew-card .role { color: var(--teal-deep); font-size: 0.82rem; }
.crew-card p { font-size: 1.04rem; line-height: 1.5; }
.boat-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.boat-row .text { display: flex; flex-direction: column; gap: 12px; }
.boat-row h2 { font-size: clamp(2rem, 4vw, 2.7rem); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); }
.site-footer .wrap { position: relative; border-top: 3px solid var(--gold); padding-block: 34px 30px; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-end; }
.footer-dog { position: absolute; right: var(--gutter); top: -62px; width: 120px; height: 86px; overflow: visible; }
.site-footer .saying { font-family: var(--font-display); font-size: 1.5rem; color: var(--on-navy); line-height: 1.2; }
.site-footer .small { font-size: 0.95rem; margin-top: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-right: 140px; }
.site-footer nav a { color: var(--on-navy); font-family: var(--font-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; text-decoration: none; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--gold); }

/* 404 */
.lost { background: var(--navy); color: var(--on-navy); text-align: center; }
.lost .wrap { padding-block: clamp(40px, 8vw, 90px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lost-art { position: relative; padding-top: 118px; }
.lost-art svg { position: absolute; top: 0; left: 50%; margin-left: -115px; width: 230px; height: 165px; overflow: visible; }
.lost-art .num { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 10rem); line-height: 1; color: var(--gold); text-shadow: 5px 5px 0 var(--gold-deep); letter-spacing: 0.04em; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lost p { color: var(--on-navy-muted); max-width: 32rem; }

@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .welcome, .signup-band .wrap, .boat-row { grid-template-columns: minmax(0, 1fr); }
  .card.feature { flex-direction: column; }
  .card.feature > .photo-slot, .card.feature > .photo { aspect-ratio: 3 / 2; min-height: 0; border-width: 0 0 2px 0; flex: none; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { grid-column: 1; text-align: left; }
  .site-footer nav { margin-right: 0; }
  .footer-dog { width: 96px; height: 69px; top: -50px; }
  .brand-name { font-size: 1.45rem; }
  .brand img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .post-nav a { transition: border-color 0.15s ease, transform 0.15s ease; }
  .card:hover { transform: translateY(-2px); border-color: var(--teal); }
}

/* Real photos */
.photo.portrait { max-width: 520px; margin-inline: auto; }
.photo.portrait img { aspect-ratio: auto; }
.photo.square img { aspect-ratio: 1 / 1; }
.photo.tall img { aspect-ratio: 4 / 5; }
.article .prose .photo { margin-block: 0.4em; }
.card .photo { margin: 0; }
.card.feature > .photo img { height: 100%; }
.photo video { display: block; width: 100%; height: auto; background: var(--navy); }

/* Launch page: readable footer email link on navy */
.site-footer .small a { color: var(--on-navy); text-decoration-color: var(--gold); }
/* January teaser band */
.teaser { background: var(--navy); color: var(--on-navy); }
.teaser .wrap { padding-block: clamp(30px, 5vw, 56px); display: flex; flex-direction: column; gap: 12px; }
.teaser .label { color: var(--gold); }
.teaser h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--gold); max-width: 28ch; }
.teaser p { color: var(--on-navy-muted); max-width: var(--read); font-size: 1.15rem; }

/* Home band: logo left, photo right */
.band { background: var(--navy); color: var(--on-navy); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: center; padding-block: 8px clamp(24px, 3vw, 36px); }
.band h1 { position: absolute; left: -9999px; }
.band-logo { display: block; }
.band-logo img { width: 100%; height: auto; }
.band-photo { margin: 0; position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 2px solid var(--navy-soft); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; aspect-ratio: auto; }
.band-photo .tag { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--gold); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; }
@media (max-width: 760px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
  .band-logo { width: min(64%, 260px); }
  .band-photo { width: 100%; }
}
