/* about.hemishthanki.com — the About page.

   Chrome is the apex launcher shell verbatim (a full-height rail on desktop, an
   off-canvas drawer behind a hamburger at <=820px, the same three side-panel skins
   switched by data-ui + localStorage['ht-ui']) so moving between
   hemishthanki.com and this page is seamless.

   The content below it is the apex's own two-tone rhythm — the green field and
   the mist band from the home page — turned into alternating full-width
   sections, one per subject, text on one side and a picture on the other.

   Contrast note: mist on the green tops out at 3.75:1, which is AA for LARGE
   text only. So display type is mist, but every paragraph on a green section is
   pure white (4.93:1) and every paragraph on a mist section is a deeper green
   (--deep2, 5.84:1). The two brand colours never carry small text. */

:root {
  --green:  rgb(84, 121, 95);              /* the field */
  --mist:   rgb(218, 227, 218);            /* the ink */
  --deep:   rgb(43, 68, 51);               /* headings on mist — 8.1:1 */
  --deep2:  rgb(58, 90, 69);               /* body on mist    — 5.8:1 */

  --ink:            var(--mist);
  --ink2:           rgba(218, 227, 218, .86);   /* dimmed mist — display type only */
  --panel:          rgba(255, 255, 255, .06);   /* elevated surface floating on the green */
  --panel2:         rgba(218, 227, 218, .12);   /* hover wash */
  --line:           rgba(218, 227, 218, .16);   /* hairline */
  --line-strong:    rgba(218, 227, 218, .30);
  --accent-tint:        rgba(218, 227, 218, .16);   /* active row fill */
  --accent-tint-strong: rgba(218, 227, 218, .26);

  --font: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --side-w: 268px;
  --main-max: 1180px;
  --e1: 0 1px 2px rgba(0, 0, 0, .12);
  --dur: .16s;

  /* ---- side panel skin (base = "field": the sidebar floats on the green) --- */
  /* The sidebar is a full-height rail flush to the screen edges, so every skin is
     square-cornered and carries its own inner padding (there is no shell gutter
     left to inset it). */
  --side-bg:        transparent;
  --side-pad:       24px 18px;
  --side-radius:    0;
  --side-shadow:    none;
  --side-edge:      1px solid var(--line);   /* hairline that reads the rail off the field */
  --side-ink:       var(--mist);
  --side-ink2:      var(--ink2);
  --side-line:      var(--line);
  --profile-bg:     var(--panel);
  --profile-line:   var(--line);
  --profile-hover:  var(--panel2);
  --item-bg:        transparent;
  --item-hover:     var(--panel2);
  --item-ink:       var(--mist);
  --item-on:        var(--accent-tint);
  --focus-ring:     var(--mist);
  --strip-bg:       var(--green);   /* opaque backing for the sticky mobile strip */
}

/* ---- side panel skin: "panel" — mist surface, dark green button pills ----- */
:root[data-ui="panel"] {
  --side-bg:        var(--mist);
  --side-pad:       18px 14px;
  --side-radius:    0;
  --side-shadow:    0 6px 22px rgba(0, 0, 0, .16);
  --side-edge:      none;                    /* the mist surface separates itself */
  --side-ink:       var(--green);
  --side-ink2:      rgba(60, 88, 68, .78);
  --side-line:      rgba(84, 121, 95, .22);
  --profile-bg:     rgba(84, 121, 95, .09);
  --profile-line:   rgba(84, 121, 95, .20);
  --profile-hover:  rgba(84, 121, 95, .16);
  --item-bg:        var(--green);
  --item-hover:     rgb(68, 100, 78);
  --item-ink:       var(--mist);
  --item-on:        rgb(68, 100, 78);
  --focus-ring:     var(--green);
  --strip-bg:       var(--mist);
}

/* ---- side panel skin: "plain" — the same mist surface as "panel", but the rows
   are uncoloured: no pill, dark green type, only a wash on hover and a tint on the
   active row. The one skin where every nav label clears AA (--deep on mist is
   8.1:1, against 3.74:1 for mist-on-green and 3.9:1 for green-on-mist). */
:root[data-ui="plain"] {
  --side-bg:        var(--mist);
  --side-pad:       18px 14px;
  --side-radius:    0;
  --side-shadow:    0 6px 22px rgba(0, 0, 0, .16);
  --side-edge:      none;
  --side-ink:       var(--deep);
  --side-ink2:      rgba(43, 68, 51, .74);
  --side-line:      rgba(84, 121, 95, .22);
  --profile-bg:     rgba(84, 121, 95, .08);
  --profile-line:   rgba(84, 121, 95, .20);
  --profile-hover:  rgba(84, 121, 95, .15);
  --item-bg:        transparent;
  --item-hover:     rgba(84, 121, 95, .12);
  --item-ink:       var(--deep);
  --item-on:        rgba(84, 121, 95, .18);
  --focus-ring:     var(--green);
  --strip-bg:       var(--mist);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Material Symbols: hide until the font is confirmed loaded, so a blocked
   Google Fonts request never flashes raw ligature words. */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 21px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  overflow: hidden; width: 1.2em; text-align: center;
  direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; user-select: none; visibility: hidden;
}
body.fonts-ready .material-symbols-rounded { visibility: visible; }

/* Skip link — the sidebar is a long list of launcher links to tab past. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  background: var(--mist); color: var(--deep); font-weight: 700; font-size: 15px;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- shell -------- */
/* No shell padding: the sidebar rail owns the left edge of the screen, so the
   page gutter lives on .main instead. */
.shell {
  display: flex; align-items: stretch; gap: 0;
  min-height: 100vh; padding: 0;
}
.main {
  flex: 1 1 auto; min-width: 0; max-width: var(--main-max);
  align-self: stretch; margin-inline: auto;   /* centre in whatever the rail leaves */
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px;
}

/* -------------------------------------------------------- sidebar -------- */
/* Full screen: a floor-to-ceiling rail pinned to the left edge, held there by
   sticky as the page scrolls. It scrolls internally if the launcher list ever
   outgrows a short window. */
.sidebar {
  position: sticky; top: 0; flex: none; width: var(--side-w);
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--side-pad); border-radius: var(--side-radius);
  border-right: var(--side-edge);
  background: var(--side-bg); box-shadow: var(--side-shadow);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
/* With the rail running the full height, the system group sits on the floor. */
.sidebar > .side-group:last-child { margin-top: auto; }

/* The drawer furniture is mobile-only; the desktop sidebar is always on screen. */
.mobile-bar, .nav-toggle, .drawer-close, .nav-scrim { display: none; }
/* The profile chip is the settings trigger — clicking "Hemish Thanki" opens the
   side panel picker. No gear, no logo: the wordmark itself is the affordance. */
.side-profile {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; margin-bottom: 6px;
  width: 100%; text-align: left; cursor: pointer; font-family: var(--font);
  border: 1px solid var(--profile-line); border-radius: var(--radius);
  background: var(--profile-bg); box-shadow: var(--e1);
  transition: background var(--dur), border-color var(--dur);
}
.side-profile:hover { background: var(--profile-hover); }
.side-profile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.side-profile .av {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  overflow: hidden; background: rgba(0, 0, 0, .12);
}
.side-profile .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-profile .sp-text { display: flex; flex-direction: column; min-width: 0; }
.sp-name { font-weight: 700; font-size: 16px; letter-spacing: .02em; color: var(--side-ink); }
.sp-sub  { font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
           color: var(--side-ink2); margin-top: 2px;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-eyebrow {
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--side-ink2); padding: 8px 8px 8px; margin: 0;
}
.side-group { display: block; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-foot { display: flex; flex-direction: column; gap: 3px;
            margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--side-line); }

.side-item {
  display: flex; align-items: center; gap: 13px; padding: 11px 14px; width: 100%;
  border-radius: var(--radius-sm); border: none; background: var(--item-bg); text-align: left;
  text-decoration: none; cursor: pointer;
  color: var(--item-ink); font-family: var(--font); font-weight: 500; font-size: 15.5px;
  letter-spacing: .01em;
  transition: background var(--dur), color var(--dur);
}
.side-item .material-symbols-rounded { font-size: 21px; flex: none; }
.side-item .side-label { flex: 1; min-width: 0; }
.side-item .go {
  flex: none; font-size: 18px; opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur), transform var(--dur);
}
.side-item:hover { background: var(--item-hover); color: var(--item-ink); }
.side-item:hover .go { opacity: .8; transform: none; }
.side-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.side-item.is-on { background: var(--item-on); color: var(--item-ink); }
.side-item.is-on .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
/* You are here: the current page's row keeps its arrow slot empty. */
.side-item.is-on .go { display: none; }

/* ============================================================ CONTENT ====
   Every subject is a .band. Odd bands sit straight on the green field, even
   bands are mist cards — the same two surfaces the home page uses. */

.page-head {
  padding: clamp(1.75rem, 5vh, 3.25rem) clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vh, 1.75rem);
}
.eyebrow {
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .22em;
  color: #fff; opacity: .82;
}
.page-head h1 {
  margin-top: .5rem;
  font-weight: 700; font-size: clamp(44px, 9vw, 76px); line-height: 1.02;
  letter-spacing: .04em; color: var(--mist);
}
.page-head .sub {
  margin-top: .85rem; max-width: 34rem;
  font-weight: 500; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: #fff;
}

.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: var(--radius);
}
/* Alternate which side the picture takes, exactly like the source page. */
.band.flip .band-text { order: 2; }
.band.flip .fig       { order: 1; }

.band.mist { background: var(--mist); color: var(--deep2); }

.band-text { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.band-text p {
  font-weight: 500; font-size: clamp(18px, 1.75vw, 21px); line-height: 1.62;
  letter-spacing: .005em; color: #fff;                 /* 4.93:1 on the green */
  max-width: 32rem;
}
.band.mist .band-text p { color: var(--deep2); }       /* 5.84:1 on the mist  */

.band-text h2 {
  font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  letter-spacing: .03em; color: var(--mist);
}
.band.mist .band-text h2 { color: var(--deep); }

/* Small key/value facts ("Favourite Series' : ...") — the label is set apart by
   weight and tracking rather than by a lighter colour, which contrast forbids. */
.facts { display: flex; flex-direction: column; gap: .7rem; margin-top: .1rem; }
.fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.fact dt {
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  color: #fff; flex: none;
}
.fact dd {
  font-weight: 500; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: #fff;
}
.band.mist .fact dt { color: var(--deep); }
.band.mist .fact dd { color: var(--deep2); }

/* The people list — numerals in their own tile so the list reads as a roster. */
.roster { list-style: none; display: flex; flex-direction: column; gap: .55rem; counter-reset: r; }
.roster li {
  display: flex; align-items: baseline; gap: .85rem; counter-increment: r;
  font-weight: 500; font-size: clamp(17px, 1.65vw, 20px); line-height: 1.5; color: #fff;
}
.roster li::before {
  content: counter(r); flex: none;
  display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px;
  border-radius: 9px; background: var(--accent-tint); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--mist);
  transform: translateY(1px);
}

/* Pictures. A hairline keeps the flat, white-backed press images (Glass, the
   Pixel line-up) from bleeding into the mist band behind them. */
.fig { margin: 0; border-radius: 18px; overflow: hidden; min-width: 0;
       border: 1px solid var(--line-strong); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); }
.band.mist .fig { border-color: rgba(84, 121, 95, .28); box-shadow: 0 12px 30px rgba(20, 40, 28, .16); }
.fig img { display: block; width: 100%; height: auto; }
/* A portrait-format picture in a half-width column would tower over the two
   lines of text beside it. Narrow the FRAME rather than cropping with
   object-fit, so the artwork is never cut, and centre it in its column. */
.fig.portrait { max-width: 420px; justify-self: center; }

/* ------------------------------------------------------------- credit --- */
.credit {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-top: 1rem; padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-weight: 500; font-size: 16px; letter-spacing: .01em; color: #fff;
}
.credit a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.credit a:hover { text-decoration-thickness: 2px; }
.credit a:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; border-radius: 3px; }
.credit .material-symbols-rounded { font-size: 19px; opacity: .8; }

/* ------------------------------------------------------------ settings --- */
/* Styled from the constant palette (green field, mist ink) so the picker itself
   looks the same whichever side panel skin is selected. */
.settings {
  border: none; padding: 0; background: none; color: var(--ink);
  max-width: min(440px, calc(100vw - 32px)); width: 100%; margin: auto;
}
.settings::backdrop { background: rgba(20, 32, 24, .55); }
.set-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: 20px;
  background: var(--green); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  font-family: var(--font);
}
.set-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.set-head h2 { flex: 1; font-weight: 700; font-size: 21px; letter-spacing: .03em; color: var(--mist); }
.set-x {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
  color: var(--mist); cursor: pointer; transition: background var(--dur);
}
.set-x:hover { background: var(--panel2); }
.set-x:focus-visible { outline: 2px solid var(--mist); outline-offset: 2px; }
.set-eyebrow {
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: #fff; padding: 6px 2px;
}
.set-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.set-opt {
  position: relative; display: flex; flex-direction: column; gap: 9px; padding: 11px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--panel);
  cursor: pointer; transition: background var(--dur), border-color var(--dur);
}
.set-opt:hover { background: var(--panel2); }
.set-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.set-opt.is-sel { border-color: var(--mist); background: var(--accent-tint); }
.set-opt:has(input:focus-visible) { outline: 2px solid var(--mist); outline-offset: 2px; }
.set-name {
  display: flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 14px; letter-spacing: .02em; color: #fff;
}
.set-opt.is-sel .set-name { font-weight: 700; }
.set-name .tick { font-size: 18px; opacity: 0; flex: none; transition: opacity var(--dur); }
.set-opt.is-sel .tick { opacity: 1; }

/* Miniature of each side panel: the container is the panel surface, each row is
   a nav button and the inner bar is its label. */
.prev {
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  height: 76px; padding: 8px; border-radius: 11px;
}
.prev-row { display: flex; align-items: center; height: 16px; padding: 0 7px; border-radius: 7px; }
.prev-row i { display: block; height: 4px; border-radius: 2px; width: 62%; background: var(--mist); }
.prev-field { background: var(--green); border: 1px solid var(--line-strong); }
.prev-field .prev-row { background: rgba(218, 227, 218, .07); }
.prev-field .prev-row:first-child { background: var(--accent-tint); }
.prev-panel { background: var(--mist); border: 1px solid var(--line-strong); }
.prev-panel .prev-row { background: var(--green); }
/* "plain": the same mist surface, but the rows are just their labels. */
.prev-plain { background: var(--mist); border: 1px solid var(--line-strong); }
.prev-plain .prev-row { background: transparent; }
.prev-plain .prev-row:first-child { background: rgba(84, 121, 95, .18); }
.prev-plain .prev-row i { background: var(--deep); }

/* ========================================================== MOBILE =======
   <=820px: the sidebar becomes a horizontally scrolling tab strip on top and
   every band stacks, text first so the page still reads top-to-bottom. */
@media (max-width: 900px) {
  .band { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .band.flip .band-text { order: 0; }
  .band.flip .fig       { order: 0; }
  .fig.portrait { justify-self: start; }
}

@media (max-width: 820px) {
  .shell { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); min-height: 0; }
  .main { max-width: none; padding: 14px max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }

  /* --- the bar that carries the hamburger, in place of the old tab strip --- */
  .mobile-bar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 10px;
    padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    background: var(--strip-bg); border-bottom: 1px solid var(--side-line);
  }
  .mb-title {
    font-weight: 700; font-size: 16px; letter-spacing: .02em; color: var(--side-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* The hamburger and the close button are nav rows in miniature: same pill,
     same skin variables as every .side-item. */
  .nav-toggle, .drawer-close {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    background: var(--item-bg); color: var(--item-ink);
    transition: background var(--dur);
  }
  .nav-toggle:hover, .drawer-close:hover { background: var(--item-hover); }
  .nav-toggle:focus-visible, .drawer-close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
  .drawer-close { align-self: flex-end; margin-bottom: 4px; }

  /* --------------------------------- the drawer --------------------------- */
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(86vw, 300px);
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom));
    /* --side-bg is transparent in the "field" skin, which would show the page
       through the drawer; --strip-bg is the opaque backing of each skin. */
    background: var(--strip-bg); border-radius: 0; border-right: 1px solid var(--side-line);
    box-shadow: 0 8px 34px rgba(0, 0, 0, .34);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    transform: translateX(-102%); visibility: hidden;
    transition: transform .24s cubic-bezier(.2, 0, 0, 1), visibility .24s linear;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s linear;
  }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

  /* No hover on touch, so the row's outward arrow would never appear. */
  .side-item .go { display: none; }
}

@media (min-width: 821px) and (max-width: 1040px) {
  :root { --side-w: 224px; }
  .main { padding: 22px 18px; }
}
@media (min-width: 1500px) {
  :root { --side-w: 288px; --main-max: 1360px; }
  /* The rail stays welded to the left edge; only the content re-centres, which
     .main's auto inline margins already do. */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition: none !important; }
}
