/*
Theme Name: Submerged
Theme URI: https://polarnetworks.io
Description: Bespoke North Atlantic underwater-exploration theme for Submerged — Rachel's record of diving, marine life, film and the long submarine build. Four pillars: Dive · Discover · Watch · Build. Classic PHP theme, no build step. Prepared by Polar Networks (Atlas Enable) to be safely maintained and extended by AI coding assistants.
Author: Polar Networks
Version: 0.1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: sub
*/

/* =========================================================================
 * 0. TOKENS — North Atlantic palette, from the Submerged brand guidelines
 * ===================================================================== */
:root {
  /* Core palette (sweater artwork, not tropical) */
  --abyss:    #1a3038;   /* deepest — dark sections */
  --ink:      #13262f;   /* body text */
  --atlantic: #24495a;   /* structural blue */
  --sweater:  #2f5f78;   /* mid blue */
  --storm:    #68797d;   /* grey-blue */
  --seafoam:  #afcbc7;   /* soft grey-green */
  --mist:     #d9e3df;   /* palest green-grey */
  --oat:      #e7ddc8;   /* warm neutral */
  --ice:      #f6f4ed;   /* warm off-white ground */
  --white:    #ffffff;
  --coral:    #a75d4e;   /* the one accent */
  --coral-deep:#8f4a3d;

  /* Pillar accents (all muted / North Atlantic) */
  --dive:     #2f5f78;
  --discover: #4f8878;
  --watch:    #1a3038;
  --build:    #55676d;

  /* System */
  --line:   rgba(19,38,47,.13);
  --line-2: rgba(19,38,47,.08);
  --muted:  #55666d;
  --shadow-sm: 0 6px 22px rgba(19,38,47,.07);
  --shadow:    0 24px 70px rgba(19,38,47,.14);

  --display: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  --body:    "Avenir Next", "Segoe UI", -apple-system, Arial, sans-serif;

  --wrap: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --step: clamp(1rem, .92rem + .4vw, 1.125rem);
}

/* =========================================================================
 * 1. BASE
 * ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--atlantic); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); }
p { margin: 0 0 1.1em; }

.container, .wide { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wide { --wrap: 1320px; }
section { padding: clamp(56px, 6vw, 104px) 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--storm); margin: 0 0 14px;
}
.muted { color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); line-height: 1.55; color: var(--atlantic); font-family: var(--display); font-style: italic; }

.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 60px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: 0; }
.pillar-words { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--atlantic); letter-spacing: .01em; margin: 10px 0 0; }
@media (max-width: 820px){ .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* =========================================================================
 * 2. BUTTONS
 * ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--atlantic); color: var(--ice); }
.btn-primary:hover { background: var(--abyss); color: var(--ice); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-deep); color: var(--white); }
.btn-seafoam { background: var(--seafoam); color: var(--ink); }
.btn-seafoam:hover { background: var(--mist); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--ice); border-color: rgba(246,244,237,.4); }
.btn-ghost-light:hover { border-color: var(--ice); color: var(--ice); }

/* =========================================================================
 * 3. TOP BAR + HEADER / NAV
 * ===================================================================== */
.topbar { background: var(--abyss); color: var(--seafoam); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.topbar .wide { display: flex; justify-content: center; padding: 9px 0; }
.topbar span { opacity: .85; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,237,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { font-family: var(--display); font-size: 1.85rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--ink); }
.brand img { max-height: 80px; width: auto; }
.brand .brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sweater); display: inline-block; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--mist); color: var(--atlantic); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-flag {
  display: inline-flex; align-items: center; gap: 5px; padding: .35rem .6rem; border-radius: 999px;
  text-decoration: none; font-size: 1rem; line-height: 1; opacity: .55; transition: opacity .15s ease, background .15s ease;
}
.lang-flag .lang-code { font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.lang-flag:hover { opacity: .85; background: var(--mist); }
.lang-flag.is-active { opacity: 1; background: var(--mist); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 82vw); flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--ice); padding: 90px 26px; box-shadow: var(--shadow); transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; z-index: 60; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1rem; width: 100%; }
}

/* =========================================================================
 * 4. HERO (front page)
 * ===================================================================== */
.hero { position: relative; background: var(--abyss); color: var(--ice); overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background:
  radial-gradient(120% 90% at 78% -10%, rgba(79,136,120,.28), transparent 60%),
  radial-gradient(90% 80% at 10% 110%, rgba(47,95,120,.4), transparent 55%);
  pointer-events:none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(60px,7vw,120px) 0; }
.hero .eyebrow { color: var(--seafoam); }
.hero h1 { color: var(--ice); }
.hero h1 em { font-style: italic; color: var(--seafoam); }
.hero-statement { font-size: clamp(1.1rem,1rem+.6vw,1.35rem); color: var(--mist); max-width: 46ch; margin-bottom: 26px; font-family: var(--body); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: linear-gradient(150deg, var(--sweater), var(--abyss)); }
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px){ .hero-inner { grid-template-columns: 1fr; gap: 34px; } .hero-figure { aspect-ratio: 16/11; } }

/* =========================================================================
 * 5. FOUR PILLARS GATEWAY
 * ===================================================================== */
.pillars { background: var(--ice); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px){ .pillar-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 26px; border-radius: var(--radius-lg); overflow: hidden;
  color: var(--ice); text-decoration: none; background: var(--atlantic);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ice); }
.pillar::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(19,38,47,.05), rgba(19,38,47,.72)); z-index:1; }
.pillar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.pillar > * { position: relative; z-index: 2; }
.pillar .pillar-icon { font-size: 1.6rem; margin-bottom: auto; opacity: .95; }
.pillar h3 { color: var(--ice); font-size: 1.5rem; margin: 0 0 4px; }
.pillar p { color: rgba(246,244,237,.82); font-size: .9rem; margin: 0; font-family: var(--body); }
.pillar--dive     { background: var(--dive); }
.pillar--discover { background: var(--discover); }
.pillar--watch    { background: var(--watch); }
.pillar--build    { background: var(--build); }

/* =========================================================================
 * 6. STORY CARDS + GRID
 * ===================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px){ .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .card-grid { grid-template-columns: 1fr; } }

.story-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.story-card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.story-thumb { aspect-ratio: 3/2; background: linear-gradient(150deg, var(--mist), var(--seafoam)); position: relative; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb .thumb-emoji { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2.6rem; }
.story-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pillar-tag { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; color: var(--white); background: var(--storm); }
.pillar-tag.t-dive { background: var(--dive); }
.pillar-tag.t-discover { background: var(--discover); }
.pillar-tag.t-watch { background: var(--watch); }
.pillar-tag.t-build { background: var(--build); }
.story-body h3 { margin: 0; font-size: 1.3rem; }
.story-excerpt { color: var(--muted); font-size: .95rem; margin: 0; }
.story-meta { margin-top: auto; font-size: .78rem; color: var(--storm); letter-spacing: .02em; display: flex; gap: 12px; flex-wrap: wrap; }
.story-card.has-video .story-thumb::after { content:"▶"; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:56px; height:56px; display:flex; align-items:center; justify-content:center; background:rgba(19,38,47,.62); color:#fff; border-radius:50%; font-size:1rem; }

/* =========================================================================
 * 7. FEATURED WATCH + CURRENT BUILD
 * ===================================================================== */
.feature-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
@media (max-width: 900px){ .feature-split { grid-template-columns: 1fr; } }

.watch-feature { background: var(--abyss); border-radius: var(--radius-lg); overflow: hidden; color: var(--ice); }
.watch-feature .yt { border-radius: 0; }
.watch-feature .wf-body { padding: 26px 28px 30px; }
.watch-feature h3 { color: var(--ice); }
.watch-feature p { color: var(--mist); }

.build-feature { background: var(--oat); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.build-stage { font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--build); }
.build-feature h3 { margin: 8px 0 10px; }
.build-progress { height: 8px; border-radius: 999px; background: rgba(85,103,109,.22); overflow: hidden; margin: 14px 0 8px; }
.build-progress span { display: block; height: 100%; background: var(--build); border-radius: 999px; }

/* Responsive YouTube facade */
.yt { position: relative; aspect-ratio: 16/9; background: var(--abyss); overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(19,38,47,.4); }
.yt .yt-play::after { content:""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

/* =========================================================================
 * 8. TWO SHARKS motif
 * ===================================================================== */
.sharks { background: var(--mist); }
.shark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px){ .shark-grid { grid-template-columns: 1fr; } }
.shark { background: var(--white); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--line-2); }
.shark-face { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; overflow: hidden; }
.shark-face img { width: 100%; height: 100%; object-fit: contain; padding: 22px; box-sizing: border-box; display: block; }
.shark--finn .shark-face { background: var(--atlantic); color: var(--ice); }
.shark--bertie .shark-face { background: var(--seafoam); color: var(--atlantic); }
.shark h3 { margin: 0 0 2px; }
.shark .role { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--storm); }
.shark p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

/* =========================================================================
 * 9. SINGLE / ARTICLE
 * ===================================================================== */
.article-hero { background: var(--abyss); color: var(--ice); }
.article-hero .wide { padding: clamp(40px,5vw,72px) 0 0; }
.article-hero .eyebrow { color: var(--seafoam); }
.article-hero h1 { color: var(--ice); max-width: 20ch; }
.article-hero .lede { color: var(--mist); font-style: normal; font-family: var(--body); }
.article-figure { margin-top: 40px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/8; background: var(--sweater); }
.article-figure img { width:100%; height:100%; object-fit: cover; }

/* An in-body photo (inside .prose) — shows the whole image, no forced crop,
   unlike .article-figure which is a fixed wide-banner crop for the article hero. */
.prose figure.article-figure { aspect-ratio: auto; background: none; margin: 28px 0; border-radius: var(--radius-lg); }
.prose figure.article-figure img { width: 100%; height: auto; object-fit: contain; display: block; }
.prose figure.article-figure figcaption { padding: 10px 4px 0; font-size: .85rem; color: var(--muted); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 22px 0 4px; }
.meta-chip { display: inline-flex; align-items: baseline; gap: 6px; background: rgba(246,244,237,.08); border: 1px solid rgba(246,244,237,.16); color: var(--ice); border-radius: 999px; padding: 7px 14px; font-size: .82rem; }
.meta-chip b { font-weight: 600; color: var(--seafoam); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.article-body { padding: clamp(46px,5vw,80px) 0; }
.prose { max-width: 44rem; margin-inline: auto; font-size: 1.12rem; line-height: 1.75; }
.prose > * { margin-inline: auto; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose img { border-radius: var(--radius-md); margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--sweater); font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--atlantic); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .84rem; color: var(--storm); margin-top: 8px; text-align: center; }
.prose a { color: var(--atlantic); }

/* Diver's log panel (Dive posts) */
.dive-log { max-width: 44rem; margin: 0 auto 42px; background: var(--oat); border: 1px solid rgba(19,38,47,.12); border-radius: var(--radius-md); padding: 22px 26px 14px; box-shadow: var(--shadow-sm); }
.dive-log__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid rgba(19,38,47,.16); padding-bottom: 12px; margin-bottom: 4px; }
.dive-log__stamp { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; color: var(--atlantic); }
.dive-log__no { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--storm); border: 1.5px solid var(--storm); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.dive-log__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; margin: 0; }
.dive-log__grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed rgba(19,38,47,.18); }
.dive-log__grid dt { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--storm); margin: 0; }
.dive-log__grid dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 560px){ .dive-log__grid { grid-template-columns: 1fr; gap: 0; } }

/* Inline film — a non-Watch post that also carries a video */
.inline-video { max-width: 60rem; margin: 0 auto 42px; }
.inline-video .eyebrow { text-align: left; }
.inline-video .yt { border-radius: var(--radius-md); overflow: hidden; }

/* Gallery */
.sub-gallery { max-width: 60rem; margin: 40px auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.sub-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 620px){ .sub-gallery { grid-template-columns: repeat(2,1fr); } }

/* Safety note (Dive / Build) */
.safety-note { max-width: 44rem; margin: 32px auto; background: var(--mist); border-radius: var(--radius-md); padding: 18px 22px; font-size: .92rem; color: var(--atlantic); display: flex; gap: 12px; }
.safety-note b { display:block; font-family: var(--body); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color: var(--storm); }

/* Questions & Answers (in-body accordion) */
.prose details.sub-qa { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; margin: 12px 0; background: var(--white); }
.prose details.sub-qa summary { cursor: pointer; font-weight: 700; color: var(--atlantic); list-style: none; }
.prose details.sub-qa summary::-webkit-details-marker { display: none; }
.prose details.sub-qa summary::before { content: '+ '; color: var(--sweater); }
.prose details.sub-qa[open] summary::before { content: '– '; }
.prose details.sub-qa p { margin: 10px 0 0; color: var(--muted); }

/* Build prev/next */
.build-nav { max-width: 60rem; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.build-nav a { background: var(--oat); border-radius: var(--radius-md); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.build-nav a:hover { background: var(--seafoam); }
.build-nav .dir { font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color: var(--build); }
.build-nav .n { text-align: right; }

/* Related */
.related { background: var(--ice); }

/* =========================================================================
 * 10. ARCHIVE
 * ===================================================================== */
.archive-head { background: var(--abyss); color: var(--ice); }
.archive-head .wide { padding: clamp(48px,6vw,96px) 0; }
.archive-head .eyebrow { color: var(--seafoam); }
.archive-head h1 { color: var(--ice); }
.archive-head p { color: var(--mist); max-width: 52ch; }

/* About page */
.about-hero__inner { display: flex; align-items: center; gap: 44px; padding: clamp(40px,5vw,76px) 0; }
.about-photo { flex: 0 0 200px; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: linear-gradient(150deg, var(--sweater), var(--abyss)); display: flex; align-items: center; justify-content: center; border: 4px solid rgba(246,244,237,.14); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo__ph { color: var(--mist); font-size: .82rem; text-align: center; padding: 0 16px; line-height: 1.4; }
.about-hero .eyebrow { color: var(--seafoam); }
.about-hero h1 { color: var(--ice); margin: 0; }
@media (max-width: 640px){ .about-hero__inner { flex-direction: column; text-align: center; gap: 24px; } }

/* =========================================================================
 * 11. NEWSLETTER + FOOTER
 * ===================================================================== */
.news-band { background: var(--seafoam); }
.news-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: center; }
@media (max-width: 780px){ .news-inner { grid-template-columns: 1fr; } }
.news-inner h2 { margin: 0 0 6px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input[type=email] { flex: 1; min-width: 200px; padding: .9rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--atlantic); background: var(--ice); font: inherit; }
.news-form .btn { flex: 0 0 auto; }

.site-footer { background: var(--abyss); color: var(--mist); }
.footer-top { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 24px 40px; padding: clamp(38px,4vw,58px) 0 26px; align-items: start; }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--ice); }
.footer-logo-img { height: 64px; width: auto; object-fit: contain; display: block; }
.footer-brand p { color: var(--storm); max-width: 30ch; margin-top: 12px; font-size: .92rem; }
.footer-col h4 { color: var(--seafoam); font-family: var(--body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--mist); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--coral); }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a, .social-row .social-static { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(246,244,237,.08); color: var(--ice); }
.social-row a:hover { background: var(--sweater); color: #fff; }
.social-row .social-static { opacity: .45; }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }
.footer-family { border-top: 1px solid rgba(246,244,237,.1); padding: 20px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer-family__label { color: var(--storm); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.footer-family a { color: var(--mist); font-size: .88rem; font-weight: 600; text-decoration: none; }
.footer-family a:hover { color: var(--coral); }
.footer-base { border-top: 1px solid rgba(246,244,237,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--storm); }
.footer-base a { color: var(--storm); text-decoration: none; }
.footer-base a:hover { color: var(--mist); }

/* =========================================================================
 * 12. FORMS + TOAST
 * ===================================================================== */
.sub-form { max-width: 40rem; }
.sub-form label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .9rem; }
.sub-form input, .sub-form textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--white); }
.sub-form input:focus, .sub-form textarea:focus { outline: none; border-color: var(--atlantic); }
.hp-field { position: absolute; left: -9999px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--ice); padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .3s ease; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================================
 * 13. UTIL
 * ===================================================================== */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* =========================================================================
 * 14. WOOCOMMERCE — North Atlantic shop styling (first pass)
 * ===================================================================== */
.woocommerce, .woocommerce-page { font-family: var(--body); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering select { color: var(--muted); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin: 0; padding: 0; }
@media (max-width: 1000px){ .woocommerce ul.products { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 720px){ .woocommerce ul.products { grid-template-columns: repeat(2,1fr); } }
.woocommerce ul.products li.product { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; padding: 0 0 18px; margin: 0; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.woocommerce ul.products li.product a img { margin: 0 0 14px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--display); font-size: 1.15rem; color: var(--ink); padding: 0 18px; }
.woocommerce ul.products li.product .price { color: var(--atlantic); font-weight: 700; padding: 0 18px; display: block; margin: 4px 0 14px; }
.woocommerce ul.products li.product .price del { color: var(--storm); font-weight: 400; }
.woocommerce ul.products li.product .button { margin: 0 18px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--atlantic); color: var(--ice); border-radius: 999px; font-family: var(--body); font-weight: 600; padding: .7rem 1.4rem; border: 0; cursor: pointer; transition: background .18s ease, transform .12s ease; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--abyss); color: var(--ice); transform: translateY(-2px); }
.woocommerce span.onsale { background: var(--coral); color: #fff; border-radius: 999px; font-weight: 700; min-height: auto; min-width: auto; line-height: 1; padding: 6px 12px; }
.woocommerce div.product .product_title { font-family: var(--display); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--atlantic); font-weight: 700; }
.woocommerce .quantity input.qty { border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius-sm); border-top-color: var(--atlantic); }
.woocommerce-message { border-top-color: var(--discover); }
.woocommerce-error { border-top-color: var(--coral); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce-checkout input[type=text], .woocommerce-checkout input[type=email], .woocommerce-checkout input[type=tel],
.select2-container--default .select2-selection--single { border-radius: var(--radius-sm); border-color: var(--line); }
.woocommerce table.shop_table { border-radius: var(--radius-md); }
