:root {
  color-scheme: dark;
  --surface: #142026;
  --deep: #10191e;
  --text: #f4e6cf;
  --muted: #d1c3ad;
  --accent: #efad80;
  --rule: #ffffff2b;
  --button: #af532d;
  --button-text: #fff3dd;
  --display: "Baskervville", Georgia, serif;
  --body: Georgia, serif;
  --max: 75rem;
  --gutter: clamp(1.1rem, 4.5vw, 4rem);
  --section: clamp(2.5rem, 6vw, 6rem);
  --title: clamp(3rem, 7.7vw, 7rem);
  --heading: clamp(2rem, 4.4vw, 4.3rem);
  --ease: cubic-bezier(.21,.65,.33,1);
}
[data-theme="paper"] {
  color-scheme: light;
  --surface: #f3e8d5;
  --deep: #ebddc5;
  --text: #192b39;
  --muted: #4f5253;
  --accent: #953b27;
  --rule: #35445044;
  --button: #213746;
  --button-text: #fbefd9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 17.5rem; background: var(--surface); color: var(--text); font: 1.06rem/1.6 var(--body); }
a { color: inherit; text-underline-offset: .24em; }
img { max-width: 100%; display: block; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: .99; letter-spacing: -.044em; text-wrap: balance; }
h1 { font-size: var(--title); }
h2 { font-size: var(--heading); }
h3 { font-size: clamp(1.65rem, 3.5vw, 3.2rem); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-150%); padding: .6rem 1rem; background: var(--surface); z-index: 4; }
.skip:focus { transform: none; }
.mast { position: relative; z-index: 1; background: var(--deep); border-bottom: 1px solid var(--rule); }
.mast-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 4.5rem; }
.wordmark { font-family: var(--display); letter-spacing: -.065em; font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 700; line-height: 1; text-decoration: none; }
[data-theme="paper"] .mast { background: var(--surface); }
[data-theme="paper"] .wordmark { color: var(--accent); }
.mast nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(.75rem, 3.4vw, 2.5rem); }
.mast nav a { text-decoration: none; padding: .5rem 0; font-size: clamp(.91rem, 1.5vw, 1.12rem); }
.mast nav a:hover, .mast nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(34rem, 69svh, 52rem); background: var(--deep); border-bottom: 1px solid var(--accent); }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 51%; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg,#111a20f5 2%,#111a20da 21%,#111a2066 53%,transparent 78%), linear-gradient(0deg,#111a2066,transparent 28%); }
.hero-inner { padding-block: var(--section); }
.overline { display: inline-block; color: var(--accent); font-size: .81rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.hero .overline::after { content: ""; display: block; width: 3.8rem; height: 1px; margin: 1.05rem 0 1.3rem; background: var(--accent); }
.hero-copy { max-width: 25rem; margin-top: 1.3rem; color: var(--muted); font-size: clamp(1.05rem, 2.15vw, 1.28rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.65rem; padding: .65rem 1.15rem; min-height: 3rem; border: 1px solid var(--accent); background: var(--button); color: var(--button-text); font-size: 1.15rem; text-decoration: none; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.button:hover { background: var(--accent); color: var(--deep); }
.status { color: var(--muted); font-size: .88rem; margin-top: .75rem; }
.feature { padding-block: var(--section); display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(1.25rem, 4vw, 4.5rem); }
.feature h2, .study h3 { margin-top: .65rem; }
.feature p { max-width: 32rem; color: var(--muted); margin-top: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 700; }
.feature .text-link { margin-top: 1.3rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.portraits img { width: 100%; max-height: 28rem; object-fit: contain; mix-blend-mode: normal; border: 1px solid var(--rule); background: var(--deep); }
figcaption { color: var(--muted); margin-top: .4rem; font-size: .87rem; font-style: italic; }
.portraits figcaption { text-align: center; }
.update-strip { border-block: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem 1.5rem; padding-block: 1.35rem; }
.update-strip h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); }
.update-strip p { color: var(--muted); }
.update-strip .text-link { margin-left: auto; }
.coast-end { position: relative; display: grid; align-items: end; overflow: hidden; min-height: clamp(14rem, 32vw, 25rem); }
.coast-end img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .75; }
.coast-end p { position: relative; justify-self: end; margin: 0 var(--gutter) 1.7rem; background: var(--deep); padding: .55rem .85rem; }
.foot { border-top: 1px solid var(--rule); background: var(--deep); }
.foot .wordmark { font-size: 1.45rem; }
.foot-inner { min-height: 4rem; font-size: .87rem; }
.journal-lead { display: grid; grid-template-columns: .85fr 1.2fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: var(--section); }
.journal-lead h1 { font-size: clamp(3.2rem, 6.1vw, 6rem); margin-top: .65rem; }
.journal-lead p:not(.overline) { color: var(--muted); margin-top: 1rem; max-width: 22rem; }
.folio { border: 1px solid var(--accent); padding: .45rem; background: var(--deep); }
.folio img { width: 100%; height: auto; }
.folio figcaption { padding: .1rem .35rem; }
.journal-index { border-top: 2px solid var(--accent); padding-bottom: var(--section); }
.index-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.index-head h2 { color: var(--accent); }
.topics { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .94rem; }
.topics a { display: inline-flex; align-items: center; min-height: 2.6rem; text-decoration: none; }
.topics a:hover, .topics [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.study { grid-template-columns: 1.15fr .85fr; padding-block: 1.6rem; }
.journal-band { --text: #f4e6cf; --accent: #efad80; --rule: #ffffff2b; background: #192b39; color: var(--text); }
.document { max-width: 56rem; min-height: 53svh; padding-block: var(--section); }
.document > h1 { margin-bottom: 1.4rem; }
.document > p, .article-body p { margin-bottom: 1.15rem; max-width: 42rem; }
.lede { color: var(--muted); font-size: clamp(1.23rem, 2.5vw, 1.55rem); }
.empty { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.65rem; }
.entry-list { padding: 0; margin: 0; list-style: none; }
.entry-row { display: grid; grid-template-columns: .29fr 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }
.entry-meta { color: var(--accent); font-size: .9rem; }
.document > .entry-meta { margin: 1.25rem 0 .65rem; }
.entry-row h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.entry-row h3 a { text-decoration: none; }
.entry-row h3 a:hover { text-decoration: underline; }
.entry-row p { color: var(--muted); margin-top: .55rem; }
.document > .entry-list { margin-bottom: 1.3rem; }
.article-images { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.article-images img, .press-image img { width: 100%; height: auto; border: 1px solid var(--rule); }
.press-image { margin-block: 1.4rem; }
@media (max-width: 680px) {
  .mast-inner { align-items: flex-start; flex-direction: column; gap: .3rem; padding-block: .8rem .35rem; }
  .mast nav { column-gap: 1.3rem; }
  .mast nav a { min-height: 2.5rem; }
  .hero { align-items: end; min-height: clamp(31rem, 76svh, 39rem); }
  .hero-image { object-position: 64% center; }
  .hero::after { background: linear-gradient(0deg,#111a20 2%,#111a20e9 26%,#111a2077 66%,transparent); }
  .feature, .journal-lead { grid-template-columns: 1fr; }
  .study > div:last-child { grid-row: 1; }
  .update-strip .text-link { margin-left: 0; }
  .entry-row { grid-template-columns: 1fr; gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
