/* The Impeccable Path: site styles, night theme (2026-11-16) to match the logo
   (Instagram profile option F): ink ground, cream text, cinnabar, ochre and jade from the four
   book covers, stepped-fret (xicalcoliuhqui) borders. All color and type live in the tokens.
   The light "Desert codex" version is in build/edit-backups/site.css-pre-dark. */

:root {
  color-scheme: dark;
  --bg: #221c18;
  --bg-deep: #2c241f;
  --bg-hover: #362c25;
  --field: #2c241f;
  --ink: #efe3cb;
  --muted: #b8a78e;
  --accent: #a63a22;
  --accent-text: #e07a5c;
  --accent-hover: #b84a2e;
  --blue: #d4a24c;
  --jade: #6fa68a;
  --rule: #4a3d33;
  --on-accent: #f6efe2;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --measure: 40rem;
  --fret-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 9 H8 V1 H16 V5 H12' fill='none' stroke='%23b84a2e' stroke-width='1.3'/%3E%3C/svg%3E");
  --fret-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 9 H8 V1 H16 V5 H12' fill='none' stroke='%236fa68a' stroke-width='1.3'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
.wide { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

/* Stepped-fret bands */
.fret { height: 10px; background: var(--fret-red) repeat-x left center; }
.fret.blue { background-image: var(--fret-blue); }
.fret.short { width: 8rem; margin: 2.5rem auto; }

/* Header and footer */
.site-header { padding: 1.1rem 0 0.9rem; }
.site-header .wide { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.brand span { font-size: 0.85rem; letter-spacing: 0.26em; text-transform: uppercase; }
.nav { display: flex; gap: 1.6rem; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--accent-text); }
@media (max-width: 30rem) {
  .brand span { font-size: 0.68rem; letter-spacing: 0.16em; }
  .nav { gap: 0.8rem; font-size: 0.75rem; }
}

.site-footer { margin-top: 5rem; padding: 0 0 3rem; font-size: 0.85rem; color: var(--muted); }
.site-footer .fret { margin-bottom: 1.6rem; }
.site-footer .wide { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Type */
.label { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
.lede { text-wrap: pretty; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; color: var(--muted); font-style: italic; }

/* Sections */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hero h1, .hero .lede { max-width: 48rem; margin-inline: auto; }
.hero .label { display: block; margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.1rem; }
.section { padding-block: 2.5rem; }
.section > h2 { margin-bottom: 1rem; }
.section > .label { display: block; margin-bottom: 0.6rem; }

/* Home page choice cards */
.choices { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  display: block;
  padding: 1.6rem;
  background: var(--bg-deep);
  border-top: 2px solid var(--accent);
  text-decoration: none;
  color: var(--ink);
}
.choice:hover { background: var(--bg-hover); }
.choice h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 0.4rem 0 0.6rem; }
.choice p { color: var(--muted); margin: 0; }
.choice .go { display: inline-block; margin-top: 1rem; color: var(--accent-text); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Four-idea grid */
.ideas { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0 0.5rem; }
@media (min-width: 40rem) { .ideas { grid-template-columns: 1fr 1fr; } }
.idea { padding: 1.2rem 1.3rem; background: var(--bg-deep); border-left: 2px solid var(--jade); }
.idea h3 { margin-bottom: 0.4rem; }
.idea p { margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-size: 1.2rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.3rem; color: var(--accent-text); }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { margin: 0.6rem 0 0 1.3rem; }

/* Signup form */
.signup { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.6rem 0 0.6rem; }
@media (min-width: 36rem) { .signup { flex-direction: row; } }
.signup input[type="email"] {
  flex: 1;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--field);
  color: var(--ink);
}
.signup input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.button {
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.button:hover { background: var(--accent-hover); }
.fine { font-size: 0.85rem; color: var(--muted); }
.center { text-align: center; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.7rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0.2rem; top: 0.62em;
  width: 0.45rem; height: 0.45rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Quote block */
.voice { margin: 2rem 0; padding: 1.6rem 1.4rem; background: var(--bg-deep); text-align: center; }
.voice p { font-style: italic; font-size: 1.4rem; line-height: 1.38; }
.voice cite { font-style: normal; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-text); }

/* Legal pages */
.legal h1 { font-size: 2.4rem; margin: 3rem 0 0.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.signup input[type="email"]::placeholder { color: var(--muted); }

/* Book-first calls to action (home page, 2026-11-16) */
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: center; margin: 1.8rem 0 0; }
.text-link { color: var(--blue); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.text-link:hover { color: var(--accent-text); }

/* Book covers (2026-11-16) */
.cover-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 2vw, 1.4rem); max-width: 52rem; margin: 0 auto; }
.cover-row img, .books img {
  width: 100%; height: auto; aspect-ratio: 2 / 3;
  box-shadow: 0 0 0 1px rgba(239, 227, 203, 0.14), 0 0.6rem 1.4rem rgba(0, 0, 0, 0.45);
}
.cover-row a { transition: transform 0.15s ease; }
.cover-row a:hover { transform: translateY(-3px); }
.books { list-style: none; padding: 0; margin: 1.6rem 0; }
.books li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.3rem; align-items: start; margin-bottom: 2.2rem; }
.books .text-link { display: inline-block; margin-top: 0.5rem; }
@media (max-width: 30rem) { .books li { grid-template-columns: 5.2rem 1fr; gap: 1rem; } }
.book-meta { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
