:root {
  --bg: #06233d;
  --bg-strong: #04172f;
  --panel: rgba(7, 48, 72, 0.76);
  --panel-strong: rgba(6, 34, 53, 0.9);
  --panel-soft: rgba(12, 92, 124, 0.2);
  --text: #e5f5f7;
  --muted: rgba(229, 245, 247, 0.76);
  --line: rgba(125, 241, 236, 0.18);
  --accent: #169fab;
  --accent-strong: #7df1ec;
  --warm: #f2d689;
  --shadow: 0 30px 70px rgba(2, 14, 29, 0.34);
  --radius: 28px;
  --radius-sm: 18px;
  --content-width: min(1120px, calc(100vw - 2rem));
  --header-hero-height: 78vh;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(230, 194, 112, 0.12), transparent 18%),
    radial-gradient(circle at 80% 0%, rgba(51, 194, 199, 0.15), transparent 22%),
    linear-gradient(180deg, #04172f 0%, #072649 34%, #08365b 68%, #06233d 100%);
}

body[data-route="/"] {
  background:
    radial-gradient(circle at 18% 10%, rgba(242, 214, 137, 0.14), transparent 16%),
    radial-gradient(circle at 82% 0%, rgba(72, 225, 229, 0.16), transparent 22%),
    linear-gradient(180deg, #04172f 0%, #072649 34%, #08365b 68%, #06233d 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header,
.site-main,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.2rem 0 1rem;
}

.brand {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-actions,
.main-nav,
.footer-links,
.header-social,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem 1rem;
}

.main-nav a,
.footer-links a,
.header-social a {
  text-decoration: none;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(87, 218, 214, 0.14);
  box-shadow: inset 0 0 0 1px rgba(242, 214, 137, 0.18);
  transform: translateY(-1px);
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-social a:hover {
  color: #ffffff;
  background: rgba(87, 218, 214, 0.14);
  border-color: rgba(242, 214, 137, 0.44);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.social-glyph-threads {
  font-size: 1.35rem;
  transform: translateY(-0.02rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  width: min(1220px, calc(100vw - 1rem));
  margin: 0.5rem auto 2.2rem;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 2rem;
  background-size: cover;
  background-position: center;
}

.hero-simple,
.hero-half {
  background: linear-gradient(135deg, rgba(8, 61, 64, 0.93), rgba(199, 107, 50, 0.86));
}

.hero-half {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 0;
}

.hero-half-blog {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.hero-copy,
.hero-card {
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #f9f4ec;
}

.hero-card {
  max-width: 760px;
  background: rgba(14, 32, 34, 0.54);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

.hero-home {
  --hero-quote-width: min(94vw, clamp(24rem, 66vw, 52rem));
  --hero-title-width: min(94vw, clamp(22rem, 58vw, 40rem));
  min-height: var(--header-hero-height);
  display: block;
  width: 100vw;
  max-width: none;
  margin: 0 0 2.2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 0;
  box-shadow: none;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-page {
  min-height: var(--header-hero-height);
  display: grid;
  align-items: end;
  width: 100vw;
  max-width: none;
  margin: 0 0 2.2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(6rem, 12vw, 8rem) 0 clamp(5rem, 10vw, 7rem);
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(4, 23, 47, 0.18), rgba(4, 23, 47, 0.64)),
    radial-gradient(circle at center, rgba(72, 225, 229, 0.12), transparent 30%),
    var(--hero-image, linear-gradient(135deg, rgba(8, 61, 64, 0.93), rgba(199, 107, 50, 0.82)));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-page-visual {
  min-height: var(--header-hero-height);
  padding: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(4, 23, 47, 0.08), rgba(4, 23, 47, 0.24)),
    var(--hero-image, linear-gradient(135deg, rgba(8, 61, 64, 0.93), rgba(199, 107, 50, 0.82)));
  background-size: cover;
  background-position: center 28%;
}

.hero-home-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  padding:
    clamp(1.4rem, 3vw, 2.5rem)
    clamp(1.5rem, 5vw, 4rem)
    clamp(2.4rem, 7vw, 5rem);
  color: #ffffff;
  text-shadow:
    0 2px 10px rgba(2, 15, 33, 0.68),
    0 8px 30px rgba(2, 15, 33, 0.42);
}

.hero-page-copy {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(125, 241, 236, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(7, 47, 71, 0.68), rgba(4, 19, 33, 0.8)),
    rgba(5, 30, 50, 0.72);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(242, 214, 137, 0.08),
    var(--shadow);
}

.hero-home::before,
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-home::before {
  background:
    linear-gradient(180deg, rgba(4, 23, 47, 0.28), rgba(4, 23, 47, 0.46)),
    radial-gradient(circle at center, rgba(6, 35, 61, 0.08), rgba(6, 35, 61, 0.34));
}

.hero-page::before {
  background:
    radial-gradient(circle at 50% 40%, rgba(242, 214, 137, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(4, 23, 47, 0.04), rgba(4, 23, 47, 0.3));
}

.hero-home-copy > * {
  position: relative;
  z-index: 1;
}

.hero-home .hero-kicker {
  position: static;
  align-self: start;
  color: rgba(255, 255, 255, 0.82);
}

.hero-home-quote-wrap,
.hero-home-title-wrap {
  position: static;
  max-width: 100%;
  text-align: center;
}

.hero-home-quote-wrap {
  align-self: center;
  inline-size: var(--hero-quote-width);
}

.hero-home-title-wrap {
  align-self: end;
  inline-size: var(--hero-title-width);
  margin-top: clamp(1.5rem, 5vh, 3rem);
}

.hero-home h1 {
  margin: 0;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2.15rem, 1.35rem + 4vw, 4.5rem);
  line-height: 0.99;
  text-wrap: balance;
}

.hero-page h1 {
  max-width: 14ch;
}

.hero-page-story h1 {
  max-width: 16ch;
}

.hero-page-lead {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.72;
  color: rgba(229, 245, 247, 0.9);
}

.hero-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.2rem;
  margin-top: 1.25rem;
}

.hero-page-meta .post-meta,
.hero-page-byline {
  margin: 0;
}

.hero-page-byline {
  color: rgba(229, 245, 247, 0.74);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kicker,
.section-eyebrow,
.post-meta,
.book-credit {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  text-wrap: balance;
}

.hero-quote {
  margin: 1.1rem 0 0;
  max-width: 48rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: rgba(249, 244, 236, 0.92);
}

.hero-home .hero-quote {
  margin: 0;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.55rem);
  line-height: 1.62;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.site-main {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

body[data-route="/"] .site-main {
  gap: 1.5rem;
  width: min(1120px, calc(100vw - 2rem));
}

.hero-page + .site-main {
  margin-top: 0;
}

.panel {
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(22, 159, 171, 0.2), rgba(14, 106, 133, 0.12)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(244, 220, 147, 0.1),
    0 20px 40px rgba(2, 14, 29, 0.22);
}

.panel > .section-eyebrow {
  display: block;
  margin-bottom: 0.95rem;
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel p,
.panel li,
.panel label,
.panel blockquote {
  color: var(--text);
}

.home-panel {
  background:
    linear-gradient(180deg, rgba(22, 159, 171, 0.2), rgba(14, 106, 133, 0.12)),
    rgba(13, 138, 155, 0.18);
}

.home-proof-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.home-proof-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.home-newsletter-copy h2,
.home-feature-post h2,
.home-spotlight-card h3 {
  margin: 0;
  line-height: 1.05;
}

.home-newsletter-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-intro {
  gap: 0.9rem;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  color: #ffffff;
}

.page-intro-lead {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.72;
  color: rgba(229, 245, 247, 0.9);
}

.home-spotlight-card h3,
.home-feature-post h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.panel-contrast {
  background:
    linear-gradient(135deg, rgba(16, 118, 144, 0.24), rgba(6, 32, 52, 0.94)),
    rgba(6, 32, 52, 0.9);
}

.panel-feature {
  background:
    linear-gradient(180deg, rgba(15, 114, 133, 0.28), rgba(5, 31, 54, 0.92)),
    rgba(5, 31, 54, 0.9);
}

.panel-muted {
  background:
    linear-gradient(180deg, rgba(116, 92, 40, 0.14), rgba(5, 31, 54, 0.92)),
    rgba(5, 31, 54, 0.9);
}

.stack {
  display: grid;
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(125, 241, 236, 0.14);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(8, 69, 94, 0.54), rgba(8, 24, 43, 0.84)),
    rgba(8, 24, 43, 0.84);
  box-shadow: 0 18px 40px rgba(2, 14, 29, 0.18);
}

.book-cover,
.post-card img,
.hero-visual img {
  border-radius: calc(var(--radius-sm) - 4px);
}

.post-card,
.quote-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(11, 73, 97, 0.48), rgba(7, 30, 49, 0.88)),
    rgba(7, 30, 49, 0.88);
  box-shadow: 0 18px 40px rgba(2, 14, 29, 0.16);
}

.post-card h2,
.post-card h3,
.quote-card blockquote {
  margin: 0;
}

.post-card-rich img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card a {
  text-decoration: none;
}

.post-card a:hover {
  color: var(--accent-strong);
}

.quote-card blockquote {
  font-size: 1.08rem;
  line-height: 1.65;
  display: grid;
  gap: 1lh;
}

.quote-card {
  gap: 0;
  align-items: start;
}

.reviews-grid > .quote-card {
  display: flex;
  flex: 0 1 20rem;
  width: auto;
  margin: 0;
  align-self: stretch;
}

.reviews-grid > .quote-card blockquote {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.reviews-grid .quote-author {
  margin-top: auto;
  padding-top: 1rem;
}

.quote-copy {
  margin: 0;
}

.quote-author {
  margin: 0;
  display: block;
  font-style: normal;
  color: var(--muted);
}

.prose {
  color: rgba(229, 245, 247, 0.92);
  line-height: 1.78;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 1.4rem 0 0.5rem;
  line-height: 1.15;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0.8rem 0;
}

.prose a {
  color: var(--accent-strong);
}

.prose a:hover {
  color: #ffffff;
}

.content-image {
  margin: 0;
}

.content-image img {
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(2, 14, 29, 0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 128, 144, 0.92);
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(242, 214, 137, 0.44);
}

.button-secondary {
  background: rgba(117, 234, 230, 0.12);
  color: #ffffff;
}

.button-inline {
  margin-top: 0.4rem;
}

.contact-details {
  max-width: 48rem;
}

.contact-email a {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.note-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.home-newsletter-copy {
  gap: 0.75rem;
}

.home-newsletter-copy p {
  margin: 0;
  line-height: 1.55;
}

.home-newsletter-cta {
  display: flex;
  justify-content: center;
  margin-top: -0.2rem;
}

.newsletter-lead {
  font-size: 1.08rem;
}

.newsletter-notes {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(117, 234, 230, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(4, 37, 58, 0.42);
}

.newsletter-note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.home-spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-spotlight-card {
  height: 100%;
  overflow: hidden;
}

.home-spotlight-card img,
.home-feature-post img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-spotlight-card .stack,
.home-feature-post .stack,
.home-proof-quote {
  height: 100%;
}

.home-feature-post p,
.home-spotlight-card p,
.home-proof-quote p {
  margin: 0;
}

.home-proof-quote {
  gap: 0.9rem;
  align-content: start;
}

.home-proof-quote blockquote {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.72;
}

.about-manifesto {
  justify-items: start;
  text-align: left;
}

.about-manifesto-text {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  line-height: 1.82;
  color: #ffffff;
}

.collection-list,
.reviews-stack {
  gap: 1.25rem;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-cluster {
  display: grid;
  gap: 1rem;
}

.review-cluster h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.panel-story {
  padding: clamp(1.4rem, 2.4vw, 2.4rem);
}

.story-prose,
.legal-prose {
  max-width: 56rem;
}

.hero-page-story .hero-page-copy {
  max-width: min(880px, calc(100vw - 2rem));
}

.text-below-image-panel {
  display: grid;
  gap: 1.35rem;
}

.site-footer {
  display: grid;
  gap: 0.8rem;
  padding: 0 0 2.8rem;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  :root {
    --header-hero-height: 68vh;
  }

  .hero-half,
  .book-card,
  .home-proof-grid,
  .home-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 58vh;
    padding: 1rem;
  }

  .hero-card,
  .hero-copy {
    padding: 1.25rem;
  }

  .hero-home {
    --hero-quote-width: min(92vw, clamp(21rem, 78vw, 44rem));
    --hero-title-width: min(90vw, clamp(18rem, 70vw, 34rem));
    padding: 2rem 1.25rem;
  }

  .hero-page {
    padding-top: 5.5rem;
  }

  .hero-page-visual {
    padding: 0;
  }

  .hero-page + .site-main {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-hero-height: 62vh;
  }

  .site-header {
    padding-top: 0.9rem;
  }

  .header-actions,
  .main-nav {
    width: 100%;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero {
    width: min(100vw - 0.5rem, 100%);
    border-radius: 24px;
  }

  .hero h1,
  .hero-home h1,
  .hero-page h1 {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .hero-home {
    --hero-quote-width: min(92vw, 32rem);
    --hero-title-width: min(92vw, 24rem);
    width: 100vw;
    min-height: max(56svh, 33rem);
    margin-bottom: 1.75rem;
    border-radius: 0;
    padding: 0;
  }

  .hero-home-copy {
    position: relative;
    inset: auto;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(1.25rem, 4svh, 2rem);
    padding: clamp(1.35rem, 4svh, 2rem) 1rem clamp(2rem, 6svh, 3rem);
  }

  .hero-home-quote-wrap {
    align-self: center;
  }

  .hero-home-title-wrap {
    align-self: center;
    margin-top: 0;
  }

  .hero-home h1 {
    font-size: clamp(1.95rem, 8vw, 2.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-home .hero-quote {
    font-size: clamp(0.92rem, 3.8vw, 1rem);
    line-height: 1.55;
    text-wrap: normal;
    overflow-wrap: break-word;
  }

  .hero-page {
    margin-bottom: 1.75rem;
    padding: 5.25rem 0 4.5rem;
  }

  .hero-page-visual {
    padding: 0;
  }

  .hero-page-copy {
    width: min(calc(100vw - 1rem), 100%);
    padding: 1.25rem;
  }

  .hero-page + .site-main {
    margin-top: 0;
  }

  .about-manifesto-text {
    max-width: 100%;
    font-size: clamp(1.12rem, 5vw, 1.5rem);
  }
}
