:root {
  --bg: #2a130b;
  --bg-deep: #160a06;
  --panel: rgba(255, 247, 235, 0.085);
  --panel-strong: rgba(255, 247, 235, 0.13);
  --ink: #fff8ed;
  --muted: #ddcbb8;
  --accent: #b56f43;
  --accent-bright: #efc985;
  --line: rgba(239, 201, 133, 0.24);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --max: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -5%, rgba(181, 111, 67, 0.29), transparent 34rem),
    radial-gradient(circle at 87% 16%, rgba(239, 201, 133, 0.12), transparent 32rem),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 46%, #472115 100%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-bright); color: #2a130b; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-bright);
  color: #211006;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 13, 7, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(100%, calc(var(--max) + 6rem));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--muted);
  font: 700 0.82rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-bright);
  letter-spacing: 0;
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  color: var(--muted);
  font: 650 0.91rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.site-nav a,
.footer-inner a,
.instagram-header {
  text-decoration: none;
  text-underline-offset: 0.3em;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.footer-inner a:hover,
.footer-inner a:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; }
.instagram-header {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted);
  font: 650 0.8rem/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.instagram-header:hover,
.instagram-header:focus-visible { color: var(--ink); }
.instagram-header svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.instagram-header .icon-dot { fill: currentColor; stroke: none; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font: 750 0.74rem/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.06em;
}
.language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.language-switcher a {
  min-width: 2.2rem;
  padding: 0.55rem 0.58rem;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}
.language-switcher a:hover,
.language-switcher a:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.language-switcher a[aria-current='page'] { background: var(--accent-bright); color: #251106; }

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4.2rem, 8vw, 7.5rem) clamp(1.1rem, 4vw, 3rem);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.67fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-bright);
  font: 800 0.76rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 1.3rem;
  font-size: clamp(4rem, 11.4vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.84;
}
.pt-page h1 { font-size: clamp(3.55rem, 9.9vw, 7.5rem); }
h1 span { display: block; color: var(--accent-bright); font-style: italic; font-weight: 400; letter-spacing: -0.055em; }
h2 {
  max-width: 920px;
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
}
.signature-line {
  position: relative;
  margin-bottom: 1.45rem;
  color: #fff9f1;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  font-style: italic;
  line-height: 1.3;
}
.signature-line::after {
  content: '';
  display: block;
  width: min(320px, 62%);
  height: 1px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.intro,
.section-heading > p:not(.eyebrow),
.book-copy p,
.edition-card p,
.contact-card p,
.faq-list p,
.edition-note {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.13rem);
}
.intro { max-width: 720px; }
.edition-note { margin: 1.2rem 0 0; font-size: 0.98rem; }
.edition-note a { color: var(--accent-bright); font-weight: 700; text-underline-offset: 0.22em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.88rem 1.28rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 800 0.92rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--accent-bright), #c47b4b);
  color: #211006;
  box-shadow: 0 18px 44px rgba(181, 111, 67, 0.24);
}
.button.primary:hover { box-shadow: 0 22px 52px rgba(181, 111, 67, 0.34); }
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.button.secondary:hover { border-color: rgba(239, 201, 133, 0.48); background: rgba(255, 255, 255, 0.075); }
.cover-frame { width: min(100%, 410px); margin: 0; justify-self: center; }
.cover-frame picture {
  display: block;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}
.cover-frame img { width: 100%; border-radius: 13px; }
.cover-frame figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.91rem; text-align: center; }

.section-heading { max-width: 870px; margin-bottom: 2.25rem; }
.section-heading.compact { margin-bottom: 1.4rem; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.73fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.book-copy,
.book-details,
.edition-card,
.contact-card,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.17);
}
.book-copy { padding: clamp(1.6rem, 4vw, 2.7rem); border-radius: var(--radius); }
.book-copy .lead-copy { color: var(--ink); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-style: italic; line-height: 1.42; }
.book-copy p:last-child { margin-bottom: 0; }
.book-details { margin: 0; padding: 1.1rem; border-radius: var(--radius); }
.book-details div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.88rem 0; border-bottom: 1px solid var(--line); }
.book-details div:last-child { border-bottom: 0; }
dt { color: var(--accent-bright); font: 800 0.75rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; }

.purchase-section { width: min(100%, 1060px); }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.edition-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: clamp(1.6rem, 4vw, 2.5rem); border-radius: var(--radius); overflow: hidden; }
.edition-card::after { content: ''; position: absolute; right: -5rem; bottom: -7rem; width: 15rem; height: 15rem; border: 1px solid rgba(239, 201, 133, 0.13); border-radius: 50%; }
.edition-card.featured { background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.045)); }
.edition-badge { width: fit-content; margin-bottom: 1.5rem; padding: 0.38rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-bright); font: 800 0.72rem/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.edition-card p { flex: 1; }
.edition-card .button { position: relative; z-index: 1; align-self: flex-start; margin-top: 1rem; }

.contact-section { width: min(100%, 1040px); }
.contact-card { padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) + 4px); background: linear-gradient(145deg, rgba(255, 247, 235, 0.13), rgba(255, 255, 255, 0.04)); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20, 8, 4, 0.24);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.contact-option:hover { transform: translateY(-3px); border-color: rgba(239, 201, 133, 0.48); background: rgba(20, 8, 4, 0.38); }
.contact-kicker { margin-bottom: 0.55rem; color: var(--accent-bright); font: 800 0.72rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-option strong { margin-bottom: 0.5rem; color: var(--ink); font-size: clamp(1.15rem, 2.5vw, 1.55rem); overflow-wrap: anywhere; }
.contact-option > span:last-child { color: var(--muted); font-size: 0.96rem; }

.faq-list { display: grid; gap: 0.85rem; }
.faq-list details { padding: 1.15rem 1.35rem; border-radius: 18px; }
.faq-list details[open] { background: var(--panel-strong); }
.faq-list summary { cursor: pointer; color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.faq-list summary::marker { color: var(--accent-bright); }
.faq-list p { margin: 0.85rem 0 0; }
.faq-list a { color: var(--accent-bright); text-underline-offset: 0.2em; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(100%, calc(var(--max) + 6rem)); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem); display: flex; justify-content: space-between; gap: 1rem; font: 500 0.92rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-top: 0.65rem; border-top: 1px solid var(--line); }
  .header-tools { grid-column: 2; grid-row: 1; }
  .hero { min-height: 0; }
}

@media (max-width: 820px) {
  :root { --header-height: 118px; }
  .hero, .book-grid { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .cover-frame { width: min(390px, 88vw); justify-self: start; }
  .book-details div { grid-template-columns: 1fr; gap: 0.25rem; }
  .section-heading.centered { text-align: left; }
  .edition-grid, .contact-grid { grid-template-columns: 1fr; }
  .edition-card .button { align-self: stretch; }
}

@media (max-width: 590px) {
  :root { --header-height: 152px; }
  .header-inner { gap: 0.7rem; }
  .brand-name { display: none; }
  .header-tools { gap: 0.55rem; }
  .instagram-header span { display: none; }
  .site-nav { justify-content: space-between; width: 100%; }
  .section { padding-right: 1rem; padding-left: 1rem; }
  h1 { font-size: clamp(3.35rem, 18.5vw, 5.45rem); }
  .pt-page h1 { font-size: clamp(3rem, 16.7vw, 5rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .cover-frame { justify-self: center; }
  .contact-card { padding-right: 1rem; padding-left: 1rem; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}


/* Expanded content sections */
.content-stack p { margin-bottom: 1rem; }
.content-stack p:last-child { margin-bottom: 0; }

.author-section { width: min(100%, 1060px); }
.author-card,
.sample-card,
.sample-reader {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.17);
}
.author-card {
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.12), rgba(255, 255, 255, 0.04));
}
.author-card p,
.sample-card p,
.sample-reader p { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.13rem); }

.sample-section { width: min(100%, 1080px); }
.sample-card {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.12), rgba(255, 255, 255, 0.04));
}
.sample-reader {
  min-height: clamp(22rem, 45vw, 34rem);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  text-align: center;
  background:
    linear-gradient(rgba(22, 10, 6, 0.42), rgba(22, 10, 6, 0.42)),
    repeating-linear-gradient(135deg, rgba(239, 201, 133, 0.09) 0 1px, transparent 1px 18px);
}
.sample-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent-bright);
  background: rgba(20, 8, 4, 0.24);
  font: 900 0.88rem/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.14em;
}
.sample-kicker {
  margin: 0;
  color: var(--accent-bright) !important;
  font: 800 0.75rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sample-reader h3 { margin-bottom: 0.25rem; }
.sample-reader p:last-child { max-width: 620px; margin-bottom: 0; }
.sample-reader .button { margin-top: 1rem; }
/* Size the native dFlip cover thumbnail (default is a small 140px) without touching its hover animation. */
.sample-reader .df-popup-thumb { width: 400px; margin: 0.4rem 0 0.2rem; }
/* Hide dFlip's default "Click to Open" title bar that slides up on hover; keep the cover-open animation. */
.sample-reader .df-popup-thumb .df-book-title { display: none; }
