:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #203b31;
  --forest: #244f3d;
  --body: #495e53;
  --rule: #d4dbcf;
  --mist: #edf0e6;
  --cream: #f9f3da;
  --rust: #a84b31;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.62;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--forest); text-underline-offset: .25em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
.shell { width: min(100% - 3rem, 67.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-header { border-bottom: 1px solid var(--rule); }
.header-inner,
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: 4.75rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}
.stamp {
  position: relative;
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  background: var(--forest);
  border-radius: .27rem;
}
.stamp::before,
.stamp::after {
  content: "";
  position: absolute;
  width: .57rem;
  height: .57rem;
  border: 1px solid var(--cream);
  border-radius: .08rem;
}
.stamp::before { top: .28rem; left: .28rem; }
.stamp::after { bottom: .25rem; right: .25rem; }

nav { display: flex; gap: clamp(.85rem, 3vw, 1.8rem); }
nav a {
  padding-block: .6rem;
  color: var(--body);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

h1, h2 { color: var(--ink); line-height: 1.05; }
h1,
.trial-note h2,
.notice-section h2,
.publication-note h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(3.55rem, 8vw, 5rem); }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding-block: clamp(3.6rem, 9vw, 7rem);
}
.lead {
  max-width: 34rem;
  margin: 1.45rem 0 0;
  color: var(--body);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}
.workflow {
  padding: clamp(1.55rem, 4vw, 2.5rem);
  border-radius: .75rem;
  background: var(--forest);
  box-shadow: .5rem .5rem 0 var(--rule);
  color: var(--paper);
}
.workflow h2 {
  margin: 0 0 1rem;
  color: var(--cream);
  font-size: 1.13rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
dl, dd { margin: 0; }
.workflow dl > div {
  padding-block: .85rem;
  border-top: 1px solid #739687;
}
.workflow dl > div:last-child { padding-bottom: 0; }
.workflow dt { font-size: .87rem; font-weight: 700; }
.workflow dd { margin-top: .15rem; color: #e4eade; font-size: .94rem; }

.trial-note {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 5vw, 3.5rem);
  padding: clamp(1.55rem, 4.8vw, 3rem);
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--mist);
}
.trial-note h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.trial-note p { margin: 0 0 .8rem; color: var(--body); }
.text-link { font-size: .94rem; font-weight: 650; }

.reading { max-width: 46rem; }
.notice-intro { padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
.notice-intro h1 { font-size: clamp(3.1rem, 7vw, 5rem); }
.notice-section { padding-block: 1.55rem; border-top: 1px solid var(--rule); }
.notice-section h2,
.publication-note h2 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); }
.notice-section p { margin: .75rem 0 0; color: var(--body); }
.publication-note {
  margin-top: .65rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: var(--mist);
}
.publication-note dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.publication-note dt { font-size: .87rem; font-weight: 650; }
.publication-note dd { color: var(--body); }

.page-footer {
  min-height: 5.5rem;
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
  color: var(--body);
  font-size: .87rem;
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 4.35rem; }
  .hero h1 { font-size: clamp(2.9rem, 10.7vw, 4.75rem); }
  .hero, .trial-note { grid-template-columns: 1fr; }
  .workflow { margin-right: .5rem; }
}

@media (max-width: 25rem) {
  .publication-note dl { grid-template-columns: 1fr; }
}
