/* New Media Art — online edition */
:root {
  --bg: #fbfaf7;
  --ink: #1b1b1b;
  --muted: #6b6b66;
  --rule: #dcd9d0;
  --accent: #0a5c36;
  --accent-ink: #ffffff;
  --measure: 40rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --ink: #e8e6df; --muted: #a09e95; --rule: #2d2c28; --accent: #7fd1a3; --accent-ink: #0f1a14;
  }
}
:root[data-theme="dark"] { --bg: #141412; --ink: #e8e6df; --muted: #a09e95; --rule: #2d2c28; --accent: #7fd1a3; --accent-ink: #0f1a14; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.6;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

header.site, footer.site, main { padding-left: 16px; padding-right: 16px; }
header.site {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  max-width: 64rem; margin: 0 auto; padding-top: 1.25rem; padding-bottom: 1.25rem;
  font-family: var(--sans); font-size: 0.9rem;
}
header.site .brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
header.site nav a:hover { color: var(--ink); }

main { max-width: var(--measure); margin: 0 auto; padding-bottom: 4rem; }
footer.site { max-width: 64rem; margin: 0 auto; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--sans); font-size: 0.85rem; }

.kicker { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 0.4rem; }
h1 { font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h2 { font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin: 3rem 0 1rem; }
h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin: 3rem 0 0.75rem; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; margin: 2.25rem 0 0.5rem; }
h3 + h4 { margin-top: 1rem; }
.text p { margin: 0 0 1.2em; }
.text p + p { text-indent: 0; }

/* Cover / index */
.cover { padding-top: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.cover h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 34rem; }
.lede.small { font-size: 1rem; color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--sans); font-size: 0.95rem; font-weight: 600; padding: 0.7em 1.3em; border-radius: 999px; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.contents h2 { margin-top: 2.5rem; }
ol.sections { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; font-size: 1.05rem; }
ol.sections li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
ol.sections a { text-decoration: none; color: var(--ink); }
ol.sections a:hover { color: var(--accent); }
ol.profiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.5rem 1.25rem; }
ol.profiles a { display: block; text-decoration: none; color: var(--ink); font-family: var(--sans); }
ol.profiles img, ol.profiles .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--rule); border-radius: 4px; display: block; }
ol.profiles .num { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }
ol.profiles .name { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; margin-top: 0.1rem; }
ol.profiles .work { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.3; }
ol.profiles a:hover .name { color: var(--accent); }

/* Introduction */
nav.toc { font-family: var(--sans); font-size: 0.9rem; margin: 0 0 2.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 6px; }
nav.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
nav.toc li { padding: 0.15rem 0; break-inside: avoid; }
nav.toc a { text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }
figure { margin: 2rem 0; }
figure img { margin: 0 auto; max-height: 70vh; width: auto; }
figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.4; text-align: center; }
.intro figure { text-align: center; }

/* Profiles */
.profile figure.hero { margin: 1.5rem 0 1.75rem; }
.profile figure.hero img { image-rendering: auto; }
.profile figure.hero.nophoto { padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.profile figure.hero.nophoto figcaption { text-align: left; font-size: 1rem; color: var(--ink); margin: 0; }
dl.meta { font-family: var(--sans); font-size: 0.85rem; margin: 0 0 1.75rem; padding: 0.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; }
dl.meta dt { color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; padding-top: 0.15rem; }
dl.meta dd { margin: 0; }
blockquote.epigraph { margin: 0 0 2rem; padding: 0 0 0 1.25rem; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink); }
blockquote.epigraph em { font-style: normal; }

/* Pager */
nav.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); }
nav.pager a { text-decoration: none; max-width: 48%; color: var(--ink); line-height: 1.3; }
nav.pager a span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
nav.pager a.next { text-align: right; margin-left: auto; }
nav.pager a:hover { color: var(--accent); }

@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  ol.sections, nav.toc ol { columns: 1; }
  header.site { flex-direction: column; gap: 0.4rem; }
  header.site nav a { margin-left: 0; margin-right: 1.25rem; }
}
@media print {
  header.site nav, nav.pager, .button { display: none; }
  body { background: #fff; color: #000; }
}
