/* ARCHIVE-OS v2 — one font, one weight, three sizes (12 / 15 / 20). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0a; --ink: #f2f2f2; --dim: rgba(242,242,242,.4);
  --faint: rgba(242,242,242,.12); --green: #00B74F;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f8f9; --ink: #0a0a0a; --dim: rgba(10,10,10,.4);
          --faint: rgba(10,10,10,.12); }
}
:root[data-theme=light] { --bg: #f7f8f9; --ink: #0a0a0a;
  --dim: rgba(10,10,10,.4); --faint: rgba(10,10,10,.12); }
:root[data-theme=dark] { --bg: #0a0a0a; --ink: #f2f2f2;
  --dim: rgba(242,242,242,.4); --faint: rgba(242,242,242,.12); }
html, body {
  overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font: 400 12px/1.4 Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: #000; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bg);
  padding: 10px 16px; z-index: 200; text-transform: uppercase;
  letter-spacing: .04em; }
.skip:focus { left: 0; }
.dimtext { color: var(--dim); font-size: 12px; max-width: 56em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

.label { text-transform: uppercase; letter-spacing: .04em; color: var(--dim); line-height: 1.35; }
.wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 120px; position: relative; }
.theme-btn { position: absolute; top: 49px; right: 24px; background: none;
  border: 0; cursor: pointer; font: inherit; padding: 0; }
.theme-btn:hover { color: var(--green); }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }

header.site { display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px; }
h1 { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
h1 span { color: var(--dim); }
.bio { max-width: 46em; margin: 20px 0 40px; font-size: 12px; color: var(--dim); }

/* the paragraph is the interface */
.nav-prose { margin: 18vh 0 22vh; }
.nav-prose p { font-size: 20px; line-height: 1.42; margin-bottom: 26px; }
.nav-prose a { color: var(--green); }
.nav-prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

.feature-object { display: block; margin: 0 0 14vh; }
.feature-object figure.spread { margin-top: 0; margin-bottom: 0; cursor: pointer; }
.feature-object figcaption { display: flex; justify-content: space-between; gap: 24px; }
.feature-object:hover .label { color: var(--green); }

/* domains */
.domain { margin: 0 0 96px; }
.domain h2.label { font-size: 12px; font-weight: 400; padding-bottom: 10px;
  border-bottom: 1px solid var(--ink); }
ul.list { list-style: none; }
.list li { display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--faint);
  font-size: 15px; }
.list li.hot { display: block; padding: 0; }
.list li.hot a { display: flex; justify-content: space-between;
  align-items: baseline; gap: 24px; padding: 9px 0; }
.list li.hot a:hover, .list li.hot a:hover .yr { color: var(--green); }
.list .yr { color: var(--dim); font-size: 12px; }
.list .dim { color: var(--dim); }
.note { color: var(--dim); margin-top: 10px; max-width: 42em; }

/* index table */
table.index { width: 100%; border-collapse: collapse; }
.index th { text-align: left; font-weight: 400; padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--ink); }
.index td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--faint);
  vertical-align: baseline; }
.index tr.rec { cursor: pointer; }
.index tr.rec:hover td { color: var(--green); }
.index .num { width: 64px; color: var(--dim); }
.index .yr { width: 56px; color: var(--dim); }
.index .ty { width: 110px; }
.index .st { width: 90px; text-align: right; }
.st-live { color: var(--green); }
.st-external, .st-archived { color: var(--dim); }

.filters { display: flex; gap: 16px; margin: 28px 0 16px; flex-wrap: wrap; }
.filters button { background: none; border: 0; color: var(--dim); cursor: pointer;
  font: inherit; text-transform: uppercase; letter-spacing: .12em; padding: 0; }
.filters button:hover, .filters button.on { color: var(--ink); }
.filters button.on::before { content: "■ "; color: var(--green); }

.recently { margin: 0 0 8px; min-height: 18px; }
.recently a { margin-right: 18px; }

/* record page */
.crumb { margin-bottom: 36px; }
.crumb a:hover { color: var(--green); }
h2.rec-title { font-size: 20px; font-weight: 400; line-height: 1.15;
  text-transform: uppercase; max-width: 30em; margin: 0 0 28px; }
table.meta { border-collapse: collapse; margin: 0 0 44px; }
.meta td { padding: 5px 28px 5px 0; vertical-align: baseline; }
.meta td:first-child { color: var(--dim); text-transform: uppercase;
  letter-spacing: .12em; width: 120px; }
.boot { display: inline-block; border: 1px solid var(--ink); padding: 10px 18px;
  text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 44px; }
.boot:hover { border-color: var(--green); }

.reading { max-width: 42em; margin: 0 auto; }
.reading p { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.reading .q { color: var(--dim); margin-top: 30px; }
.reading h3 { font-size: 12px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .12em; color: var(--dim); margin: 52px 0 22px; }
.speaker { display: block; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim); margin: 22px 0 4px; }

.lang-pill { position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%); display: flex; z-index: 90; padding: 4px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 10%, var(--bg)); }
.lang-pill button { border: 0; cursor: pointer; font: inherit;
  text-transform: uppercase; letter-spacing: .04em; color: var(--dim);
  background: none; padding: 8px 20px; border-radius: 4px; }
.lang-pill button.on { background: var(--bg); color: var(--ink); }
.lang-pill button:hover { color: var(--ink); }
[lang="ja"] p { line-height: 1.8; }

/* marginal page numbers: same font, same size as their block */
.pgref { float: left; clear: left; width: 64px; margin-left: -88px;
  text-align: right; color: var(--dim); text-transform: none;
  letter-spacing: 0; }
@media (max-width: 1100px) {
  .pgref { float: none; display: block; width: auto; margin: 0 0 2px;
    text-align: left; }
}

/* spreads as vitrine objects: full-bleed, one at a time, museum label */
figure.spread { margin: 96px 0; cursor: zoom-in;
  width: 100vw; margin-left: calc(50% - 50vw); padding: 0 24px; }
figure.spread img { width: 100%; max-width: 1400px; height: auto;
  aspect-ratio: 3240/2256; object-fit: contain; display: block;
  margin: 0 auto; background: var(--faint); }
figure.spread figcaption { max-width: 1400px; margin: 8px auto 0;
  display: flex; justify-content: space-between; gap: 24px; }
figure.spread figcaption .label:last-child { flex-shrink: 0; }
.note-inline { font-size: 12px; }

.footer { margin-top: 80px; display: flex; justify-content: space-between;
  color: var(--dim); }
.pn { display: flex; justify-content: space-between; margin-top: 64px;
  padding-top: 16px; border-top: 1px solid var(--faint); }

/* overlay viewer */
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 32px; cursor: zoom-out; }
#overlay.open { display: flex; }
#overlay img { max-width: 100%; max-height: 86vh; object-fit: contain; }
#overlay .cap { color: rgba(242,242,242,.5); margin-top: 12px;
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
  .index .ty, .index th.ty { display: none; }
  .wrap { padding: 32px 16px 90px; }
  .theme-btn { top: 33px; right: 16px; }
}

/* the article as a printable document */
@media print {
  .lang-pill, .theme-btn, .skip, #overlay, .footer, .crumb { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  figure.spread { width: 100%; margin-left: 0; padding: 0;
    break-inside: avoid; margin-top: 32px; margin-bottom: 32px; }
  .pgref { float: none; display: inline; margin: 0 8px 0 0; width: auto; }
  a { text-decoration: none; }
}
