/* ============================================================
   About page (about.html only).
   Calm and editorial: a dark masthead with four quick facts, then the
   text in numbered sections beside a section index. It reuses the
   site's own pieces (.quote-note, .track-card, .marker-highlight,
   .about-bottom-nav) and adds only what the layout needs.
   Everything here is scoped under .ab or an ab- class.
   ============================================================ */

.ab { --rule: #e2ddd0; background: var(--cream); overflow-x: clip; }
.ab :focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ---------- Masthead ---------- */
.ab-mast { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--text-light); padding: 58px 0 64px; }
.ab-lamp { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 18% -10%, rgba(255, 214, 150, .15), transparent 62%),
    radial-gradient(ellipse 50% 70% at 90% 115%, rgba(91, 84, 224, .26), transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 7px); }
.ab-eyebrow { font: 600 0.76rem/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9a4ff; }
.ab-mast h1 { color: #fff; font: 600 clamp(2.1rem, 4.4vw, 3.2rem)/1.1 var(--serif); letter-spacing: -0.015em; margin: 8px 0 14px; max-width: 20ch; }
.ab-lead { color: var(--text-dim); font: 400 1.18rem/1.65 var(--serif); max-width: 56ch; }
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; }
.ab-facts > div { padding: 14px 16px 15px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--navy-line); border-left: 3px solid var(--c); }
.ab-facts dt { font: 600 0.64rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--c); }
.ab-facts dd { margin: 6px 0 0; font: 600 0.98rem/1.4 var(--serif); color: #fff; }

/* ---------- Body: section index + content ---------- */
.ab-body { display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: space-between; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
.ab-index { position: sticky; top: 28px; align-self: start; }
.ab-index p { font: 600 0.68rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.ab-index ol { list-style: none; padding: 0; margin: 0; counter-reset: i; }
.ab-index li { counter-increment: i; }
.ab-index a { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 6px; font: 500 0.88rem/1.35 var(--sans); color: var(--text-mute); transition: background .2s, color .2s; }
.ab-index a::before { content: counter(i, decimal-leading-zero); font: 400 1rem/1 var(--hand); color: var(--purple); width: 1.4em; flex: none; }
.ab-index a:hover { color: var(--text-dark); background: rgba(255, 255, 255, .7); }
.ab-index a.on { color: var(--text-dark); background: #fff; box-shadow: inset 2px 0 0 var(--purple); }
.ab-index li:last-child a::before { content: "\00a7"; font-family: var(--serif); }

.ab-content { min-width: 0; }
.ab-sec { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.ab-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.ab-n { font: 400 1.7rem/1 var(--hand); color: var(--purple); }
.ab-h h2 { font: 600 clamp(1.55rem, 2.8vw, 2rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--text-dark); }
.ab-sec > p, .ab-who p { font: 400 1.1rem/1.78 var(--serif); color: #2c3146; margin-bottom: 1em; }
.ab-sec > p:last-child { margin-bottom: 0; }
.ab .quote-note { margin-top: 0; }

/* 02 the question */
.ab-big { font: 600 clamp(1.6rem, 3vw, 2.15rem)/1.3 var(--serif) !important; color: var(--text-dark) !important; letter-spacing: -.01em; padding-left: 20px; border-left: 3px solid var(--purple); }
.ab-mark { background: linear-gradient(100deg, color-mix(in srgb, #ffe137 18%, transparent), color-mix(in srgb, #ffe137 58%, transparent) 4%, color-mix(in srgb, #ffe137 48%, transparent) 50%, color-mix(in srgb, #ffe137 60%, transparent) 96%, color-mix(in srgb, #ffe137 18%, transparent)) no-repeat 0 90% / 100% .5em;
  -webkit-box-decoration-break: slice; box-decoration-break: slice; }

/* 03 three layers: the home page's sticky notes, stacked */
.ab-layers { display: grid; gap: 26px; margin-top: 26px; }
.ab .ab-layers .track-card { align-items: flex-start; padding: 24px 28px 24px 24px; }
.ab .ab-layers .track-card:nth-child(1) { transform: rotate(-.6deg); }
.ab .ab-layers .track-card:nth-child(2) { transform: rotate(.5deg); }
.ab .ab-layers .track-card:nth-child(3) { transform: rotate(-.35deg); }
.ab .ab-layers .track-card .icon img { width: 76px; height: 76px; }
.ab .ab-layers .track-card h3 { font: 600 1.25rem/1.3 var(--serif); margin-bottom: 4px; }
.ab .ab-layers .track-card .ab-q { font: 400 1.25rem/1.35 var(--hand); color: #2b2b34; margin-bottom: 6px; }
.ab .ab-layers .track-card p { font-size: 0.97rem; line-height: 1.6; color: #3d4256; }

/* 04 how a note works: a ruled sheet, handwritten like the home page panel */
.ab-steps { list-style: none; counter-reset: s; margin: 22px 0 0; padding: 18px 26px 16px 80px; position: relative; border: 1px solid var(--paper-border); border-radius: 8px;
  background-color: var(--paper); box-shadow: 0 18px 36px -28px rgba(30, 28, 90, .45);
  background-image: linear-gradient(to right, transparent 56px, var(--paper-margin) 56px, var(--paper-margin) 57px, transparent 57px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 40px);
  background-position: 0 0, 0 18px; }
.ab-steps li { position: relative; counter-increment: s; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); column-gap: 18px; }
.ab-steps li::before { content: counter(s); position: absolute; left: -48px; width: 30px; text-align: right; font: 400 1.45rem/40px var(--hand); color: var(--purple); }
.ab-steps b { font: 400 1.32rem/40px var(--hand); color: var(--purple); }
.ab-steps span { font: 400 1.18rem/40px var(--hand); color: var(--text-mute); }
.ab-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 26px; }
.ab-rule p { display: flex; flex-direction: column; gap: 6px; }
.ab-rule p span { font: 400 1.15rem/1.2 var(--hand); color: var(--text-mute); }
.ab-rule p b { display: inline-block; align-self: flex-start; font: 700 0.95rem/1.25 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--purple); border: 2.5px solid currentColor; border-radius: 7px; padding: 8px 13px; transform: rotate(-1.5deg); }
.ab-rule a { font: 600 0.9rem/1.4 var(--sans); color: var(--purple); max-width: 36ch; }
.ab-rule a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 05 what this site is not */
.ab-not { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ab-not > div { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; }
.ab-not h3 { display: flex; align-items: center; gap: 10px; font: 600 1.12rem/1.3 var(--serif); margin-bottom: 8px; }
.ab-not h3::before { content: ""; flex: none; width: 18px; height: 2.5px; border-radius: 2px; background: #b5432a; transform: rotate(-12deg); }
.ab-not p { font-size: 0.97rem; line-height: 1.65; color: var(--text-mute); }
.ab-better { position: relative; margin: 34px 0 0; background: #f3e6a0; padding: 26px 30px 24px; transform: rotate(-.8deg); box-shadow: 0 2px 3px rgba(34, 28, 20, .16), 0 18px 32px -20px rgba(34, 28, 20, .45); }
.ab-better::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(216, 212, 198, .6); }
.ab-better figcaption { font: 400 1.25rem/1.2 var(--hand); color: #6a5a1a; margin-bottom: 6px; }
.ab-better blockquote { font: 600 clamp(1.25rem, 2.3vw, 1.6rem)/1.38 var(--serif); color: #24283a; }

/* 06 what you will find here */
.ab-find { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ab-find li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ab-find a { font: 600 1.06rem/1.3 var(--serif); color: var(--text-dark); }
.ab-find a::after { content: " \2192"; color: var(--purple); font-family: var(--sans); font-size: .9em; }
.ab-find a:hover { color: var(--purple); }
.ab-find p { margin-top: 4px; font-size: 0.92rem; line-height: 1.55; color: var(--text-mute); }
.ab-read { margin-top: 30px; padding: 22px 24px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.ab-read h3 { font: 600 0.7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; }
.ab-read-demo { font: 400 1.2rem/1.75 var(--serif); color: #24283a; }
.ab-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--rule); }
.ab-keys > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-content: start; }
.ab-keys > div::before { content: ""; grid-row: 1 / 3; width: 30px; height: 12px; margin-top: 4px; border-radius: 3px; transform: rotate(-2deg); background: color-mix(in srgb, var(--sc) 55%, transparent); }
.ab-keys .y { --sc: #ffe137; } .ab-keys .p { --sc: #ff4dc4; } .ab-keys .g { --sc: #5dff5a; }
.ab-keys dt { font: 600 0.88rem/1.4 var(--sans); color: var(--text-dark); }
.ab-keys dd { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--text-mute); }

/* 07 who writes it */
.ab-who { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: start; }
.ab-card { position: relative; margin: 6px 0 0; padding: 18px 20px 14px; background: #fff; border-radius: 4px; transform: rotate(1.2deg);
  box-shadow: 0 2px 3px rgba(34, 28, 20, .12), 0 22px 36px -24px rgba(34, 28, 20, .5);
  background-image: linear-gradient(to bottom, transparent 46px, #e7aaa1 46px, #e7aaa1 47.5px, transparent 47.5px); }
.ab-card::before { content: "Author"; display: block; height: 30px; font: 600 0.66rem/30px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.ab-card > div { padding: 8px 0; border-bottom: 1px solid #dfe5ee; }
.ab-card > div:last-child { border-bottom: 0; }
.ab-card dt { font: 600 0.62rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.ab-card dd { margin: 2px 0 0; font: 400 1.15rem/1.3 var(--hand); color: #23306e; }

/* closing + legal */
.ab-close { padding: 8px 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.ab-close-a { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--serif); color: var(--text-dark); letter-spacing: -.01em; }
.ab-close-b { margin-top: 8px; font: 400 1.4rem/1.35 var(--hand); color: var(--purple); }
.ab-legal { padding: 22px 26px 18px; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--purple); border-radius: 10px; scroll-margin-top: 24px; }
.ab-legal h2 { font: 600 1.3rem/1.3 var(--serif); margin-bottom: 10px; }
.ab-legal p { font: 400 1rem/1.7 var(--serif); color: var(--text-mute); margin-bottom: .8em; }
.ab-legal .about-bottom-nav { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ab-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ab-index { display: none; }
  .ab-content { width: 100%; max-width: 760px; }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ab .wrap { padding: 0 18px; }
  .ab-mast { padding: 34px 0 44px; }
  .ab-mast h1 { font-size: 2.05rem; }
  .ab-lead { font-size: 1.04rem; }
  .ab-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ab-body { padding-top: 40px; }
  .ab-sec { padding-bottom: 40px; margin-bottom: 40px; }
  .ab-sec > p, .ab-who p { font-size: 1.03rem; }
  .ab .quote-note { float: none; width: auto; margin: 0 0 22px; }
  .ab .ab-layers .track-card { flex-direction: column; gap: 8px; }
  .ab-steps { padding: 18px 14px 16px 58px; background-image: linear-gradient(to right, transparent 40px, var(--paper-margin) 40px, var(--paper-margin) 41px, transparent 41px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 40px); }
  .ab-steps li { grid-template-columns: minmax(0, 1fr); }
  .ab-steps li::before { left: -40px; }
  .ab-not, .ab-find, .ab-keys, .ab-who { grid-template-columns: minmax(0, 1fr); }
  .ab-card { transform: none; }
}
