/* The Impeccable Path: site styles, direction B "Desert codex".
   Bark-paper grounds, dark ink, cinnabar accent, Maya-blue secondary,
   stepped-fret (xicalcoliuhqui) borders. All color and type live in the tokens. */

:root {
  --bg: #efe6d3;
  --bg-deep: #e7d8bc;
  --ink: #2a211a;
  --muted: #6e5f4e;
  --accent: #a63a22;
  --blue: #3f7d94;
  --rule: #cdbb98;
  --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='%23a63a22' 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='%233f7d94' 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 svg { width: 2.3rem; height: 2.3rem; 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); }
@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); }
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: #e2d1b0; }
.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); 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(--blue); }
.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); }
.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: #faf5ea;
  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: #8f301b; }
.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); }

/* 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;
}
