/* About (2026-11-20): the autobiography, his layout pick 3 of _preview/about-layout.html (section index).
   Loaded after css/home-hexagon.css, which brings the tokens (both themes), the fonts and the header (wordmark, nav,
   theme toggle, hamburger). This file undoes the home's whole-screen rules and sets the page.
   Desktop: the text column at the left gutter; the room to its right holds the section index, and a project opens
   there over the index, so opening one never moves or covers the text. Phones: one column; a project rises from the
   bottom over the lower part of the screen and the text stays where it is. */

/* body copy in MF Ductus (his ask, 2026-11-20): Regular, and Medium for the bold lead-ins; there is no italic cut,
   so the film title's italic is the browser's slant of Regular */
@font-face { font-family: 'MF Ductus'; src: url('/fonts/MFDuctus-Regular.woff2?v=8d135fea87') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'MF Ductus'; src: url('/fonts/MFDuctus-Medium.woff2?v=d50485e92a') format('woff2'); font-weight: 500; font-display: swap; }

/* the section index in MF Ductus Sans (his ask, 2026-11-20); the header's ABOUT / CONTACT / PROJECTS stay as on the home */
@font-face { font-family: 'MF Ductus Sans'; src: url('/fonts/MFDuctusSans-Regular.woff2?v=044380f490') format('woff2'); font-weight: 400; font-display: swap; }

html.mf-about, html.mf-about body { height: auto; overflow: visible; overscroll-behavior: auto; }
html.mf-about body { background: var(--floor, var(--cream)); color: var(--navy); font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; }
.mf-about { --ink: var(--navy); --quiet: var(--hint-ink); --ground: var(--floor, var(--cream));
  --line: color-mix(in srgb, var(--hint-ink) 32%, transparent);
  --gut: 41.89px; --col: min(600px, calc(100vw - 2 * var(--gut) - 340px)); --sheet: 56vh; }
.mf-about .mf-header { color: var(--navy); transition: none; }
/* the home's wrapper around the header only: none of its whole-screen box */
.mf-home.ab-head { height: auto; overflow: visible; isolation: auto; background: none; box-sizing: content-box; }
.mf-about a.mf-nav-item { color: inherit; text-decoration: none; }

.ab-main { overflow-anchor: none; color: var(--ink); font: 400 17px/1.65 'MF Ductus', 'Atkinson Hyperlegible Next', system-ui, sans-serif; padding: 67.77px 0 109.67px; }
.ab-main :is(p, li) { text-align: justify; hyphens: manual; margin: 0 0 16px; }
.ab-main strong { font-weight: 500; }
.ab-main em { font-style: italic; font-weight: 400; }
.ab-main ul { padding-left: 20px; margin: 0 0 16px; }
.ab-main li { margin-bottom: 9.89px; }
.ab-main a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ab-main a:hover { text-decoration-thickness: 2px; }
.ab-epi { margin: 0 0 41.89px; text-align: center; font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; }   /* MF Ductus has no Greek, and neither has Atkinson Hyperlegible Next (2026-11-22): the Greek line takes the system font */
.ab-epi p { margin: 0; text-align: center !important; }
.ab-epi .greek { font-size: 25.89px; line-height: 1.3; font-weight: 400; }
.ab-epi .tr { color: var(--quiet); font-style: italic; font-weight: 400; }
.ab-main h2 { font: 500 18.59px/1.2 'Atkinson Hyperlegible Next', system-ui, sans-serif; letter-spacing: 0;   /* 'Atkinson Hyperlegible Next', as written (his ask, 2026-11-20; was MF Ductus Sans SC small caps) */
 
  margin: 41.89px 0 16px; scroll-margin-top: 41.89px; }

/* the section index, in the room beside the text: the nav's type (Atkinson Hyperlegible Next at --nav-size) and its highlight (his asks,
   2026-11-20): on hover, or while pressed on a touch screen, the near-black shape behind the word with the near-white word
   on it, the nav's 21.53px height and 5.08px corner, never underlined. The section being read is in full ink, the others quiet */
.ab-toc { display: none; }
.ab-toc ol { list-style: none; margin: 0; padding: 0; font: 400 var(--nav-size)/var(--nav-leading) 'Atkinson Hyperlegible Next', system-ui, sans-serif; letter-spacing: 0; }
.ab-toc li { margin: 0 0 9.89px; }
.ab-toc a { position: relative; isolation: isolate; display: inline-block; color: var(--quiet); text-decoration: none; }
.ab-toc a::before { content: ''; position: absolute; z-index: -1; left: -8.04px; right: -8.04px; top: 50%; height: 21.53px; margin-top: -10.765px;
  border-radius: 5.08px; background: var(--shade); opacity: 0; pointer-events: none; }
.ab-toc a[aria-current] { color: var(--ink); }
.ab-toc a:hover, .ab-toc a:focus-visible { text-decoration: none; }
@media (hover: hover) { .ab-toc a:hover { color: var(--on-shade); } .ab-toc a:hover::before { opacity: 1; } }
.ab-toc a:active, .ab-toc a:focus-visible { color: var(--on-shade); outline: none; }
.ab-toc a:active::before, .ab-toc a:focus-visible::before { opacity: 1; }
@media (min-width: 601px) {
  .ab-main { margin-left: var(--gut); width: var(--col); }
  .ab-toc { display: block; position: fixed; top: 0; bottom: 0; right: 0; left: calc(2 * var(--gut) + var(--col));
    padding: 177.44px var(--gut) var(--gut); }
}
.mf-panel-open .ab-toc { visibility: hidden; }

/* the project panel */
.ab-panel { position: fixed; top: 0; right: 0; bottom: 0; left: calc(2 * var(--gut) + var(--col)); z-index: 20;
  display: flex; flex-direction: column; background: var(--ground); color: var(--ink); border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
.mf-panel-open .ab-panel { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ab-panel header { display: flex; align-items: center; justify-content: space-between; padding: 9.89px 9.89px 9.89px 25.89px;
  border-bottom: 1px solid var(--line); }
.ab-panel h3 { margin: 0; font: 500 18.59px/1 'MF Ductus SC', 'Atkinson Hyperlegible Next', sans-serif; text-transform: lowercase; letter-spacing: .12em; }
.ab-panel .ab-close { width: 44px; height: 44px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; }
.ab-panel .ab-close svg { width: 16px; height: 16px; }
@media (hover: hover) { .ab-panel .ab-close:hover { background: var(--shade); color: var(--on-shade, #FFFAF8); } }
.ab-panel .ab-close:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.ab-panel .ab-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 41.89px; }
.ab-panel iframe { width: min(100%, 360px, calc(100vh - 160px)); aspect-ratio: 1; height: auto; border: 0; background: transparent;
  touch-action: none; }

@media (max-width: 600px) {
  .mf-about { --gut: 16px; }
  .ab-main { padding: 41.89px var(--gut) 109.67px; }
  .mf-panel-open body { padding-bottom: calc(var(--sheet) + 25.89px); }
  .ab-panel { top: auto; left: 0; height: var(--sheet); border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    transform: translateY(100%); }
  .ab-panel iframe { width: min(100%, calc(var(--sheet) - 120px)); }
}
@media (prefers-reduced-motion: reduce) { .ab-panel, .mf-panel-open .ab-panel { transition: none; } }

/* phones: with the menu open, the home's membrane covers the page (the same material: the band's colour at 15%, a faint
   flash-blue cast, a 9.89px blur), the wordmark and theme toggle under it; only the hamburger and its list sit above
   (the home's own .mf-home.has-burger rules lift those; js/site-header.js sets .has-burger on the header's wrapper) */
.ab-membrane { position: fixed; inset: 0; z-index: 26; pointer-events: none;
  background: radial-gradient(120% 160% at 50% 0%, rgba(65, 103, 167, .06), transparent 70%), rgba(var(--veil), .15);
  -webkit-backdrop-filter: blur(9.89px) saturate(150%); backdrop-filter: blur(9.89px) saturate(150%);
  opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s .3s; }
.ab-head.has-burger + .ab-membrane { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s; }
@media (hover: none), (pointer: coarse) { .ab-head.has-burger + .ab-membrane { pointer-events: auto; } }
/* forced, as the home's (2026-11-21, his "Force this"): the About membrane stays 15% under the open phone menu */
@media (hover: none), (pointer: coarse) { .ab-head.has-burger + .ab-membrane { background: radial-gradient(120% 160% at 50% 0%, rgba(65, 103, 167, .06), transparent 70%), rgba(var(--veil), .15) !important; } }   /* touch screens: a tap anywhere closes the menu (js/site-header.js) */
@media (prefers-reduced-motion: reduce) { .ab-membrane, .ab-head.has-burger + .ab-membrane { transition: none; } }

/* wide screens (2026-11-20, his ask "the whole column should be centered"): the text column centred on the page, the
   section index in the room to its left (set toward the text), and the project panel in the room to its right, so the
   index stays in view and opening a project still moves and covers nothing. Below 1024px the column keeps to the left
   with the index and panel sharing the room on its right, as before. */
@media (min-width: 1024px) {
  .mf-about { --col: clamp(360px, calc(100vw - 2 * (300px + 2 * var(--gut))), 600px); --side: calc((100vw - var(--col)) / 2); }
  .ab-main { margin-left: var(--side); }
  .ab-toc { box-sizing: border-box; left: 0; right: auto; width: calc(var(--side) - var(--gut)); padding: 177.44px var(--gut) var(--gut); text-align: right; }
  .ab-panel { left: calc(var(--side) + var(--col) + var(--gut)); }
  .mf-panel-open .ab-toc { visibility: visible; }
}
