:root {
  --ink: #0b0906;
  --ink-2: #141009;
  --panel: #181209;
  --panel-2: #1e1610;
  --bronze: #6f5326;
  --bronze-dim: #4a3a20;
  --gold: #c9a15a;
  --gold-light: #e9d29a;
  --gold-soft: rgba(201, 161, 90, 0.45);
  --parchment: #f2e9d8;
  --stone: #b3a58c;
  --stone-dim: #7c7160;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #1a1408;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  color: var(--parchment);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.script {
  font-family: 'Mrs Saint Delafield', cursive;
  font-weight: 400;
  color: var(--gold-light);
}

/* subtle grain / paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 70% 65%, #fff 0.5px, transparent 0.5px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: overlay;
}

/* ---------------- NAV ---------------- */
header.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(11, 9, 6, 0.0);
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, padding .3s ease;
  padding: 26px 0;
}

header.site-nav.scrolled {
  background: rgba(11, 9, 6, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 161, 90, 0.18);
  padding: 14px 0;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand .of {
  font-family: 'Mrs Saint Delafield', cursive;
  color: var(--gold);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--gold-soft);
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: all .25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold);
  color: #1a1408;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(100deg, var(--ink) 0%, var(--ink) 34%, rgba(11, 9, 6, 0.55) 55%, rgba(11, 9, 6, 0.15) 72%),
    #000;
}

.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: 70% 20%;
  opacity: 0.92;
}

.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 170px 32px 120px;
  width: 100%;
}

.hero-content .eyebrow {
  opacity: 0;
  animation: riseIn .9s ease forwards;
  animation-delay: .15s;
}

.hero h1 {
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-top: 18px;
  opacity: 0;
  animation: riseIn 1s ease forwards;
  animation-delay: .35s;
}

.hero h1 .line2 {
  font-family: 'Mrs Saint Delafield', cursive;
  font-weight: 400;
  color: var(--gold);
  font-size: 0.62em;
  display: block;
  margin: -0.12em 0 -0.08em 0.55em;
}

.hero .tagline {
  margin-top: 26px;
  max-width: 480px;
  font-size: 20px;
  font-style: italic;
  color: var(--stone);
  opacity: 0;
  animation: riseIn 1s ease forwards;
  animation-delay: .55s;
}

.hero .byline {
  margin-top: 34px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: riseIn 1s ease forwards;
  animation-delay: .7s;
}

.hero-ctas {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1s ease forwards;
  animation-delay: .85s;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: all .3s ease;
}

.btn-solid {
  background: var(--gold);
  color: #1a1408;
}

.btn-solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  color: var(--gold-light);
}

.btn-ghost:hover {
  background: rgba(201, 161, 90, 0.12);
}

.btn-download {
  background: var(--ink);
  color: var(--gold-light);
}

.btn-download:hover {
  background: var(--panel-2);
  border-color: var(--gold-light);
}

.btn-download[hidden] {
  display: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

.scroll-cue .line {
  width: 36px;
  height: 1px;
  background: var(--stone-dim);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--gold);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* ---------------- SECTION SHELLS ---------------- */
section {
  position: relative;
  padding: 130px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
  display: block;
}

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
}

.section-head p {
  margin-top: 20px;
  color: var(--stone);
  font-size: 19px;
}

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--bronze);
  margin: 0 auto;
}

.divider .rule {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.divider .mark {
  font-size: 12px;
  color: var(--gold);
}

/* ---------------- QUOTE BAND ---------------- */
.quote-band {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 161, 90, 0.08), transparent 60%),
    var(--ink-2);
  border-top: 1px solid rgba(201, 161, 90, 0.12);
  border-bottom: 1px solid rgba(201, 161, 90, 0.12);
}

.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.4;
  color: var(--parchment);
  padding: 0 24px;
}

.quote-band cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
}

/* ---------------- ABOUT THE BOOK ---------------- */
.book-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 100px;
}

.book-intro .cover-frame {
  position: relative;
  border: 1px solid rgba(201, 161, 90, 0.35);
  padding: 18px;
}

.book-intro .cover-frame img {
  width: 100%;
}

.book-intro .cover-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201, 161, 90, 0.15);
  pointer-events: none;
}

.book-copy p {
  color: var(--stone);
  font-size: 19px;
  margin: 0 0 22px;
}

.book-copy p:first-of-type {
  color: var(--parchment);
  font-size: 22px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.5;
}

.book-copy .signed {
  color: var(--gold-light);
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 28px;
  margin-top: 8px;
}

/* Movements — signature shard cards */
.movements-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.shards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

.shard {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(201, 161, 90, 0.22);
  padding: 38px 30px 34px;
  clip-path: polygon(0% 4%, 3% 0%, 22% 2%, 41% 0%, 58% 3%, 76% 0%, 94% 2%, 100% 5%,
      99% 22%, 100% 44%, 98% 63%, 100% 82%, 97% 100%,
      79% 98%, 60% 100%, 42% 97%, 24% 100%, 6% 98%, 0% 95%,
      2% 74%, 0% 55%, 3% 35%, 0% 18%);
  transform: rotate(var(--r, -1.4deg)) translateY(26px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease, border-color .35s ease, box-shadow .35s ease;
  transition-delay: var(--d, 0s);
}

.shard.in-view {
  opacity: 1;
  transform: rotate(0deg) translateY(0);
}

.shard:nth-child(1) {
  --r: -2.2deg;
  --d: 0s;
}

.shard:nth-child(2) {
  --r: 1.6deg;
  --d: .08s;
}

.shard:nth-child(3) {
  --r: -1.1deg;
  --d: .16s;
}

.shard:nth-child(4) {
  --r: 2.1deg;
  --d: .24s;
}

.shard:nth-child(5) {
  --r: -1.8deg;
  --d: .32s;
}

.shard:nth-child(6) {
  --r: 1.2deg;
  --d: .4s;
}

.shard:hover {
  border-color: rgba(201, 161, 90, 0.55);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 161, 90, 0.15) inset;
}

.shard .num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--bronze);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.shard h3 {
  font-size: 24px;
  margin: 10px 0 14px;
  line-height: 1.25;
}

.shard p {
  color: var(--stone);
  font-size: 16.5px;
  margin: 0;
}

.shard .chapters {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 161, 90, 0.16);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--stone-dim);
  font-style: italic;
}

/* ---------------- EXCERPT ---------------- */
.excerpt {
  background: var(--ink-2);
  border-top: 1px solid rgba(201, 161, 90, 0.12);
  border-bottom: 1px solid rgba(201, 161, 90, 0.12);
}

.excerpt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.excerpt-label {
  margin-bottom: 22px;
}

.excerpt h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 26px;
}

.excerpt .lead-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.excerpt p {
  color: var(--stone);
  font-size: 18.5px;
  margin: 0 0 18px;
}

.excerpt-frame {
  position: relative;
  border-left: 2px solid var(--gold);
  padding: 36px 40px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.excerpt-frame .mark {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  color: var(--bronze);
  line-height: 0.6;
  display: block;
  margin-bottom: 6px;
}

.excerpt-frame p {
  color: var(--parchment);
  font-size: 19px;
  font-style: italic;
}

.excerpt-frame .chap {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------- AUTHOR ---------------- */
.author {
  position: relative;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.author-photo-wrap {
  position: relative;
}

.author-photo-wrap .frame {
  border: 1px solid rgba(201, 161, 90, 0.35);
  padding: 16px;
  background: var(--panel);
}

.author-photo-wrap img {
  width: 100%;
}

.author-photo-wrap .tag {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--gold);
  color: #1a1408;
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.author-copy .eyebrow {
  margin-bottom: 16px;
  display: block;
}

.author-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.author-copy p {
  color: var(--stone);
  font-size: 19px;
  margin: 0 0 20px;
}

.author-copy .role-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.author-copy .role-list span {
  border: 1px solid rgba(201, 161, 90, 0.3);
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------------- PATH BAND ---------------- */
.path-band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.path-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.path-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 6, 0.35) 24%, rgba(11, 9, 6, 0.25) 60%, var(--ink) 100%);
}

.path-band-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 32px;
}

.path-band .script {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.3;
}

.path-band .small {
  margin-top: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--stone);
}

/* ---------------- CONTACT ---------------- */
.contact {
  background: var(--ink-2);
  border-top: 1px solid rgba(201, 161, 90, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

.contact-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 22px;
}

.contact-info p {
  color: var(--stone);
  font-size: 19px;
  margin-bottom: 34px;
  max-width: 440px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 161, 90, 0.14);
}

.contact-list li .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 100px;
}

.contact-list li a,
.contact-list li span.val {
  color: var(--parchment);
  font-size: 18px;
}

.contact-list li a:hover {
  color: var(--gold-light);
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 161, 90, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--gold-light);
  transition: all .25s ease;
}

.socials a:hover {
  background: var(--gold);
  color: #1a1408;
  border-color: var(--gold);
}

.contact-form {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(201, 161, 90, 0.22);
  padding: 44px;
}

.contact-form .note {
  font-size: 13px;
  color: var(--stone-dim);
  margin-bottom: 26px;
  font-style: italic;
  border-left: 2px solid var(--bronze);
  padding-left: 14px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 161, 90, 0.35);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  padding: 10px 2px;
  outline: none;
  transition: border-color .25s ease;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--stone-dim);
}

.field select option {
  background: var(--panel);
}

.contact-form .btn {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  border: 1px solid var(--gold);
  cursor: pointer;
}

.form-status {
  margin-top: 18px;
  font-size: 14px;
  color: var(--gold-light);
  display: none;
}

/* ---------------- FOOTER ---------------- */
footer {
  padding: 70px 0 40px;
  border-top: 1px solid rgba(201, 161, 90, 0.14);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--stone);
  max-width: 460px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--stone-dim);
  letter-spacing: 0.05em;
}

.footer-bottom a {
  color: var(--stone-dim);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---------------- REVEAL UTIL ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {

  .book-intro,
  .excerpt-grid,
  .author-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .book-intro .cover-frame {
    max-width: 340px;
    margin: 0 auto;
  }

  .shards {
    grid-template-columns: 1fr 1fr;
  }

  .hero-img {
    width: 100%;
    opacity: 0.35;
    object-position: 65% 25%;
  }

  .hero {
    background: linear-gradient(180deg, rgba(11, 9, 6, 0.4), var(--ink) 75%), #000;
  }

  .author-photo-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  section {
    padding: 90px 0;
  }

  .shards {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 150px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    padding: 30px;
  }

  .excerpt-frame {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- BLOG ---------------- */
.blog {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 161, 90, 0.06), transparent 60%),
    var(--ink-2);
  border-top: 1px solid rgba(201, 161, 90, 0.12);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.blog-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(201, 161, 90, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 161, 90, 0.55);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.6);
}

.blog-card .blog-img {
  height: 210px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.blog-card .blog-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 6, 0.55), transparent 60%);
}

.blog-img.img-1 {
  background: linear-gradient(135deg, #2b2013, #6f5326 60%, #c9a15a);
}

.blog-img.img-2 {
  background: linear-gradient(135deg, #1e1610, #4a3a20 55%, #b3a58c);
}

.blog-img.img-3 {
  background: linear-gradient(135deg, #181209, #7c7160 60%, #e9d29a);
}

.blog-card .blog-body {
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .blog-date {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.blog-card h3 {
  font-size: 23px;
  margin: 12px 0 14px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.blog-card .btn-ghost {
  align-self: flex-start;
  padding: 12px 26px;
  font-size: 12.5px;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- BUY BUTTONS ---------------- */
.hero-ctas.buy-stack {
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  gap: 14px;
}

.buy-stack .btn {
  text-align: center;
}

.btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 34px;
  background: #ffc439;
  border: 1px solid #ffc439;
  color: #2c2e2f;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.btn-paypal:hover {
  background: #f2ba36;
  border-color: #f2ba36;
}

.btn-paypal:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.pp-wordmark {
  font-family: Verdana, 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pp-pay {
  color: #003087;
}

.pp-pal {
  color: #009cde;
}

.buy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 13.5px !important;
  color: var(--stone-dim) !important;
  font-family: 'EB Garamond', serif !important;
  font-style: normal !important;
}

/* =================================================================
   CHECKOUT MODAL
   ================================================================= */
body.checkout-open {
  overflow: hidden;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 4, 2, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}

.checkout-overlay[hidden] {
  display: none;
}

.checkout-overlay.open {
  opacity: 1;
}

.checkout-dialog {
  position: relative;
  width: 100%;
  max-width: 1120px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(201, 161, 90, 0.3);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transform: translateY(18px) scale(.985);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  outline: none;
}

.checkout-overlay.open .checkout-dialog {
  transform: none;
}

.checkout-dialog button {
  font-family: inherit;
}

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid rgba(201, 161, 90, 0.3);
  color: var(--gold-light);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.checkout-close:hover {
  background: rgba(201, 161, 90, 0.14);
}

.checkout-view[hidden],
.success-view[hidden] {
  display: none;
}

.checkout-head {
  padding: 40px 44px 0;
}

.checkout-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 8px;
}

.checkout-head p {
  color: var(--stone);
  margin: 4px 0 0;
  font-size: 17px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 40px;
  padding: 30px 44px 44px;
}

/* ---------- Form notices & sections ---------- */
.checkout-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid #d9826c;
  background: rgba(217, 130, 108, 0.1);
  color: #f0b4a4;
  font-size: 16px;
}

.checkout-notice[hidden] {
  display: none;
}

.co-section {
  border: 0;
  padding: 0;
  margin: 0 0 34px;
  min-width: 0;
}

.co-section[hidden],
.co-subsection[hidden] {
  display: none;
}

.co-subsection {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.co-section legend,
.co-section .co-legend {
  display: block;
  width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--parchment);
  padding: 0 0 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(201, 161, 90, 0.18);
}

.co-section legend .step,
.co-section .co-legend .step {
  color: var(--gold);
  font-style: italic;
  margin-right: 8px;
}

.checkout-form .field {
  position: relative;
  margin-bottom: 20px;
}

.checkout-form .field label .req {
  color: #e8a391;
  text-decoration: none;
  border: 0;
}

.checkout-form .field label .opt {
  color: var(--stone-dim);
  letter-spacing: 0.06em;
  text-transform: none;
  font-style: italic;
}

.checkout-form .field input:disabled {
  opacity: .55;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: #d9826c;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #f0b4a4;
}

/* ---------- Choice cards ---------- */
.choice-list {
  display: grid;
  gap: 12px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 161, 90, 0.22);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.choice:hover {
  border-color: rgba(201, 161, 90, 0.5);
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 161, 90, 0.08);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice .dot {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
}

.choice input:checked~.dot {
  border-color: var(--gold);
}

.choice input:checked~.dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.choice input:focus-visible~.dot {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.choice .meta {
  flex: 1;
  min-width: 0;
}

.choice .title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  line-height: 1.3;
  color: var(--parchment);
}

.choice .desc {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--stone);
}

.choice .price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold-light);
  white-space: nowrap;
  text-align: right;
}

.choice .price small {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  color: var(--stone-dim);
}

/* ---------- Searchable country picker ---------- */
.combo-box {
  position: relative;
}

.combo-box::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.combo-box input {
  padding-right: 26px !important;
}

.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid rgba(201, 161, 90, 0.35);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}

.combo-list[hidden] {
  display: none;
}

.combo-list li {
  padding: 8px 14px;
  font-size: 16.5px;
  color: var(--parchment);
  cursor: pointer;
}

.combo-list li[aria-selected="true"] {
  color: var(--gold-light);
}

.combo-list li.active {
  background: rgba(201, 161, 90, 0.16);
}

.combo-list li.empty {
  color: var(--stone-dim);
  font-style: italic;
  cursor: default;
}

/* ---------- Coupon ---------- */
.coupon-toggle {
  margin: 0 0 14px;
  font-size: 16.5px;
  color: var(--stone);
}

.coupon-toggle button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-light);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.coupon-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.coupon-row[hidden] {
  display: none;
}

.coupon-row .field {
  flex: 1;
  margin-bottom: 0 !important;
}

.coupon-row input {
  text-transform: uppercase;
}

.btn-outline {
  padding: 11px 22px;
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-outline:hover {
  background: rgba(201, 161, 90, 0.12);
}

.coupon-msg {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 15px;
}

.coupon-msg.ok {
  color: #a9d49a;
}

.coupon-msg.err {
  color: #f0b4a4;
}

/* ---------- Order summary ---------- */
.order-summary {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 28px;
  background: rgba(11, 9, 6, 0.55);
  border: 1px solid rgba(201, 161, 90, 0.22);
}

.order-summary h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(201, 161, 90, 0.16);
}

.summary-item img {
  width: 54px;
  flex: none;
  border: 1px solid rgba(201, 161, 90, 0.25);
}

.summary-item .name {
  flex: 1;
  font-size: 16px;
  line-height: 1.35;
  color: var(--parchment);
}

.summary-item .name small {
  display: block;
  color: var(--stone);
  font-size: 14px;
}

.summary-item .amt {
  color: var(--parchment);
  font-variant-numeric: tabular-nums;
}

.summary-lines {
  margin: 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 16px;
  color: var(--stone);
}

.summary-line[hidden] {
  display: none;
}

.summary-line dt small {
  display: block;
  font-size: 13.5px;
  color: var(--stone-dim);
}

.summary-line dd {
  margin: 0;
  color: var(--parchment);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.summary-line.discount dt,
.summary-line.discount dd {
  color: #a9d49a;
}

.summary-line .remove-coupon {
  margin-left: 6px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--stone-dim);
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
}

.summary-line.total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 161, 90, 0.3);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--parchment);
}

.summary-line.total dd {
  color: var(--gold-light);
}

/* ---------- Payment ---------- */
.pay-box {
  margin-top: 18px;
  padding: 16px 16px 6px;
  background: #fff;
  color: #2c2e2f;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.pay-loading {
  padding: 8px 0 14px;
  text-align: center;
  color: #6c7378;
}

.pay-notice {
  padding-bottom: 12px;
  line-height: 1.5;
}

.pay-notice code {
  background: #f2f2f2;
  padding: 1px 5px;
  font-size: 13px;
}

.pay-notice button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: #ffc439;
  border: 0;
  color: #2c2e2f;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 12px;
  color: #6c7378;
  font-size: 13px;
}

.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e4e6;
}

.pay-box [hidden] {
  display: none;
}

.checkout-status {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.checkout-status:empty {
  display: none;
}

.checkout-status.error {
  color: #f0b4a4;
}

.checkout-status.info {
  color: var(--gold-light);
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--stone-dim);
}

/* =================================================================
   ORDER CONFIRMATION
   ================================================================= */
.success-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 44px 48px;
  text-align: center;
}

.success-view .rise {
  opacity: 0;
  animation: riseIn .7s ease forwards;
  animation-delay: var(--d, 0s);
}

.success-check svg {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
}

.success-check circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawStroke .7s ease forwards;
}

.success-check path {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawStroke .45s .6s ease forwards;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.success-view h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 10px 0 12px;
  outline: none;
}

.success-lead {
  color: var(--stone);
  font-size: 18px;
  margin: 0 auto;
  max-width: 540px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 26px;
  margin: 30px 0 26px;
  padding: 22px 26px;
  text-align: left;
  border: 1px solid rgba(201, 161, 90, 0.22);
  background: rgba(11, 9, 6, 0.4);
}

.receipt-grid dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}

.receipt-grid dd {
  margin: 0;
  color: var(--parchment);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.success-card {
  margin-bottom: 24px;
  padding: 22px 26px;
  text-align: left;
  border-left: 2px solid var(--gold);
  background: rgba(201, 161, 90, 0.07);
}

.success-card[hidden] {
  display: none;
}

.success-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.success-card p {
  margin: 0 0 12px;
  color: var(--stone);
  font-size: 16.5px;
}

.success-card p:last-child {
  margin-bottom: 0;
}

.success-address {
  font-style: normal;
  color: var(--parchment);
  font-size: 17px;
  line-height: 1.6;
}

.success-card .btn-download {
  display: inline-block;
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.success-card .btn-download:hover {
  background: var(--panel-2);
  color: var(--parchment);
  border-color: var(--gold-light);
}

.success-card strong {
  color: var(--gold-light);
  font-weight: 500;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.success-actions .btn {
  cursor: pointer;
}

/* <button> elements get a light default background from the browser — keep them dark */
.success-actions .btn-ghost {
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.success-actions .btn-ghost:hover {
  background: var(--panel-2);
  color: var(--parchment);
  border-color: var(--gold-light);
}

/* ---------- Checkout responsive ---------- */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    padding: 24px 24px 32px;
  }

  .checkout-head {
    padding: 34px 24px 0;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .checkout-overlay {
    padding: 0;
  }

  .checkout-dialog {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border: 0;
  }

  .checkout-head {
    padding: 30px 16px 0;
  }

  .checkout-grid {
    padding: 22px 16px 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .choice {
    padding: 14px;
    gap: 12px;
  }

  .order-summary {
    padding: 22px 18px;
  }

  .success-view {
    padding: 48px 16px 36px;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 18px;
  }

  .receipt-grid dd {
    margin-bottom: 10px;
  }

  .hero-ctas.buy-stack {
    width: 100%;
  }
}
