/* Rare Sea Glass - Design System (v2, sea glass palette + Fraunces / Figtree) */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-italic-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallbacks so text does not jump when the web fonts arrive */
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 100.3%;
  ascent-override: 94.7%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Times New Roman'), local('Times'), local('Liberation Serif');
  size-adjust: 115.3%;
  ascent-override: 84.8%;
  descent-override: 22.1%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* sea glass palette */
  --ink: #0b2a33;
  --deep: #0b3b49;
  --deep-2: #072a35;
  --teal: #0e6474;
  --teal-strong: #0b5262;
  --seafoam: #bfe9d4;
  --seafoam-soft: #e6f5ee;
  --aqua: #93d8dc;
  --aqua-soft: #e2f3f4;
  --cobalt: #22509f;
  --cobalt-soft: #e6edf8;
  --amber: #cb9034;
  --amber-light: #eec676;
  --amber-soft: #faf0da;
  --amber-ink: #734a09;
  --paper: #fbf9f4;
  --sand: #f4efe4;
  --line: #e4ddce;
  --line-strong: #cfc6b2;
  --muted: #4a5f67;

  /* legacy names, still referenced by page level styles */
  --color-primary: var(--teal-strong);
  --color-primary-light: var(--teal);
  --color-secondary: var(--cobalt);
  --color-accent: var(--amber);
  --color-bg: var(--paper);
  --color-bg-alt: var(--sand);
  --color-surface: #ffffff;
  --color-text: var(--ink);
  --color-text-light: var(--muted);
  --color-border: var(--line);

  --font-display: 'Fraunces', 'Fraunces Fallback', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', 'Figtree Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --content-width: 760px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 42, 51, 0.05), 0 4px 14px rgba(11, 42, 51, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 42, 51, 0.06), 0 16px 36px rgba(11, 42, 51, 0.13);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

a { color: var(--teal-strong); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }

::selection { background: var(--seafoam); color: var(--ink); }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--deep);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.site-footer *:focus-visible,
.hero *:focus-visible,
.page-hero *:focus-visible,
.card-cta:focus-visible,
.cta-box *:focus-visible,
.cookie-consent-banner *:focus-visible {
  outline-color: var(--amber-light);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(251, 249, 244, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.35rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--teal-strong); background: var(--seafoam-soft); }

.nav-links a.active { color: var(--teal-strong); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

.content-narrow {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-solid { background: var(--teal-strong); color: #fff; }
.btn-solid:hover { background: var(--deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--teal-strong); border-color: var(--teal-strong); }
.btn-outline:hover { background: var(--seafoam-soft); color: var(--deep); border-color: var(--deep); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 1.25rem;
  color: var(--teal-strong);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--aqua);
  line-height: 1.2;
  padding: 0.35rem 0 0.25rem;
  transition: border-color 0.2s, color 0.2s;
}
.more-link::after { content: '\2192'; transition: transform 0.2s var(--ease); }
.more-link:hover { border-bottom-color: var(--amber); color: var(--deep); }
.more-link:hover::after { transform: translateX(4px); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep-2);
  color: #fff;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 44vw, 600px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.hero-copy { max-width: 35rem; }

.hero-copy::before {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 1.6rem;
  background: linear-gradient(90deg, var(--amber-light), var(--aqua));
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.9rem, 1.6rem + 5.6vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.hero p {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.6;
  color: #dcecec;
  max-width: 32rem;
}

.hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  display: block;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  display: block;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--deep-2) 0%, rgba(7, 42, 53, 0.86) 16%, rgba(7, 42, 53, 0.25) 52%, rgba(7, 42, 53, 0) 74%),
    linear-gradient(0deg, rgba(7, 42, 53, 0.4), rgba(7, 42, 53, 0) 30%);
}

/* ---------- Home sections ---------- */
.home { padding-top: 0; padding-bottom: 1rem; }

.home-section { padding-top: clamp(3rem, 6vw, 4.75rem); }

.section-head { margin-bottom: 1.75rem; max-width: 46rem; }
.section-head h2 { position: relative; padding-top: 1.1rem; }
.section-head h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
}
.section-head p { margin-top: 0.55rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.section-head + .card-grid { margin-top: 0; }
@media (min-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
  .card-grid--4 .card-body h3,
  .card-grid--4 .card-body h2 { font-size: 1.16rem; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  color: inherit;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--sand);
  transition: transform 0.6s var(--ease);
}
.card:hover img { transform: scale(1.04); }

.card-body {
  position: relative;
  padding: 1.35rem 1.4rem 1.5rem;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3,
.card-body h2 {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.25;
  transition: color 0.2s;
}
.card:hover .card-body h3,
.card:hover .card-body h2 { color: var(--teal-strong); }

.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-body .post-meta { margin: 0.9rem 0 0; padding-top: 0.2rem; margin-top: auto; }
.card-body p + .post-meta { padding-top: 0.9rem; }

/* full width call to action card */
.card-cta {
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 0;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(147, 216, 220, 0.22), rgba(147, 216, 220, 0) 55%),
    radial-gradient(90% 140% at 0% 100%, rgba(238, 198, 118, 0.16), rgba(238, 198, 118, 0) 55%),
    var(--deep);
}
.card-cta .card-body { background: none; text-align: center; align-items: center; justify-content: center; }
.card-cta .card-body h3,
.card-cta:hover .card-body h3 { color: #fff; font-size: 1.55rem; margin-bottom: 0.3rem; }
.card-cta .card-body h3::after { content: ' \2192'; color: var(--amber-light); }
.card-cta .card-body p { color: #d6e7e8; font-size: 1.02rem; }

/* guide feature panels */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-card::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -46px;
  width: 170px;
  height: 170px;
  background: url('/images/logo-mark.svg') center / contain no-repeat;
  opacity: 0.16;
  transform: rotate(14deg);
  pointer-events: none;
}
.feature-card--seafoam { background: linear-gradient(155deg, var(--seafoam-soft), #f6fbf8 70%); border-color: #cfe6da; }
.feature-card--amber { background: linear-gradient(155deg, var(--amber-soft), #fdf9ef 70%); border-color: #ecdcb6; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; max-width: 22rem; }
.feature-card p { color: #33474f; margin-bottom: 1.4rem; max-width: 32rem; }
.feature-card .btn { margin-top: auto; }

/* archive link tiles */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.link-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, color 0.2s;
}
.link-tile::before {
  content: '';
  flex: 0 0 22px;
  height: 22px;
  background: url('/images/logo-mark.svg') center / contain no-repeat;
}
.link-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: var(--teal-strong); }

/* ---------- Index page header ---------- */
.section-header {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.25rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  background: var(--sand);
  box-shadow: 0 0 0 100vmax var(--sand);
  -webkit-clip-path: inset(0 -100vmax);
  clip-path: inset(0 -100vmax);
}

.section-header h1 { color: var(--ink); position: relative; padding-top: 1.25rem; }
.section-header h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}

.section-header p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 0.75rem;
  max-width: 44rem;
}

.note { color: var(--muted); }
.note-center { text-align: center; margin-top: 1rem; }
.note-italic { font-style: italic; margin-top: 3rem; }

/* ---------- Blog index ---------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 1rem 0 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.blog-card-media { display: block; overflow: hidden; background: var(--sand); }
.blog-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

.blog-card-date,
.post-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.blog-card-date { margin-bottom: 0.6rem; }

.blog-card h2 { font-size: 1.42rem; line-height: 1.22; margin-bottom: 0.7rem; }
.blog-card h2 a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.blog-card h2 a:hover { color: var(--teal-strong); }

.blog-card-excerpt { color: #33474f; line-height: 1.62; font-size: 1rem; }

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 0.6rem;
  align-self: flex-start;
  color: var(--teal-strong);
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .blog-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .blog-card:first-child .blog-card-media { flex: 0 0 57%; }
  .blog-card:first-child .blog-card-body { justify-content: center; padding: 2.25rem 2.5rem; }
  .blog-card:first-child h2 { font-size: 2rem; line-height: 1.14; }
  .blog-card:first-child .blog-card-excerpt { font-size: 1.08rem; }
  .blog-card:first-child .read-more { margin-top: 0.5rem; }
}

/* ---------- Articles (blog posts, locations, archives, legal) ---------- */
.breadcrumbs {
  margin-bottom: 1.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.9;
}
.breadcrumbs a {
  color: var(--teal-strong);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 0.62rem 0.1rem;
  margin: -0.62rem 0;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--muted); }

.content-narrow > h1 { margin-bottom: 0.9rem; }

.post-meta { margin-bottom: 1rem; }
.content-narrow > .post-meta {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.content-narrow > .post-meta::before {
  content: '';
  flex: 0 0 16px;
  height: 16px;
  background: url('/images/logo-mark.svg') center / contain no-repeat;
}

.content-narrow > img,
.post-content img,
.post-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--sand);
}
.content-narrow > img { margin: 1.6rem 0 2rem; box-shadow: var(--shadow-lg); max-height: 34rem; object-fit: cover; }
.post-content img { margin: 2rem 0; }
.post-content figure { margin: 2rem 0; }
.post-content figure img { margin: 0; }
.post-content .figure-stack { display: grid; gap: 1.75rem; margin: 2rem 0; }
.post-content .figure-stack figure { margin: 0; }
.post-content figcaption,
figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.65rem;
  text-align: center;
  line-height: 1.5;
}

.content-narrow > h2,
.post-content h2 {
  margin: 2.9rem 0 1rem;
  color: var(--ink);
}
.content-narrow > h3,
.post-content h3 { margin: 2.1rem 0 0.7rem; font-size: 1.42rem; }

.content-narrow > p,
.content-narrow > ul,
.content-narrow > ol,
.post-content {
  font-size: 1.125rem;
  line-height: 1.78;
}
.post-content { color: #16333c; }
.content-narrow > p,
.post-content p { margin-bottom: 1.2rem; }

.post-content .lead,
.post-content > p.lead {
  font-size: 1.28rem;
  line-height: 1.65;
  color: var(--ink);
}

.content-narrow > ul,
.content-narrow > ol,
.post-content ul,
.post-content ol { margin: 1.1rem 0 1.4rem; padding-left: 1.5rem; }
.content-narrow > ul li,
.content-narrow > ol li,
.post-content li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.content-narrow > ul li::marker,
.post-content ul li::marker { color: var(--teal); }
.post-content ol li::marker { color: var(--teal-strong); font-weight: 700; }

.content-narrow a:not(.btn),
.post-content a:not(.btn) {
  color: var(--teal-strong);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--aqua);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.content-narrow a:not(.btn):hover,
.post-content a:not(.btn):hover { color: var(--deep); text-decoration-color: var(--amber); }
.content-narrow .breadcrumbs a { text-decoration: none; font-weight: 600; }
.content-narrow .breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--aqua); }

.post-content strong { color: var(--ink); font-weight: 700; }

.post-content blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--deep);
}

.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { margin: 0; border: 0; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
}
.post-content th,
.post-content td { padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-content thead th,
.post-content tr:first-child th {
  background: var(--sand);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--line-strong);
}
.post-content tbody tr:last-child td { border-bottom: 0; }

/* responsive video */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 2rem 0; border-radius: var(--radius); background: var(--deep-2); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* FAQ blocks */
.faq-section { margin-top: 1.5rem; }
.faq-item {
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius-sm);
}
.faq-item h3,
.post-content .faq-item h3 { font-size: 1.16rem; line-height: 1.3; margin: 0 0 0.5rem; color: var(--ink); }
.faq-item p,
.post-content .faq-item p { margin: 0; font-size: 1.04rem; line-height: 1.7; color: #223c45; }
.faq-item p + p { margin-top: 0.8rem; }

/* callouts and end notes */
.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.callout-center { text-align: center; color: var(--muted); }
.post-footnote {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

/* Archive badge */
.archive-badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber-ink);
  border: 1px solid #ecd9a8;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.5;
}
.content-narrow > .archive-badge { margin-bottom: 0.9rem; }
.archive-intro { margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }

/* ---------- Tool / guide page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2.75rem, 6vw, 4.25rem);
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(147, 216, 220, 0.22), rgba(147, 216, 220, 0) 60%),
    radial-gradient(60% 110% at 8% 100%, rgba(238, 198, 118, 0.14), rgba(238, 198, 118, 0) 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  background: url('/images/logo-mark.svg') center / contain no-repeat;
  opacity: 0.1;
  transform: rotate(-12deg);
  pointer-events: none;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: #dcecec;
  max-width: 40rem;
  margin: 0 auto;
}
.page-hero .hero-note { margin-top: 1rem; font-size: 0.95rem; color: #bcd6d8; }
.page-hero .breadcrumbs { color: #c8dfe1; margin-bottom: 1.25rem; }
.page-hero .breadcrumbs a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.page-hero .breadcrumbs a:hover { text-decoration-color: var(--amber-light); }

.page-hero-img {
  max-width: 880px;
  margin: -2rem auto 0;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.page-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

/* shared call to action panel */
.cta-box {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(147, 216, 220, 0.22), rgba(147, 216, 220, 0) 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(238, 198, 118, 0.15), rgba(238, 198, 118, 0) 60%),
    var(--deep);
}
.cta-box { margin-top: 2rem; }
.cta-box h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-box p { color: #dcecec; margin: 0 auto 1.5rem; max-width: 36rem; }
.cta-links { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.cta-links a:hover { transform: translateY(-2px); }
.cta-links a.primary { background: var(--seafoam); color: var(--ink); }
.cta-links a.primary:hover { background: #fff; }
.cta-links a.secondary { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.cta-links a.secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-bottom: 3rem; }
.content-narrow > img.notfound-mark,
.notfound-mark { width: 92px; height: 92px; margin: 0.5rem auto 1.25rem; display: block; box-shadow: none; background: none; border-radius: 0; }
.notfound h1 { margin-bottom: 1rem; }
.notfound-lede { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin: 0 auto 2rem; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-2);
  color: #c9dbdd;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #93d8dc, #4576cc, #2b9092, #bfe9d4, #eec676) 1;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  display: block;
}

.footer-brand-text p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.footer-contact { margin-top: 0.15rem !important; }
.footer-contact a { color: #e3f2f1; text-decoration: underline; text-decoration-color: rgba(147, 216, 220, 0.6); text-underline-offset: 3px; display: inline-block; padding: 0.7rem 0; margin: -0.7rem 0; }
.footer-contact a:hover { color: #fff; text-decoration-color: var(--amber-light); }

.footer-nav { display: flex; gap: 0.15rem 0.35rem; flex-wrap: wrap; justify-content: flex-end; margin-right: -0.8rem; }
.footer-nav a {
  color: #e3f2f1;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.footer-legal-row {
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
  font-size: 0.9rem;
}
.footer-legal-row a { color: #bcd3d6; text-decoration: none; padding: 0.5rem 0.4rem; display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal-row a:hover { color: #fff; text-decoration: underline; }
.footer-sep { color: #7f9da2; margin: 0 0.25rem; }

/* ---------- Cookie consent banner ---------- */
.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 2rem));
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--deep-2);
  color: #fff;
  border: 1px solid rgba(147, 216, 220, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(4, 24, 30, 0.42);
}

.cookie-consent-banner[hidden] { display: none; }

.cookie-consent-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #f1f7f6;
}

.cookie-consent-text a { color: var(--seafoam); text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-text a:hover { color: #fff; }

.cookie-consent-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }

.cookie-consent-btn {
  border: 1.5px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, border-color 0.2s;
}

.cookie-consent-btn-accept { background: var(--seafoam); color: var(--ink); }
.cookie-consent-btn-accept:hover { background: #fff; }

.cookie-consent-btn-decline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cookie-consent-btn-decline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-art { width: 50%; }
}

@media (max-width: 899px) {
  .blog-list { gap: 1.5rem; }

  /* hero stacks: copy on solid colour, photo band underneath */
  .hero { display: block; min-height: 0; }
  .hero-inner { padding: 3.25rem var(--gutter) 2.5rem; }
  .hero-art { position: relative; width: 100%; height: clamp(230px, 38vw, 320px); }
  .hero-art img { object-position: 50% 40%; }
  .hero-art::after {
    background: linear-gradient(180deg, var(--deep-2) 0%, rgba(7, 42, 53, 0.35) 34%, rgba(7, 42, 53, 0) 70%);
  }
}

@media (max-width: 768px) {
  body { font-size: 1.0625rem; }

  .nav-container { flex-direction: row; flex-wrap: nowrap; padding: 0.55rem var(--gutter); }
  .logo-img { height: 34px; }
  .nav-toggle { display: flex; margin-right: -10px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.75rem 0.9rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 42, 51, 0.14);
  }
  .nav-links.nav-open { display: flex; }

  .nav-links li a {
    display: flex;
    min-height: 50px;
    padding: 0 0.9rem;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
  }
  .nav-links li a:hover, .nav-links li a.active { background: var(--seafoam-soft); }
  .nav-links a.active::after { display: none; }

  .blog-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-card-body { padding: 1.3rem 1.3rem 1.4rem; }
  .blog-card h2 { font-size: 1.32rem; }

  .content-narrow > p,
  .content-narrow > ul,
  .content-narrow > ol,
  .post-content { font-size: 1.0625rem; line-height: 1.75; }
  .post-content .lead, .post-content > p.lead { font-size: 1.16rem; }
  .post-content table { font-size: 0.94rem; }
  .post-content th, .post-content td { padding: 0.65rem 0.6rem; }

  .footer-container { flex-direction: column; gap: 1.5rem; }
  .footer-nav { margin-left: -0.8rem; margin-right: 0; justify-content: flex-start; }
  .footer-legal-row { margin-left: var(--gutter); margin-right: var(--gutter); }
  .cta-links a { width: 100%; }
}

@media (max-width: 600px) {
  .cookie-consent-banner { flex-direction: column; align-items: stretch; bottom: 0.75rem; gap: 0.85rem; }
  .cookie-consent-text { flex: 0 0 auto; }
  .cookie-consent-actions { justify-content: flex-end; }
}

@media (max-width: 380px) {
  .logo-img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .blog-card:hover, .link-tile:hover, .btn:hover, .cta-links a:hover { transform: none; }
  .card:hover img, .blog-card:hover .blog-card-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-consent-banner, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
