/* Élañ Säshày — bright boutique redesign (provisional, pending Nathan YES)
   Cream #FAF7F2 · White #FFFFFF · Blush #FFF1E8 · Charcoal #1C1917
   Muted #57534E · Coral #E8573A · Sky wash #E8F4F8 */

:root {
  --cream: #FAF7F2;
  --cream-soft: #FFFCF8;
  --white: #FFFFFF;
  --blush: #FFF1E8;
  --sky: #E8F4F8;
  --charcoal: #1C1917;
  --muted: #57534E;
  --muted-soft: #78716C;
  --accent: #E8573A;
  --accent-hover: #D9482B;
  --accent-soft: rgba(232, 87, 58, 0.1);
  --rule: rgba(28, 25, 23, 0.08);
  --rule-strong: rgba(28, 25, 23, 0.14);
  --shadow-soft: 0 4px 24px rgba(28, 25, 23, 0.06);
  --shadow-card: 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-cover: 0 20px 50px rgba(28, 25, 23, 0.16), 0 4px 12px rgba(28, 25, 23, 0.08);
  --focus: #E8573A;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 68rem;
  --measure: 40rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --space: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 90% 60% at 8% -10%, var(--sky), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 5%, rgba(255, 241, 232, 0.85), transparent 50%),
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 40%, #F5F0E8 100%);
  background-attachment: fixed;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus { top: var(--space); }

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand:hover { color: var(--accent); }

.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.08);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--charcoal);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* —— Typography —— */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.text-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(232, 87, 58, 0.35);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 87, 58, 0.28);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 87, 58, 0.35);
}

.btn--ghost {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.35rem;
}

/* —— Hero —— */
.hero {
  padding: clamp(2.75rem, 8vw, 5.5rem) 0 clamp(2.25rem, 5vw, 4rem);
  position: relative;
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero__cover {
  position: relative;
  max-width: 18rem;
  margin-inline: auto;
  perspective: 900px;
}

.hero__cover-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cover);
  transform: rotate(1.5deg);
  background: var(--white);
  border: 1px solid var(--rule);
}

.hero__cover-glow {
  position: absolute;
  inset: 12% -8% -8% -8%;
  background: radial-gradient(ellipse at center, rgba(232, 87, 58, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__cover-caption {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-soft);
  letter-spacing: 0.02em;
}

.accent-bar {
  width: 2.75rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 0 1.1rem;
}

/* —— Sections —— */
.section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.section--tight { padding-top: 0; }

.section__head {
  margin-bottom: 1.85rem;
  max-width: var(--measure);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h3 { margin-top: 0; }

.card p:last-child { margin-bottom: 0; }

.card--accent {
  border-color: rgba(232, 87, 58, 0.22);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 55%),
    var(--blush);
}

.law-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

/* —— Book card —— */
.book-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.book-card:hover {
  border-color: rgba(232, 87, 58, 0.35);
  color: inherit;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.1);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .book-card {
    grid-template-columns: 8.5rem 1fr;
    align-items: start;
  }
}

.book-cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 8.5rem;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  background: var(--blush);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-cover);
  border: 1px solid var(--rule);
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.book-card__body h2,
.book-card__body h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* —— FAQ —— */
.faq {
  max-width: 40rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "−"; }

.faq summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

/* —— Callout / TBD —— */
.tbd {
  border: 1px dashed rgba(232, 87, 58, 0.4);
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tbd strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.prose {
  max-width: var(--measure);
}

.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }

.who-for {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0;
  margin-left: 0;
}

.who-for li {
  list-style: none;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.buy-panel {
  margin: 2rem 0;
  padding: 1.65rem 1.75rem;
  border: 1px solid rgba(232, 87, 58, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    var(--white);
  box-shadow: var(--shadow-card);
}

.buy-panel .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--charcoal);
  margin: 0.25rem 0 0.85rem;
}

.buy-panel .price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-body);
}

/* —— Book detail cover —— */
.book-detail-top {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .book-detail-top {
    grid-template-columns: 12rem 1fr;
    gap: 2.25rem;
  }
}

.cover-as-art {
  width: min(100%, 12rem);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-cover);
  background: var(--white);
}

/* —— Footer —— */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  padding: 2.1rem 0 2.6rem;
  color: var(--muted-soft);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.45);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.footer-note {
  max-width: 28rem;
  margin: 0;
  line-height: 1.5;
}

/* —— 404 —— */
.not-found {
  text-align: center;
  padding: 4.5rem 0 5.5rem;
}

.not-found .code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

/* —— Utilities —— */
.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;
}

.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.page-hero {
  padding: clamp(2rem, 5vw, 3.25rem) 0 1.5rem;
}

.page-hero h1 { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__cover-art { transform: none; }
  .book-card:hover { transform: none; }
}

/* —— Path teasers (home) —— */
.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.path-card:hover {
  border-color: rgba(232, 87, 58, 0.35);
  color: inherit;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.1);
  transform: translateY(-2px);
}

.path-card .path-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.path-card .path-cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.book-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, var(--blush), var(--sky));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.75rem;
}

.book-card--tbd {
  border-style: dashed;
  border-color: rgba(232, 87, 58, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 241, 232, 0.55), transparent 60%),
    var(--white);
}

.book-card--tbd:hover {
  border-style: dashed;
}

.btn--disabled,
.btn[aria-disabled="true"] {
  background: #E7E5E4;
  color: var(--muted-soft);
  box-shadow: none;
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.badge-tbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.5rem;
}

.stack-cards {
  display: grid;
  gap: 1.25rem;
}
