:root {
  --ink: #172021;
  --muted: #5f6865;
  --ivory: #fff8eb;
  --paper: #f7ecdb;
  --teal: #215b58;
  --teal-dark: #123c3b;
  --coral: #c94e38;
  --ember: #963829;
  --gold: #f2c697;
  --plum: #3b2834;
  --blue: #10295b;
  --line: rgba(23, 32, 33, 0.16);
  --promo-height: 44px;
  --shadow: 0 24px 60px rgba(17, 26, 25, 0.26);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.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;
}

.preorder-banner {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: var(--promo-height);
  padding: 0.45rem 1rem;
  color: var(--ivory);
  background: var(--ember);
  box-shadow: 0 12px 28px rgba(23, 32, 33, 0.2);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.preorder-banner a {
  color: var(--ivory);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.preorder-banner a:hover,
.preorder-banner a:focus-visible {
  color: var(--gold);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: var(--promo-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  color: var(--ivory);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 248, 235, 0.94);
  box-shadow: 0 16px 50px rgba(23, 32, 33, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 235, 0.72);
  border-radius: 50%;
  background: var(--teal-dark);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(23, 32, 33, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.brand small {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.55rem);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a:focus-visible {
  color: var(--ember);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: rgba(18, 60, 59, 0.52);
  backdrop-filter: blur(8px);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  background: rgba(23, 32, 33, 0.06);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: var(--ivory);
  background: var(--teal-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 60, 59, 0.98) 0%, rgba(18, 60, 59, 0.82) 46%, rgba(15, 30, 41, 0.58) 100%),
    url("assets/jared-mathison.jpg") right center / cover no-repeat;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(23, 32, 33, 0.82), rgba(23, 32, 33, 0));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: 88vh;
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  font-weight: 500;
  line-height: 0.88;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

p {
  line-height: 1.7;
}

.hero-line {
  max-width: 630px;
  margin-bottom: 2rem;
  color: rgba(255, 248, 235, 0.9);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}

.hero-actions,
.inline-actions,
.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ivory);
  background: var(--coral);
  border-color: var(--coral);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ember);
  border-color: var(--ember);
}

.button-secondary {
  color: inherit;
  background: rgba(255, 248, 235, 0.12);
  border-color: rgba(255, 248, 235, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 248, 235, 0.22);
}

.button-tertiary {
  color: var(--ink);
  background: transparent;
  border-color: rgba(23, 32, 33, 0.34);
}

.button-tertiary:hover,
.button-tertiary:focus-visible {
  background: rgba(23, 32, 33, 0.06);
}

.button-disabled {
  color: rgba(255, 248, 235, 0.72);
  background: rgba(255, 248, 235, 0.08);
  border-color: rgba(255, 248, 235, 0.18);
  cursor: not-allowed;
}

.button-disabled:hover {
  transform: none;
}

.hero-portrait {
  margin: 0;
}

.hero-portrait img {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-inner {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

.about-section,
.book-feature,
.writing-section,
.formats-section,
.social-section,
.connect-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.about-section {
  background: var(--paper);
}

.about-grid,
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.about-copy p,
.book-copy p,
.arc-copy p,
.writing-card p,
.social-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy .eyebrow,
.book-copy .eyebrow,
.writing-section .eyebrow,
.formats-section .eyebrow,
.social-section .eyebrow,
.connect-section .eyebrow {
  color: var(--ember);
}

.focus-panel {
  position: sticky;
  top: 96px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.78);
  box-shadow: 0 12px 36px rgba(23, 32, 33, 0.08);
}

.focus-panel ul {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-panel li {
  padding-left: 1rem;
  border-left: 3px solid var(--coral);
  line-height: 1.55;
}

.book-feature {
  background: var(--ivory);
}

.book-grid {
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1fr);
  align-items: center;
}

.book-cover-panel {
  background: var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.book-cover-panel img {
  width: 100%;
  aspect-ratio: 0.71;
  object-fit: cover;
}

.lede {
  color: var(--ink) !important;
  font-size: clamp(1.3rem, 2vw, 1.65rem) !important;
  line-height: 1.45;
}

.arc-section {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(59, 40, 52, 0.94), rgba(33, 91, 88, 0.82)),
    url("assets/exousia-arc-art.jpg") center / cover no-repeat;
}

.arc-layout,
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.arc-layout h2,
.connect-grid h2 {
  max-width: 760px;
}

.arc-copy p {
  color: rgba(255, 248, 235, 0.84);
}

.writing-section {
  color: var(--ivory);
  background:
    linear-gradient(110deg, rgba(16, 41, 91, 0.92), rgba(18, 60, 59, 0.9)),
    url("assets/exousia-ship-art.jpg") center / cover no-repeat;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.writing-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.writing-card,
.social-card {
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.08);
}

.writing-card p {
  color: rgba(255, 248, 235, 0.78);
}

.formats-section {
  color: var(--ivory);
  background: var(--ink);
}

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

.format-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 235, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.06);
}

.format-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.format-card:nth-child(2) img {
  object-position: center;
}

.format-card:nth-child(3) img {
  object-position: center top;
}

.format-card div {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 1.25rem;
}

.format-card p {
  flex: 1;
  color: rgba(255, 248, 235, 0.76);
}

.social-section {
  background: var(--paper);
}

.social-art {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(18, 60, 59, 0.1), rgba(201, 78, 56, 0.12)),
    url("assets/jm-icon.jpg") center / cover no-repeat;
  box-shadow: 0 12px 32px rgba(23, 32, 33, 0.08);
}

.social-grid {
  grid-template-columns: minmax(180px, 0.72fr) repeat(2, minmax(0, 1fr));
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-color: var(--line);
  background: rgba(255, 248, 235, 0.74);
  box-shadow: 0 12px 32px rgba(23, 32, 33, 0.08);
}

.social-card p {
  flex: 1;
}

.social-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ember);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link {
  color: var(--ember);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.connect-section {
  color: var(--ivory);
  background:
    linear-gradient(100deg, rgba(18, 60, 59, 0.96), rgba(150, 56, 41, 0.76)),
    url("assets/exousia-mountain-art.jpg") center / cover no-repeat;
}

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

.site-footer {
  padding: 1.5rem 0;
  color: rgba(255, 248, 235, 0.72);
  background: var(--plum);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 0.8rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(23, 32, 33, 0.2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .hero-inner,
  .about-grid,
  .book-grid,
  .arc-layout,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 6.4rem;
  }

  .hero-portrait img {
    width: min(100%, 360px);
  }

  .focus-panel {
    position: static;
  }

  .book-cover-panel {
    max-width: 420px;
  }

  .writing-grid,
  .social-grid,
  .format-list {
    grid-template-columns: 1fr;
  }

  .format-card {
    grid-template-columns: minmax(150px, 0.42fr) 1fr;
    grid-template-rows: 1fr;
    min-height: 260px;
  }

  .format-card img {
    height: 100%;
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  :root {
    --promo-height: 68px;
  }

  .preorder-banner {
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.2;
  }

  .site-header {
    min-height: 64px;
  }

  .brand {
    max-width: calc(100% - 56px);
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 90vh;
  }

  .hero-inner {
    padding-bottom: 3rem;
  }

  .hero-actions,
  .connect-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .format-card {
    grid-template-columns: 1fr;
  }

  .format-card img {
    height: 240px;
    min-height: 240px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
