/* About page (about.html). Page-specific styles; shared tokens come from assets/site.css (fallbacks given here). */
.ab {
  --ab-ink: var(--ink, #111);
  --ab-paper: var(--paper, #fff);
  --ab-muted: var(--grey, #555);
  --ab-line: var(--line-c, #DADAD7); /* light-grey outlines (Nelli, 09.10) */
  --ab-red: var(--red, #C83C1E);
  --ab-green: var(--green, #146E32);
  --ab-blue: var(--blue, #143CAA);
  --ab-s1: #F0FBEE; --ab-s2: #F8FCC0; --ab-s3: #FFF2D1; --ab-s4: #FDE5C7; --ab-s5: #FEF7ED; --ab-s6: #CAE9FA;
  --ab-r: 22px;
  --ab-text: var(--f-text, "Golos Text", "Noto Sans Georgian", system-ui, sans-serif);
  --ab-ka: var(--f-ka, "Noto Sans Georgian", "Golos Text", system-ui, sans-serif);
  --ab-display: var(--f-display, "Hanson", "Golos Text", system-ui, sans-serif);
  color: var(--ab-ink);
  font-family: var(--ab-text);
  line-height: 1.5;
  overflow-x: clip;
}
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab [lang="ka"], .ab:lang(ka) { font-family: var(--ab-ka); }
.ab img { max-width: 100%; height: auto; display: block; }
.ab a { color: inherit; }

.ab-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .ab-wrap { padding: 0 32px; } }

.ab-sec { padding: 56px 0; }
@media (min-width: 900px) { .ab-sec { padding: 88px 0; } }
.ab-sec + .ab-sec { border-top: 2px solid var(--ab-line); }

.ab-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border: 2px solid var(--ab-line); border-radius: 999px; background: var(--ab-paper); margin: 0 0 16px;
}
.ab:lang(ka) .ab-kicker { letter-spacing: .02em; text-transform: none; }
.ab-h2 { font-size: clamp(28px, 5vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; max-width: 22ch; }
.ab:lang(en) .ab-h2, .ab:lang(fr) .ab-h2 { font-family: var(--ab-display); font-weight: 700; letter-spacing: 0; }
.ab-intro { font-size: clamp(17px, 2.1vw, 20px); max-width: 60ch; margin: 0 0 32px; }
.ab-muted { color: var(--ab-muted); }

/* ---------- hero ---------- */
.ab-hero { padding: 40px 0 56px; }
@media (min-width: 900px) { .ab-hero { padding: 64px 0 88px; } }
.ab-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .ab-hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.ab-eyebrow { font-size: 14px; font-weight: 600; color: var(--ab-muted); margin: 0 0 14px; }
.ab-booktitle { font-family: var(--ab-ka); font-weight: 800; font-size: clamp(40px, 9vw, 84px); line-height: 1; letter-spacing: -.01em; margin: 0 0 14px; color: var(--ab-ink); }
.ab-h1 { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.08; font-weight: 800; margin: 0 0 20px; max-width: 20ch; }
.ab:lang(en) .ab-h1, .ab:lang(fr) .ab-h1 { font-family: var(--ab-display); font-weight: 700; }
.ab-lead { font-size: clamp(17px, 2vw, 20px); margin: 0 0 24px; max-width: 54ch; }
.ab-hero-img { position: relative; border: 2px solid var(--ab-line); border-radius: var(--ab-r); overflow: hidden; background: var(--ab-s5); }
.ab-hero-img img { transform: scale(1.16); transform-origin: 50% 46%; }
/* hero video loop (16:10). Reduced motion: the still (= poster frame) instead of the video */
.ab-hero-vid { aspect-ratio: 16 / 10; }
.ab-hero-vid video, .ab-hero-vid .ab-vid-still { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; }
.ab-hero-vid video { pointer-events: none; }
.ab-hero-vid .ab-vid-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ab-hero-vid video { display: none; }
  .ab-hero-vid .ab-vid-still { display: block; }
}

.ab-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--ab-line); border-radius: 999px; background: var(--ab-paper); color: var(--ab-ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.ab-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ab-line); }
.ab-btn:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.ab .ab-btn--dark, .ab a.ab-btn--dark { background: var(--ab-ink); color: var(--ab-paper); border-color: var(--ab-ink); }

/* word family */
.ab-family { margin: 28px 0 0; }
.ab-family ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-family li { border: 2px solid var(--ab-line); border-radius: 14px; padding: 6px 12px 7px; background: var(--ab-paper); line-height: 1.25; }
.ab-family .w { font-family: var(--ab-ka); font-size: 18px; font-weight: 500; display: block; }
.ab-family .w b { font-weight: 800; color: var(--ab-blue); }
.ab-family .tr { font-size: 13px; color: var(--ab-muted); }
.ab-family figcaption { font-size: 14px; color: var(--ab-muted); }

/* stats */
.ab-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .ab-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.ab-stats li { border: 2px solid var(--ab-line); border-radius: var(--ab-r); padding: 18px 16px; }
.ab-stats li:nth-child(1) { background: var(--ab-s1); } .ab-stats li:nth-child(2) { background: var(--ab-s2); }
.ab-stats li:nth-child(3) { background: var(--ab-s3); } .ab-stats li:nth-child(4) { background: var(--ab-s6); }
.ab-stats .n { display: block; font-family: var(--ab-display); font-weight: 700; font-size: clamp(24px, 6.4vw, 40px); white-space: nowrap; line-height: 1; margin-bottom: 8px; }
@media (min-width: 900px) { .ab-stats .n { font-size: clamp(28px, 3.2vw, 40px); } }
.ab-stats .l { font-size: 15px; line-height: 1.35; }

/* ---------- inside: cards ---------- */
.ab-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
/* 5 cards: 2 + 2 + 1 full-width at tablet; 3 + 2 wider at desktop — no empty slot */
@media (min-width: 680px) { .ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 680px) and (max-width: 1019.98px) { .ab-cards > .ab-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1020px) { .ab-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ab-cards > .ab-card { grid-column: span 2; } .ab-cards > .ab-card:nth-child(n+4) { grid-column: span 3; } }
.ab-card { border: 2px solid var(--ab-line); border-radius: var(--ab-r); padding: 22px 20px 24px; background: var(--ab-paper); }
.ab-cards .ab-card:nth-child(6n+1) { background: var(--ab-s1); } .ab-cards .ab-card:nth-child(6n+2) { background: var(--ab-s2); }
.ab-cards .ab-card:nth-child(6n+3) { background: var(--ab-s3); } .ab-cards .ab-card:nth-child(6n+4) { background: var(--ab-s4); }
.ab-cards .ab-card:nth-child(6n+5) { background: var(--ab-s5); } .ab-cards .ab-card:nth-child(6n+6) { background: var(--ab-s6); }
.ab-card .ab-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 2px solid var(--ab-line); border-radius: 50%; font-weight: 800; font-size: 15px; background: var(--ab-paper); margin-bottom: 14px; }
.ab-card h3 { font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.ab-card p { margin: 0; font-size: 16px; }
.ab-card [lang="ka"] { font-weight: 600; }

/* ---------- how to use: steps ---------- */
.ab-steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .ab-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-steps li { counter-increment: st; border-top: 2px solid var(--ab-line); padding: 16px 0 0; }
.ab-steps li::before { content: counter(st); display: block; font-family: var(--ab-display); font-size: 40px; line-height: 1; margin-bottom: 10px; color: var(--ab-red); }
.ab-steps h3 { font-size: 19px; margin: 0 0 6px; }
.ab-steps p { margin: 0; }

/* ---------- gallery ---------- */
.ab-gal { display: grid; gap: 16px; }
@media (min-width: 760px) { .ab-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-gal .wide { grid-column: 1 / -1; } }
.ab-gal figure { margin: 0; }
.ab-gal .frame { border: 2px solid var(--ab-line); border-radius: var(--ab-r); overflow: hidden; }
.ab-gal figcaption { font-size: 15px; margin: 10px 4px 0; }
.ab-note { font-size: 14px; color: var(--ab-muted); border-left: 3px solid var(--ab-red); padding: 4px 0 4px 12px; margin: 0 0 28px; max-width: 70ch; }

/* ---------- details ---------- */
.ab-det { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .ab-det { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.ab-det .frame { border: 2px solid var(--ab-line); border-radius: var(--ab-r); overflow: hidden; }
.ab-dl { margin: 0; border-top: 2px solid var(--ab-line); }
.ab-dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hair-c, #E6E6E3); }
@media (min-width: 560px) { .ab-dl > div { grid-template-columns: 9.5em 1fr; gap: 16px; } }
.ab-dl dt { font-weight: 700; }
.ab-dl dd { margin: 0; }
.ab-tbd { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ab-red); color: var(--ab-red); border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 2px; }

/* ---------- club ---------- */
.ab-club { border: 2px solid var(--ab-line); border-radius: calc(var(--ab-r) + 6px); background: var(--ab-s6); padding: 28px 20px; display: grid; gap: 20px; }
@media (min-width: 900px) { .ab-club { grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 48px; } }
.ab-club .ab-h2 { margin-bottom: 6px; }
.ab-club .sub { font-size: 18px; font-weight: 600; margin: 0 0 20px; }
.ab-club p { margin: 0 0 14px; }

/* ---------- author ---------- */
.ab-author { display: grid; gap: 24px; }
@media (min-width: 900px) { .ab-author { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.ab-name { font-family: var(--ab-display); font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: 1; margin: 0 0 12px; }
.ab-role { font-size: 18px; color: var(--ab-muted); margin: 0; }
.ab-statement { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; margin: 0 0 18px; }

/* ---------- projects ---------- */
.ab-proj { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 680px) { .ab-proj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ab-proj { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-proj a, .ab-proj .soon { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 20px; border: 2px solid var(--ab-line); border-radius: var(--ab-r); text-decoration: none; background: var(--ab-paper); transition: background .15s, transform .15s; }
.ab-proj a:hover { background: var(--ab-s2); transform: translateY(-2px); }
.ab-proj a:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.ab-proj .g { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--ab-line); border-radius: 50%; background: var(--ab-s1); margin-bottom: 8px; flex: none; }
.ab-proj li:nth-child(6n+2) .g { background: var(--ab-s2); } .ab-proj li:nth-child(6n+3) .g { background: var(--ab-s3); }
.ab-proj li:nth-child(6n+4) .g { background: var(--ab-s4); } .ab-proj li:nth-child(6n+5) .g { background: var(--ab-s5); }
.ab-proj li:nth-child(6n+6) .g { background: var(--ab-s6); }
.ab-proj .g svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-proj .t { font-weight: 800; font-size: 19px; line-height: 1.25; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ab-proj .t::after { content: "↗"; font-weight: 400; }
.ab-proj .soon { border-style: dashed; color: var(--ab-muted); }
.ab-proj .soon .t::after { content: ""; }
.ab-proj .d { font-size: 15px; }
.ab-proj .u { font-size: 13px; color: var(--ab-muted); overflow-wrap: anywhere; }
.ab-proj a.soon:hover { background: var(--ab-paper); transform: none; cursor: default; }
.ab-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- pre-order (button shown only when Site.links.preorder is set) ---------- */
.ab-po { border: 2px solid var(--ab-line); border-radius: calc(var(--ab-r) + 6px); background: var(--ab-s2); padding: 28px 20px; display: grid; gap: 12px 20px; }
@media (min-width: 900px) { .ab-po { grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 48px; align-items: start; } }   /* both columns top-aligned: kicker + title | text + button */
.ab-po .ab-h2 { margin: 0; }
.ab-po-text { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; margin: 0; max-width: 560px; }
.ab-author .ab-btns { margin-top: 20px; }

.ab-po-text a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ab-po-text a:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- 18+ badge on the cover mockup (no text, on purpose) ---------- */
.ab-det .frame.ab-cover { position: relative; overflow: visible; }
.ab-cover img { border-radius: calc(var(--ab-r) - 2px); }
.ab-18 {
  position: absolute; z-index: 1; top: -12px; right: -6px; width: 64px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transform: rotate(12deg);
  background: var(--ab-red); color: #fff; border: 3px solid var(--ab-paper); box-shadow: 0 0 0 2px var(--ab-red);
  font-family: var(--ab-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1;
}
@media (min-width: 720px) { .ab-18 { width: 80px; height: 80px; font-size: 25px; top: -18px; right: -16px; } }
@media (prefers-reduced-motion: no-preference) { .ab-18 { transition: transform .25s; } .ab-cover:hover .ab-18 { transform: rotate(-8deg) scale(1.06); } }
@media (max-width: 679px) {
  .ab-proj a { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding: 16px 16px 18px; }
  .ab-proj .g { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .ab-proj .t, .ab-proj .d, .ab-proj .u { grid-column: 2; }
}
