
:root {
  /* paper, panel, ink, secondary ink, accent, accent two, rule */
  --p: #f0ece2;
  --p2: #e5dfd0;
  --i: #1b1a18;
  --i2: #5d5951;
  --a: #1b1a18;
  --b: #8b867a;
  --r: #cbc4b4;
  --base-d: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --base-b: "Lora", Georgia, serif;
  --base-l: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-d: var(--base-d);
  --f-b: var(--base-b);
  --f-l: var(--base-l);
  --bs: 1.12rem;
  --nz-warm: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --nz-cool: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .93 0 0 0 0 .9 0 0 0 0 .84 0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --nz-wash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.012 .6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --noise: var(--nz-warm);
  --deco: var(--noise);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p: #141412;
    --p2: #1d1c19;
    --i: #ece7db;
    --i2: #a9a397;
    --a: #ece7db;
    --b: #7f7a6f;
    --r: #3a3833;
    --noise: var(--nz-cool);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --p: #141412;
  --p2: #1d1c19;
  --i: #ece7db;
  --i2: #a9a397;
  --a: #ece7db;
  --b: #7f7a6f;
  --r: #3a3833;
  --noise: var(--nz-cool);
  color-scheme: dark;
} /* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--p);
  color: var(--i);
  font: 400 1.0625rem/1.7 var(--f-b);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.7s ease,
    color 0.7s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--p);
}
.deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--deco);
}
.site-head,
main,
.site-foot {
  position: relative;
  z-index: 1;
}
main {
  display: block;
  outline: none;
}
[id] {
  scroll-margin-top: 5.5rem;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-d);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0 0 1.1em;
}
ul,
ol,
dl {
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 3px;
}
::selection {
  background: var(--i);
  color: var(--p);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  text-decoration: none;
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--i);
  color: var(--p);
  border: 0;
  padding: 0.7rem 1rem;
  font: 500 0.75rem var(--base-l);
}
.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.6rem);
}
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4.5vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4.5vw, 56px), env(safe-area-inset-right, 0px));
}
.label {
  font: 500 0.72rem/1.5 var(--f-l);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--i2);
  margin: 0 0 0.9rem;
}
.ph {
  background: color-mix(in srgb, var(--b) 20%, transparent);
  box-shadow: 0 0 0 0.14em color-mix(in srgb, var(--b) 20%, transparent);
}
.by {
  font-style: italic;
  color: var(--i2);
}
.h-xl {
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.h-lg {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.01em;
}
.h-md {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.h-sm {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 36rem;
  color: var(--i2);
  margin: 1.5rem 0 2rem;
}
.prose-lg {
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: 40rem;
}
.prose-lg p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}
.btn {
  display: inline-block;
  font: 500 0.74rem/1 var(--f-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--i);
  color: var(--p);
  padding: 1.05rem 1.6rem;
  border: 1px solid var(--i);
  transition:
    background-color 0.25s,
    color 0.25s;
}
.btn:hover {
  background: transparent;
  color: var(--i);
}
.textlink {
  font: 500 0.74rem/1 var(--f-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--i);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.textlink:hover {
  border-bottom-color: var(--b);
}
.sec {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--r);
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
}
.page-head {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.closing {
  background: var(--i);
  color: var(--p);
  padding-block: clamp(4rem, 9vw, 8rem);
}
.closing .label {
  color: var(--b);
}
.closing blockquote {
  margin: 1.5rem 0 1.25rem;
  font: italic 400 clamp(1.7rem, 4.2vw, 3.4rem)/1.2 var(--f-d);
  max-width: 22em;
  text-wrap: balance;
}
.closing blockquote p {
  margin: 0;
}
.closing .cite {
  margin: 0;
}
.closing .guide,
.closing .keyreal .label {
  color: var(--b);
} /* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--p);
  border-bottom: 1px solid var(--r);
  transition: background-color 0.7s ease;
}
@supports (background: color-mix(in srgb, red, blue)) {
  .site-head {
    background: color-mix(in srgb, var(--p) 94%, transparent);
    backdrop-filter: blur(8px);
  }
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  max-width: none;
  padding-left: max(clamp(16px, 5.75vw, 108px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 5.75vw, 108px), env(safe-area-inset-right, 0px));
}
.brand {
  font: 400 1.4rem/1 var(--base-d);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--i);
}
.brand small {
  font: 400 0.6rem/1 var(--base-l);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--i2);
}
.brand-logo {
  display: block;
  width: clamp(7rem, 12vw, 10rem);
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  filter: brightness(0);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo {
    filter: brightness(0) invert(1);
  }
}
:root[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}
html[data-work]:root .brand-logo {
  filter: none;
}
.nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
}
.nav a {
  font: 500 0.7rem/1 var(--base-l);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--i);
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--b);
}
.nav a[aria-current="page"] {
  border-bottom-color: var(--i);
}
.menu-btn {
  display: none;
  font: 500 0.7rem/1 var(--base-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--i);
  color: var(--i);
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}
@media (max-width: 1180px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--p);
    border-bottom: 1px solid var(--r);
  }
  .nav.open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem;
    padding-left: max(clamp(16px, 4.5vw, 56px), env(safe-area-inset-left, 0px));
    padding-right: max(
      clamp(16px, 4.5vw, 56px),
      env(safe-area-inset-right, 0px)
    );
  }
  .nav a {
    font-size: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--r);
  }
  .nav li:last-child a {
    border-bottom: 0;
  }
} /* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--r);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.95rem;
}
.foot-in {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .foot-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  }
}
.foot-brand p {
  margin: 0 0 0.25rem;
  color: var(--i2);
}
.foot-name {
  font: 400 1.6rem/1.1 var(--base-d);
  color: var(--i) !important;
  margin-bottom: 0.6rem !important;
}
.foot-nav ul {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}
.foot-nav a {
  display: inline-block;
  padding: 0.2rem 0;
  text-decoration: none;
}
.foot-nav a:hover {
  text-decoration: underline;
}
.foot-line {
  font: italic 400 1.15rem/1.4 var(--base-d);
  max-width: 14em;
} /* ---------- page transition ---------- */
@keyframes rise {
  from {
    opacity: 0.35;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
main {
  animation: rise 0.5s ease both;
}
@view-transition {
  navigation: auto;
} /* ---------- home ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(5rem, 15vw, 13rem);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7.2fr) minmax(0, 3.2fr);
    align-items: end;
    gap: 5rem;
  }
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.hero-kicker::after {
  content: "";
  flex: 1;
  max-width: 10rem;
  height: 1px;
  background: var(--b);
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.hero-index {
  border-top: 2px solid var(--i);
  padding-top: 1rem;
}
.hero-index ol {
  list-style: none;
}
.hero-index a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--r);
  text-decoration: none;
  font: 400 1.1rem/1.3 var(--f-d);
  transition: padding-left 0.25s;
}
.hero-index a span {
  font: 500 0.7rem/2 var(--f-l);
  color: var(--i2);
  letter-spacing: 0.08em;
}
.hero-index a:hover {
  padding-left: 0.5rem;
}
.ghost {
  position: absolute;
  left: -1vw;
  bottom: -0.12em;
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font: 400 clamp(6rem, 22vw, 20rem)/0.8 var(--f-d);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--b);
  opacity: 0.55;
}
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--r);
}
.tally dt {
  font: 500 0.68rem/1.4 var(--f-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--i2);
}
.tally dd {
  margin: 0;
  font: 400 2.4rem/1 var(--f-d);
}
.feat-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 860px) {
  .feat-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .feat-1 {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }
  .feat-2 {
    grid-column: 8 / 13;
    margin-top: 3.5rem;
  }
  .feat-3 {
    grid-column: 8 / 13;
  }
}
.feat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--p);
  background-image: var(--noise);
  color: var(--i);
  border: 1px solid var(--r);
  font-family: var(--f-b);
}
.feat-art {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--r);
}
.feat-art img {
  object-fit: contain;
  background-color: var(--p2);
}
.feat-1 .feat-art {
  aspect-ratio: 4 / 4.2;
}
.feat-body {
  padding: 1.25rem 1.4rem 1.5rem;
}
.feat h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: 0.4rem;
}
.feat .more {
  font: 500 0.72rem/1 var(--f-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--b);
  padding-bottom: 0.3rem;
  display: inline-block;
}
.feat:hover .more {
  border-bottom-color: var(--i);
}
.contents {
  list-style: none;
  border-top: 2px solid var(--i);
}
.contents a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  gap: 0.35rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--r);
  text-decoration: none;
  grid-template-areas: "n t arr" ". d .";
  transition: padding-left 0.25s;
}
.contents a:hover {
  padding-left: 0.6rem;
}
.contents .num {
  grid-area: n;
  font: 500 0.75rem/2.2 var(--f-l);
  color: var(--i2);
}
.contents .jt {
  grid-area: t;
  font: 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.15 var(--f-d);
}
.contents .jd {
  grid-area: d;
  color: var(--i2);
  max-width: 34rem;
}
.contents .arr {
  grid-area: arr;
  font: 400 1.3rem var(--f-l);
  text-align: right;
}
@media (min-width: 860px) {
  .contents a {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) 2rem;
    grid-template-areas: "n t d arr";
    align-items: baseline;
  }
} /* ---------- about / profile ---------- */
.about-hero {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}
.ab-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .ab-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }
}
.photo-wrap {
  margin: 0;
}
.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--i);
  box-shadow: 12px 12px 0 var(--r);
  background: var(--p2);
}
.photo-ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}
.photo-wrap figcaption {
  margin: 1.6rem 0 0;
}
.meta-line {
  font: 500 0.8rem/1.5 var(--f-l);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--i2);
  margin: 1.2rem 0 2rem;
}
.two {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .two {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.plain {
  list-style: none;
}
.plain li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--r);
}
.steps {
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: s;
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--r);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 500 0.75rem/1.8 var(--f-l);
  color: var(--i2);
}
.steps p {
  margin: 0;
  max-width: 40rem;
}
@media (min-width: 800px) {
  .steps li {
    grid-template-columns: 4rem minmax(0, 4fr) minmax(0, 6fr);
  }
  .steps li:nth-child(2) {
    margin-left: clamp(0rem, 6vw, 5rem);
  }
  .steps li:nth-child(3) {
    margin-left: clamp(0rem, 12vw, 10rem);
  }
}
.sheet > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--r);
}
.sheet > div:last-child {
  border-bottom: 1px solid var(--r);
}
.sheet dt {
  font: 500 0.72rem/1.8 var(--f-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--i2);
}
.sheet dd {
  margin: 0;
  font: 400 1.35rem/1.3 var(--f-d);
}
@media (min-width: 700px) {
  .sheet > div {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: baseline;
  }
}
.record {
  list-style: none;
  border-top: 2px solid var(--i);
}
.record li {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--r);
  grid-template-columns: 2.5rem minmax(0, 1fr);
}
.record .rn {
  font: 500 0.75rem/2 var(--f-l);
  color: var(--i2);
  grid-row: span 4;
}
.record .rt {
  font: 400 1.4rem/1.2 var(--f-d);
  text-decoration: none;
}
.record .rt:hover {
  text-decoration: underline;
}
.record .ra,
.record .rp,
.record .rl {
  color: var(--i2);
  font-size: 0.95rem;
}
@media (min-width: 1000px) {
  .record li {
    grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 3fr) minmax(
        0,
        3fr
      ) minmax(0, 3fr);
    align-items: baseline;
  }
  .record .rn {
    grid-row: auto;
  }
} /* ---------- archive ---------- */
.archive {
  margin-top: clamp(1.5rem, 3vw, 3rem);
}
.work {
  background-color: var(--p);
  background-image: var(--noise);
  color: var(--i);
  font-family: var(--f-b);
  border-top: 1px solid var(--r);
}
.work-in {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.work-art {
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid var(--b);
}
.work-num {
  font: 400 clamp(3rem, 7vw, 6rem)/1 var(--f-d);
  color: var(--b);
  margin: 0 0 0.5rem;
}
.work .label {
  font-family: var(--f-l);
  color: var(--i2);
}
.work h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 0.6rem;
}
.work-intro {
  margin: 1rem 0 1.2rem;
}
.lens {
  margin-bottom: 1.6rem;
}
.lens .label {
  display: block;
  margin-bottom: 0.2rem;
}
.work .btn {
  background: var(--i);
  color: var(--p);
  border-color: var(--i);
  font-family: var(--f-l);
}
.work .btn:hover {
  background: transparent;
  color: var(--i);
}
@media (min-width: 900px) {
  .work-in {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 2rem;
  }
  .work-art {
    grid-column: 1 / 8;
  }
  .work-text {
    grid-column: 9 / 13;
  }
  .work:nth-child(even) .work-art {
    grid-column: 6 / 13;
    grid-row: 1;
  }
  .work:nth-child(even) .work-text {
    grid-column: 1 / 5;
    grid-row: 1;
  }
} /* ---------- reader ---------- */
.reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--r);
}
.prog {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.prog-num {
  font: 500 0.9rem/1 var(--f-l);
  letter-spacing: 0.1em;
}
.prog-seg {
  display: flex;
  gap: 4px;
  list-style: none;
}
.prog-seg a {
  position: relative;
  display: block;
  width: clamp(14px, 3vw, 26px);
  height: 6px;
  background: var(--r);
  transition: background-color 0.4s;
}
.prog-seg a::after {
  content: "";
  position: absolute;
  inset: -12px -2px;
}
.prog-seg a:hover {
  background: var(--b);
}
.prog-seg a[aria-current] {
  background: var(--a);
}
.pn {
  display: flex;
  gap: 0.6rem;
}
.pbtn,
.rn-btn {
  font-family: var(--f-l);
  color: var(--i);
  background: transparent;
  border: 1px solid var(--i);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.pbtn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
}
.pbtn:hover:not([aria-disabled]),
.rn-btn:hover:not([aria-disabled]) {
  background: var(--i);
  color: var(--p);
}
.pbtn[aria-disabled],
.rn-btn[aria-disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--r);
}
.front {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  align-items: center;
}
@media (min-width: 900px) {
  .front {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}
.rnum {
  font: 400 clamp(4rem, 10vw, 8rem)/0.9 var(--f-d);
  color: var(--b);
  margin: 0 0 1rem;
  opacity: 0.8;
}
.reader .label {
  font-family: var(--f-l);
}
.reader-title {
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.byline {
  font: italic 400 1.2rem/1.4 var(--f-b);
  color: var(--i2);
}
.front-art {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid var(--b);
  transition: border-color 0.6s;
}
.front-art.cover-art,
.work-art.cover-art {
  aspect-ratio: 1 / 1;
  max-height: 32rem;
}
.art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.front-art img.art,
.work-art img.art {
  object-fit: contain;
  background-color: var(--p2);
}
.dv-wrap {
  padding-block: 1.5rem;
}
.dv {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
}
.read-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .read-grid {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 7fr);
    gap: 5rem;
  }
}
.margin dl > div {
  padding: 1rem 0;
  border-top: 1px solid var(--r);
}
.margin dl > div:first-child {
  border-top: 2px solid var(--i);
}
.margin dt {
  font: 500 0.68rem/1.5 var(--f-l);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--i2);
  margin-bottom: 0.3rem;
}
.margin dd {
  margin: 0;
  font-family: var(--f-d);
  font-size: 1.15rem;
  line-height: 1.35;
}
.margin .ctx {
  font: 400 0.95rem/1.6 var(--f-b);
  margin-top: 0.5rem;
  color: var(--i2);
}
@media (min-width: 900px) {
  .margin {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}
.prose {
  max-width: 41rem;
  font-size: var(--bs);
  line-height: 1.85;
}
.prose p {
  margin-bottom: 1.4em;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin: 2.4em 0 0.8em;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.prose section:first-child h2 {
  margin-top: 0;
}
.prose h2::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  background: var(--a);
  border-radius: var(--orn-r, 0);
  transform: rotate(var(--orn-rot, 45deg));
  translate: 0 -0.1em;
}
.prose .lead::first-letter {
  font-family: var(--f-d);
  float: left;
  font-size: 4.4em;
  line-height: 0.8;
  padding: 0.06em 0.1em 0 0;
  color: var(--a);
}
.refs {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--r);
}
.refs h2 {
  font-size: 1.2rem;
}
.refs ul {
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.6;
}
.refs li {
  padding: 0.5rem 0;
}
.rnav {
  display: grid;
  gap: 1rem;
  padding-block: 1rem clamp(3rem, 6vw, 5rem);
  align-items: stretch;
}
@media (min-width: 760px) {
  .rnav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }
}
.rn-btn {
  display: block;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font: inherit;
  font-family: var(--f-b);
}
.rn-btn .label {
  display: block;
  margin-bottom: 0.4rem;
  color: inherit;
  opacity: 0.75;
}
.rn-btn strong {
  display: block;
  font: 400 1.4rem/1.2 var(--f-d);
}
.rn-btn.next {
  text-align: right;
}
.back-mid {
  justify-self: center;
} /* ---------- favorite ---------- */
.fav-head {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.fav-title {
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.fav-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--r);
}
.fav-sub {
  font: italic 400 clamp(1.2rem, 2.2vw, 1.7rem)/1.35 var(--f-d);
  max-width: 28em;
  margin: 0;
}
.fav-art {
  width: min(100%, 128vh);
  max-width: 72rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-block: 1px solid var(--i);
}
.fav-art img.art {
  object-fit: contain;
  object-position: center;
  background-color: var(--p2);
}
.fav-art.tv-1,
.fav-art.tv-2,
.fav-art.tv-3,
.fav-art.tv-4,
.fav-art.tv-5,
.fav-art.tv-6,
.fav-art.tv-7 {
  border-color: var(--b);
}
.cols {
  max-width: none;
}
@media (min-width: 1100px) {
  .cols {
    columns: 2;
    column-gap: 3rem;
  }
}
.trio {
  display: grid;
  gap: 2.5rem;
}
.trio > div {
  border-top: 1px solid var(--r);
  padding-top: 1.5rem;
}
.trio h3 {
  margin-bottom: 1rem;
}
@media (min-width: 860px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 2rem;
  }
}
.taught {
  background: var(--p2);
} /* ---------- summary ---------- */
.guide {
  font-style: italic;
  color: var(--i2);
  max-width: 30rem;
  margin: 1rem 0 1.6rem;
}
.sum {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--r);
}
.sum .wrap {
  position: relative;
  display: grid;
  gap: 2rem;
}
.sum-category {
  color: var(--sum-text);
  border-color: var(--sum-rule);
}
.sum-category.sum-dark {
  --sum-text: #f0ece2;
  --sum-muted: #cbc4b4;
  --sum-rule: #514d45;
  background-color: #1b1a18;
}
.sum-category.sum-light {
  --sum-text: #1b1a18;
  --sum-muted: #5d5951;
  --sum-rule: #cbc4b4;
  background-color: #fff;
}
.sum-category .label,
.sum-category .guide {
  color: var(--sum-muted);
}
.sum-category .wrap {
  display: block;
}
.sum-category .prose-lg {
  max-width: none;
}
@media (min-width: 900px) {
  .sum-category .prose-lg {
    columns: 2;
    column-gap: 3rem;
  }
}
.pull {
  margin: 0;
  padding: 1.6rem 0 0 0;
  border-top: 2px solid var(--i);
  font: italic 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.25 var(--f-d);
}
.pull p {
  margin: 0.4rem 0 0;
}
.pull .label {
  font-style: normal;
} /* ---------- reflection ---------- */
.refl-head {
  padding-block: clamp(3rem, 8vw, 6.5rem) 1rem;
  max-width: 56rem;
  margin-inline: auto;
}
.refl-body {
  max-width: 56rem;
  padding-bottom: clamp(4rem, 9vw, 8rem);
}
.rq {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--r);
}
.rq h2 {
  font: italic 400 clamp(1.5rem, 3vw, 2.3rem)/1.25 var(--f-d);
  margin-bottom: 1.8rem;
  max-width: 24em;
}
.rq-answer p {
  max-width: none;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.95;
  text-align: justify;
}
@media (min-width: 900px) {
  .rq-answer {
    columns: 2;
    column-gap: 3rem;
  }
}
.rq .lead::first-letter {
  font-family: var(--f-d);
  float: left;
  font-size: 4em;
  line-height: 0.8;
  padding: 0.06em 0.1em 0 0;
}
.pullq {
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--i);
  font: italic 400 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--f-d);
  max-width: 24em;
}
.pullq p {
  margin: 0;
  font: inherit !important;
}
.rclose {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 2px solid var(--i);
}
.closing-line {
  font: italic 400 clamp(1.7rem, 3.6vw, 2.8rem)/1.25 var(--f-d);
  max-width: 22em;
} /* ---------- svg helpers ---------- */
.f-p {
  fill: var(--p);
}
.f-q {
  fill: var(--p2);
}
.f-i {
  fill: var(--i);
}
.f-j {
  fill: var(--i2);
}
.f-a {
  fill: var(--a);
}
.f-b {
  fill: var(--b);
}
.f-r {
  fill: var(--r);
}
.s-p {
  stroke: var(--p);
}
.s-q {
  stroke: var(--p2);
}
.s-i {
  stroke: var(--i);
}
.s-j {
  stroke: var(--i2);
}
.s-a {
  stroke: var(--a);
}
.s-b {
  stroke: var(--b);
}
.s-r {
  stroke: var(--r);
}
.nf {
  fill: none;
} /* ==========================================================================   THE SEVEN THEMES   Each block sets palette, type, texture and details. The same block styles   the archive rows (.tv-n) so every entry previews its own world.   p paper | p2 panel | i ink | i2 second ink | a accent | b accent two | r rule   ========================================================================== */ /* 01 Voice Out of the Whirlwind: aged parchment, storm, gold */
html[data-work="1"]:root,
.tv-1 {
  --p: #efe3c8;
  --p2: #e2d0a8;
  --i: #2a2119;
  --i2: #5a4630;
  --a: #8f6b25;
  --b: #7a5a33;
  --r: #c8b48a;
  --f-d: "Cormorant Garamond", Georgia, serif;
  --f-b: "EB Garamond", Georgia, serif;
  --f-l: "Cormorant SC", Georgia, serif;
  --bs: 1.3rem;
  --noise: var(--nz-warm);
  color-scheme: light;
  --deco:
    radial-gradient(
      120% 70% at 50% -10%,
      rgba(214, 188, 130, 0.4),
      transparent 60%
    ),
    radial-gradient(
      80% 50% at 100% 100%,
      rgba(110, 76, 36, 0.22),
      transparent 60%
    ),
    var(--noise);
  --orn-r: 50%;
  --orn-rot: 0deg;
}
html[data-work="1"] .reader-title {
  font-weight: 600;
  font-style: italic;
}
html[data-work="1"] .front-art {
  box-shadow:
    0 0 0 7px var(--p),
    0 0 0 8px var(--b);
}
html[data-work="1"] .prose h2::before {
  background: transparent;
  border: 1.5px solid var(--a);
} /* 02 The Panchatantra: miniature painting, terracotta and leaf green */
html[data-work="2"]:root,
.tv-2 {
  --p: #f0e4cf;
  --p2: #e6d3b1;
  --i: #3a2a1e;
  --i2: #6a4a33;
  --a: #b0522c;
  --b: #5c7551;
  --r: #c3a67c;
  --f-d: "Yatra One", Georgia, serif;
  --f-b: "Cardo", Georgia, serif;
  --f-l: "Spectral SC", Georgia, serif;
  --bs: 1.22rem;
  --noise: var(--nz-warm);
  color-scheme: light;
  --deco:
    radial-gradient(rgba(90, 60, 30, 0.14) 1px, transparent 1.5px) 0 0 / 22px
      22px,
    radial-gradient(130% 80% at 50% 0, rgba(176, 82, 44, 0.1), transparent 60%),
    var(--noise);
  --orn-r: 0 100% 0 100%;
  --orn-rot: 0deg;
}
html[data-work="2"] .reader-title {
  letter-spacing: 0;
  line-height: 1.1;
}
html[data-work="2"] .front-art {
  border: 4px solid var(--a);
  outline: 1px solid var(--b);
  outline-offset: 5px;
}
html[data-work="2"] .prose h2::before {
  background: var(--b);
} /* 03 The Mahabharata: saffron sun, antique gold, dark brown */
html[data-work="3"]:root,
.tv-3 {
  --p: #f3e3bf;
  --p2: #ebd3a1;
  --i: #2e1b10;
  --i2: #5e3a1b;
  --a: #d2701a;
  --b: #b58a2d;
  --r: #c79c52;
  --f-d: "Rozha One", Georgia, serif;
  --f-b: "Libre Baskerville", Georgia, serif;
  --f-l: "Cormorant SC", Georgia, serif;
  --bs: 1.1rem;
  --noise: var(--nz-warm);
  color-scheme: light;
  --deco:
    repeating-conic-gradient(
      from 0deg at 50% 0,
      rgba(181, 138, 45, 0.12) 0 3deg,
      transparent 3deg 9deg
    ),
    radial-gradient(90% 50% at 50% 0, rgba(210, 112, 26, 0.2), transparent 70%),
    var(--noise);
  --orn-r: 0;
  --orn-rot: 45deg;
}
html[data-work="3"] .reader-title {
  letter-spacing: 0;
  line-height: 1.08;
}
html[data-work="3"] .front-art {
  border: 2px solid var(--b);
  box-shadow:
    inset 0 0 0 6px var(--p),
    inset 0 0 0 8px var(--b);
}
html[data-work="3"] .prose {
  line-height: 1.9;
} /* 04 The Iliad: terracotta, black, sandstone, bronze */
html[data-work="4"]:root,
.tv-4 {
  --p: #ebddc5;
  --p2: #dec7a5;
  --i: #1a1512;
  --i2: #4d3d31;
  --a: #b1502a;
  --b: #9c7338;
  --r: #b99d76;
  --f-d: "Cinzel", Georgia, serif;
  --f-b: "Crimson Pro", Georgia, serif;
  --f-l: "Cinzel", Georgia, serif;
  --bs: 1.3rem;
  --noise: var(--nz-warm);
  color-scheme: light;
  --deco:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='36'><path d='M0 30H8V6H40V30H48M16 24H32V12H24' fill='none' stroke='%23B1502A' stroke-opacity='.4' stroke-width='3'/></svg>")
      0 0 / 48px 36px repeat-x,
    linear-gradient(rgba(26, 21, 18, 0), rgba(26, 21, 18, 0)), var(--noise);
  --orn-r: 0;
  --orn-rot: 0deg;
}
html[data-work="4"] .reader-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.6vw, 4rem);
}
html[data-work="4"] .front-art {
  border: 6px solid var(--i);
  outline: 1px solid var(--a);
  outline-offset: 4px;
}
html[data-work="4"] .label,
html[data-work="4"] .margin dt {
  letter-spacing: 0.18em;
}
html[data-work="4"] .prose h2 {
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
} /* 05 The Odyssey: deep navy, sea blue, ivory, bronze */
html[data-work="5"]:root,
.tv-5 {
  --p: #0e2236;
  --p2: #153250;
  --i: #eee7d5;
  --i2: #b7c4d0;
  --a: #c8a468;
  --b: #4e8fb1;
  --r: #2c4a68;
  --f-d: "Playfair Display", Georgia, serif;
  --f-b: "Spectral", Georgia, serif;
  --f-l: "IBM Plex Mono", ui-monospace, monospace;
  --bs: 1.2rem;
  --noise: var(--nz-cool);
  color-scheme: dark;
  --deco:
    linear-gradient(rgba(238, 231, 213, 0.05) 1px, transparent 1px) 0 0 / 64px
      64px,
    linear-gradient(90deg, rgba(238, 231, 213, 0.05) 1px, transparent 1px) 0 0 /
      64px 64px,
    radial-gradient(
      70% 50% at 85% 0,
      rgba(78, 143, 177, 0.28),
      transparent 70%
    ),
    var(--noise);
  --orn-r: 50%;
  --orn-rot: 0deg;
}
html[data-work="5"] .reader-title {
  font-style: italic;
  letter-spacing: -0.01em;
}
html[data-work="5"] .front-art {
  border: 1px solid var(--a);
  box-shadow:
    0 0 0 8px var(--p),
    0 0 0 9px var(--r);
}
html[data-work="5"] .btn,
html[data-work="5"] .work .btn {
  background: var(--a);
  border-color: var(--a);
  color: #0e2236;
}
html[data-work="5"] .btn:hover,
html[data-work="5"] .work .btn:hover {
  background: transparent;
  color: var(--a);
}
html[data-work="5"] ::selection {
  background: var(--a);
  color: var(--p);
}
.tv-5 .btn {
  background: var(--a);
  border-color: var(--a);
  color: #0e2236;
}
.tv-5 .btn:hover {
  background: transparent;
  color: var(--a);
} /* 06 The Song of Roland: burgundy, gold leaf, vellum */
html[data-work="6"]:root,
.tv-6 {
  --p: #f0e2c6;
  --p2: #e3cfa6;
  --i: #2a1a12;
  --i2: #593a2c;
  --a: #6b1e2a;
  --b: #b48a2b;
  --r: #bc9c5c;
  --f-d: "UnifrakturMaguntia", Georgia, serif;
  --f-b: "Alegreya", Georgia, serif;
  --f-l: "Alegreya SC", Georgia, serif;
  --bs: 1.28rem;
  --noise: var(--nz-warm);
  color-scheme: light;
  --deco:
    linear-gradient(
      90deg,
      rgba(107, 30, 42, 0.14),
      transparent 7%,
      transparent 93%,
      rgba(107, 30, 42, 0.14)
    ),
    radial-gradient(
      100% 60% at 50% 0,
      rgba(180, 138, 43, 0.18),
      transparent 60%
    ),
    var(--noise);
  --orn-r: 0;
  --orn-rot: 45deg;
}
html[data-work="6"] .reader-title {
  letter-spacing: 0;
  line-height: 1.08;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
}
html[data-work="6"] .front-art {
  border: 5px double var(--b);
  outline: 2px solid var(--a);
  outline-offset: 4px;
}
html[data-work="6"] .prose .lead::first-letter {
  color: var(--a);
  text-shadow: 2px 2px 0 var(--b);
}
html[data-work="6"] .prose h2::before {
  background: var(--b);
  border: 1.5px solid var(--a);
} /* 07 The Tale of Genji: washi, muted rose, dusty plum, soft gold */
html[data-work="7"]:root,
.tv-7 {
  --p: #f3eadc;
  --p2: #eadcc8;
  --i: #1e191b;
  --i2: #6a4d63;
  --a: #a8647c;
  --b: #c8a767;
  --r: #d6c5b0;
  --f-d: "Shippori Mincho", Georgia, serif;
  --f-b: "Zen Old Mincho", Georgia, serif;
  --f-l: "Zen Old Mincho", Georgia, serif;
  --bs: 1.18rem;
  --noise: var(--nz-wash);
  color-scheme: light;
  --deco:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='24'><g fill='none' stroke='%23A8647C' stroke-opacity='.13' stroke-width='1'><circle cx='0' cy='24' r='22'/><circle cx='0' cy='24' r='15'/><circle cx='0' cy='24' r='8'/><circle cx='48' cy='24' r='22'/><circle cx='48' cy='24' r='15'/><circle cx='48' cy='24' r='8'/><circle cx='24' cy='12' r='22'/><circle cx='24' cy='12' r='15'/><circle cx='24' cy='12' r='8'/></g></svg>")
      0 0 / 48px 24px,
    linear-gradient(180deg, rgba(200, 167, 103, 0.12), transparent 40%),
    var(--noise);
  --orn-r: 50%;
  --orn-rot: 0deg;
}
html[data-work="7"] .reader-title {
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
html[data-work="7"] .prose {
  line-height: 2;
  letter-spacing: 0.01em;
}
html[data-work="7"] .front-art {
  border: 0;
  border-block: 9px solid var(--i);
  position: relative;
  box-shadow: 0 0 0 1px var(--b);
}
html[data-work="7"] .prose h2::before {
  width: 1.6em;
  height: 2px;
  border-radius: 2px;
  background: var(--b);
  transform: none;
  translate: 0 -0.3em;
}
html[data-work="7"] .prose .lead::first-letter {
  color: var(--a);
}
html[data-work="7"] .reader-bar {
  border-bottom-color: var(--b);
} /* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
