@import url("original.css");
@import url("type.css");

:root {
  --muted: #626261;
  --soft: #f0f0ee;
  --selected: #fff;
  --line: #ddd;
  --reader: "Site Charter", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --background: #191a1b; --foreground: #e9e8e5; --muted: #adadaa; --soft: #252525; --selected: #484848; --line: #393939; }
}
body { font-family: var(--sans); }
nav a:focus-visible, main :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
nav ul li a.nav-text:focus-visible::after { width: 100%; }
main { min-width: 0; max-width: 100%; font: 18px/1.53 var(--reader); letter-spacing: 0; }
h1, h2, h3 { font-weight: 400; }
h1 { margin: -3px 0 21px; font-size: 27px; line-height: 1.16; letter-spacing: -.045em; }
h2, .label, footer, .back, time, figcaption small, .axis, .notice {
  font: 13px/1.5 var(--sans); letter-spacing: 0; color: var(--muted);
}
.home, .writing-list, .prose { font-size: 17px; line-height: 1.48; }
.home > p { margin-bottom: 1.35em; }
main .experience { margin: 0; padding: 0; list-style: none; }
.experience li { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 12px; margin-bottom: 1.05em; }
.experience .year { white-space: nowrap; font-size: .94em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.experience strong { font-weight: 700; }
footer { margin-top: 29px; }
@media (min-width: 769px) {
  .writing-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
.writing-list a { position: relative; border: 0; }
.writing-list a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width .3s ease;
}
.writing-list a:is(:hover, :focus-visible, :active)::after { width: 100%; }
.writing-list { list-style: none; }
.writing-list li { display: flex; align-items: baseline; gap: 16px; }
.reader-heading { margin: 16px 0 6px; }
.writing-dates { margin-bottom: 23px; color: var(--muted); font: 13px/1.6 var(--sans); }
.writing-dates time { white-space: nowrap; font: inherit; }
.back { border: 0; }
.shelf-top { display: flex; gap: 15px; align-items: baseline; margin: -3px 0 16px; }
.shelf-top h1 { margin: 0; }
.filters { display: inline-flex; max-width: 100%; background: var(--soft); padding: 3px; border-radius: 8px; margin: 0 0 20px; }
.filters button { white-space: nowrap; cursor: pointer; color: var(--muted); border: 0; border-radius: 6px; background: transparent; padding: 5px 11px; font: 13px/1.4 var(--sans); }
.filters button[aria-pressed=true] { color: var(--foreground); background: var(--selected); box-shadow: 0 1px 3px #0002; }
.filters button:hover { color: var(--foreground); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px 16px; list-style: none; }
.gallery a { display: block; border: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.gallery li:is([data-medium="Games"],[data-medium="Film & TV"]) img { aspect-ratio: 2/3; }
.gallery .album-art { aspect-ratio: 1; }
.gallery li[data-medium="Books"] img { aspect-ratio: 2/3; object-fit: contain; }
.gallery li[data-medium="Art"] img { aspect-ratio: auto; height: auto; }
.gallery h3 { margin-top: 6px; font-size: 16px; line-height: 1.2; }
.gallery a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.gallery .label { font-size: 12px; }
.metric { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; margin: 21px 0; }
.metric h3 { font-size: 17px; }
.reading { font-variant-numeric: lining-nums tabular-nums; font-size: 24px; }
.reading small { font: 12px var(--sans); color: var(--muted); }
.chart { display: block; width: 100%; height: 47px; }
.axis { display: flex; justify-content: space-between; font-size: 10px; }
@media (max-width: 768px) {
  .container { width: min(100%,600px); }
  nav { padding: 3px 12px calc(5px + env(safe-area-inset-bottom)); }
  nav::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 12px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--background)); }
  nav ul { gap: 4px; height: auto; }
  nav ul li, nav ul li a.nav-icon { height: 44px; width: 44px; }
  nav:focus-within { opacity: 1; pointer-events: auto; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 12px; }
  .filters { display: flex; width: fit-content; margin-inline: auto; }
  .filters button { padding: 7px clamp(5px,1.65vw,11px); }
  .experience li { grid-template-columns: 57px minmax(0,1fr); gap: 9px; }
  .metric { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  nav, nav ul li a.nav-text::after, .writing-list a::after { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.gallery img[src="art/moon.jpg"] { object-fit: contain; background: #0a0a0a; }
.vitals-page { max-width: 520px; }
.vitals-page h1 { margin-bottom: 7px; }
.vitals-page .week-bar { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 10px; border-bottom: 1px solid var(--line); }
.week-controls { display: flex; }
.week-controls button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--foreground); font-size: 18px; cursor: pointer; }
.week-controls button:disabled { opacity: .28; cursor: default; }
.vitals-page .metric { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vitals-page .chart { overflow: visible; }
.vitals-page .chart-note { margin: 14px 0; }
.vitals-head {display:flex;align-items:baseline;gap:14px}
.vitals-page #report-status {margin:6px 0 14px}
.day-link {font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;background:none;border:0;cursor:pointer}
.vitals-page #report-date {font:22px/1.3 var(--reader);color:var(--foreground)}
.vitals-page .week-bar {margin-top:12px}
.day-headlines {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:19px 0 27px}
.day-headlines strong,.day-headlines small {display:block}
.day-headlines strong {font:clamp(19px,3vw,27px)/1.3 var(--reader);font-variant-numeric:tabular-nums}
.day-headlines small,.stage-list {font:12px/1.45 var(--sans);color:var(--muted)}
.report-subtitle {font:19px/1.4 var(--reader);margin:23px 0 9px}
.daily-table {border-collapse:collapse;width:100%;font:14px/1.4 var(--sans);font-variant-numeric:tabular-nums}
.daily-table th,.daily-table td {text-align:right;padding:7px 0 7px 6px;font-weight:400;border-bottom:1px solid var(--line)}
.daily-table th:first-child {text-align:left;padding-left:0}
.daily-table thead,.daily-table td:last-child {color:var(--muted)}
.stage-bar {display:flex;height:6px;overflow:hidden;border-radius:3px;margin:12px 0}
.stage-bar .light{background:#9b9b9b}.stage-bar .deep{background:#525252}.stage-bar .rem{background:#747474}.stage-bar .awake{background:#cbcbcb}
.stage-list{display:grid;grid-template-columns:repeat(4,1fr)}.stage-list b {display:block;font-weight:400;color:var(--foreground)}
.sessions {list-style:none;padding:0;font-size:16px}.sessions strong{text-transform:capitalize;font-weight:400}
.history {margin-top:25px}.history summary {cursor:pointer;font-size:16px}

/* Reserve the same navigation and reading column on short and scrolling pages. */
@media (min-width:769px) {
  html { scrollbar-gutter: stable; }
  .container { width:min(770px,100%); }
}


.gallery { align-items: start; }
.gallery > li { min-width: 0; }
.gallery [hidden] { display: none; }
.gallery .album-art { height: auto; }
.gallery li[data-medium="Books"] > a:first-child img { height: auto; object-fit: contain; }
.shelf-credits { margin-top: 32px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.5 var(--sans); }
.shelf-credits h2 { margin: 0; color: var(--foreground); font-size: 13px; }
.shelf-credits p { margin: 8px 0 0; }

.gallery li img.theatrical-poster { aspect-ratio: auto; height: auto; }


.gallery li img.catalog-cover { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; }
