/* Élañ Säshày — author-house redesign 2026-09-13
   Literary + craft hybrid. Ink / parchment / rust / teal. */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --ink: #12141A;
  --ink-soft: #2A2D36;
  --paper: #F4F0E8;
  --paper-bright: #FCFAF6;
  --paper-deep: #EAE4D8;
  --muted: #5C584F;
  --muted-soft: #7A756B;
  --accent: #8B3A2F;
  --accent-hover: #6F2E25;
  --accent-soft: rgba(139, 58, 47, 0.1);
  --craft: #1F4F4A;
  --craft-soft: rgba(31, 79, 74, 0.1);
  --lit: #6B2D3C;
  --lit-soft: rgba(107, 45, 60, 0.1);
  --brass: #B8964A;
  --white: #FFFFFF;
  --rule: rgba(18, 20, 26, 0.1);
  --rule-strong: rgba(18, 20, 26, 0.16);
  --shadow-soft: 0 4px 24px rgba(18, 20, 26, 0.06);
  --shadow-card: 0 10px 36px rgba(18, 20, 26, 0.09);
  --shadow-cover: 0 18px 48px rgba(18, 20, 26, 0.18), 0 4px 12px rgba(18, 20, 26, 0.1);
  --focus: #8B3A2F;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 72rem;
  --measure: 40rem;
  --radius: 0.65rem;
  --radius-sm: 0.4rem;
  --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;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 79, 74, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(139, 58, 47, 0.07), transparent 50%),
    linear-gradient(180deg, var(--paper-bright) 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

main { flex: 1; }

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, transform 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(252, 250, 246, 0.9);
  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.9rem 0;
  flex-wrap: wrap;
}

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

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

.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  box-shadow: 0 1px 4px rgba(18, 20, 26, 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.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

/* —— Typography —— */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.65rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

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

.accent-bar {
  width: 3rem;
  height: 3px;
  margin: 0 0 1.25rem;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  border-radius: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(18, 20, 26, 0.03);
}

.btn--craft {
  background: var(--craft);
  color: var(--white);
  border-color: var(--craft);
}

.btn--craft:hover {
  background: #163D39;
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

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

/* —— Hero —— */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero h1 { max-width: 18ch; }

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

.page-hero .lede,
.page-hero > .wrap > .muted {
  margin-top: 0.25rem;
}

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

.section--tight {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__head .muted { margin: 0.5rem 0 0; }

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

/* —— Path cards —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  display: block;
  padding: 1.5rem 1.4rem;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: inherit;
}

.path-card .path-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-card--craft .path-label { color: var(--craft); }
.path-card--lit .path-label { color: var(--lit); }

.path-card--craft {
  border-top: 3px solid var(--craft);
}

.path-card--lit {
  border-top: 3px solid var(--lit);
}

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

/* —— Cover shelf grid —— */
.shelf-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

@media (min-width: 1100px) {
  .shelf-grid.shelf-grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.shelf-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.shelf-card__cover {
  aspect-ratio: 2 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}

.shelf-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.shelf-card__body h3 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
}

.shelf-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.shelf-card__body h3 a:hover { color: var(--accent); }

.badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--craft {
  background: var(--craft-soft);
  color: var(--craft);
}

.badge--lit {
  background: var(--lit-soft);
  color: var(--lit);
}

.shelf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.shelf-actions .btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* —— Book list cards (catalog) —— */
.stack-cards {
  display: grid;
  gap: 1.25rem;
}

.book-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.15rem;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
}

.book-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-card);
  color: inherit;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .book-card {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }
}

.book-cover {
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: var(--shadow-cover);
  background: var(--paper-deep);
}

.book-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-card__body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin: 0.35rem 0 0;
}

.book-card__body .meta-list { margin-top: 0.75rem; }

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

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

.cover-as-art {
  width: min(100%, 240px);
  border-radius: 0.35rem;
  box-shadow: var(--shadow-cover);
  margin: 0 auto;
}

@media (min-width: 700px) {
  .cover-as-art { margin: 0; width: 100%; }
}

.meta-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.35rem;
}

.buy-panel {
  padding: 1.35rem 1.4rem;
  margin: 0 0 2rem;
  background: linear-gradient(135deg, rgba(139, 58, 47, 0.06), rgba(184, 150, 74, 0.08));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.buy-panel .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ink);
}

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

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

.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { margin-top: 2rem; }

.who-for {
  list-style: none;
  padding: 0;
}

.who-for li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
}

.who-for li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brass);
}

.related-books {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
}

.faq details {
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details[open] summary { margin-bottom: 0.5rem; }

.faq p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* —— TBD callouts —— */
.tbd {
  padding: 1rem 1.15rem;
  background: rgba(184, 150, 74, 0.12);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tbd strong { color: var(--ink); }

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: rgba(18, 20, 26, 0.03);
  padding: 1.5rem 0;
}

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

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
}

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

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

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

/* —— 404 —— */
.not-found {
  text-align: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--accent);
  opacity: 0.85;
}

/* —— Path strip on home —— */
.path-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.path-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.path-pill--craft {
  background: var(--craft-soft);
  color: var(--craft);
}

.path-pill--lit {
  background: var(--lit-soft);
  color: var(--lit);
}

.path-pill:hover { filter: brightness(0.95); }

cite { font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(18, 20, 26, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
