:root {
  --paper: #ffffff;
  --forest: #0c3b2e;
  --ink: #17241f;
  --muted: #59635f;
  --rule: #cfd7d2;
  --footer: #063a2a;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.2vw + 0.96rem, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(100%, 96rem);
  min-height: 6.75rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark,
.footer-wordmark {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  line-height: 1;
  text-decoration: none;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.5rem);
}

.site-nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-nav a::after,
.site-footer nav a::after {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-footer nav a:hover::after,
.site-footer nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.notes-section,
.about-band,
.reading-page,
.simple-page {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero {
  position: relative;
  min-height: min(53rem, calc(100vh - 6.75rem));
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: 6.5rem;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(26rem, 1.18fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1,
.section-heading h2,
.page-intro h1,
.simple-page h1,
.not-found h1 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero h1 { max-width: 7.2ch; font-size: clamp(4.2rem, 8vw, 8rem); }

.hero-copy > p {
  max-width: 26rem;
  margin: 2.4rem 0 2.5rem;
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  line-height: 1.45;
}

.text-link,
.row-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
}

.text-link span,
.row-link span { transition: transform 180ms ease; }
.text-link:hover span,
.row-link:hover span { transform: translateX(0.3rem); }

.hero-art {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 31rem;
}

.hero-art img {
  position: absolute;
  top: 50%;
  left: 47%;
  width: min(68rem, 78vw);
  max-width: none;
  height: auto;
  transform: translate(-47%, -50%) rotate(-2deg);
}

.hero-note {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4rem 0 0;
  padding: 2rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.hero-note::before {
  width: 1.15rem;
  height: 1.55rem;
  flex: 0 0 auto;
  background: url("/cedar-mark.svg") center / contain no-repeat;
  content: "";
}

.notes-section { padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(14rem, 0.5fr) 1fr;
  align-items: end;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--forest);
}

.section-heading h2,
.page-intro h1,
.simple-page h1 { font-size: clamp(4rem, 8vw, 7.5rem); }

.section-heading p,
.page-intro p { margin: 0 0 0.4rem; font-size: clamp(1.2rem, 1.8vw, 1.6rem); }

.note-row {
  min-height: 13rem;
  display: grid;
  grid-template-columns: 7rem minmax(19rem, 1.4fr) minmax(15rem, 0.95fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.note-number,
.article-number {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
}

.note-row h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.3vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.note-row h3 a { text-decoration: none; }
.note-row > p { max-width: 23rem; margin: 0; }
.row-link { white-space: nowrap; font-weight: 500; }

.about-band {
  padding-top: clamp(6rem, 9vw, 9rem);
  padding-bottom: clamp(6rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.about-band h2 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.about-copy { max-width: 58rem; font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
.about-copy p:first-child { margin-top: 0; }
.about-copy .text-link { margin-top: 1.4rem; font-size: 1.05rem; }

.site-footer {
  min-height: 20rem;
  padding: clamp(4rem, 7vw, 6.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  align-items: start;
  gap: 4rem;
  background: var(--footer);
  color: var(--paper);
}

.site-footer > * { width: 100%; max-width: 34rem; margin-left: auto; margin-right: auto; }
.site-footer > :first-child { max-width: 44rem; }
.site-footer .footer-wordmark { color: var(--paper); }
.site-footer p { margin: 1.25rem 0 0; }
.site-footer nav { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
.site-footer nav,
.copyright {
  min-height: 9rem;
  padding-left: clamp(2rem, 4vw, 4.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.62);
}
.copyright { margin-top: 0 !important; padding-top: 0.55rem; }

.reading-page { padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); }

.page-intro {
  padding-bottom: clamp(4rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
  border-bottom: 1px solid var(--forest);
}

.long-note {
  padding: clamp(4rem, 7vw, 7rem) 0;
  display: grid;
  grid-template-columns: 7rem minmax(20rem, 0.9fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  scroll-margin-top: 2rem;
  border-bottom: 1px solid var(--rule);
}

.long-note h2 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.article-body { max-width: 42rem; font-size: clamp(1.1rem, 1.35vw, 1.3rem); }
.article-body p:first-child { margin-top: 0; }
.article-body p:last-child { margin-bottom: 0; }

.simple-page {
  min-height: 42rem;
  padding-top: clamp(5rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.simple-copy { max-width: 49rem; font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
.simple-copy p:first-child { margin-top: 0; }
.simple-copy .text-link { margin-top: 1.5rem; font-size: 1.05rem; }
.revision { margin-top: 3rem; color: var(--muted); font-size: 0.92em; }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.not-found main { width: min(100%, 52rem); }
.not-found h1 { margin-top: 1.8rem; font-size: clamp(4.2rem, 10vw, 8.5rem); }
.not-found main > p:not(.article-number) { max-width: 33rem; margin: 2rem 0; font-size: 1.3rem; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero h1 { max-width: 8.5ch; }
  .hero-art { min-height: 26rem; margin-top: 1.5rem; }
  .hero-art img { left: 54%; width: min(58rem, 112vw); transform: translate(-54%, -50%) rotate(-2deg); }
  .hero-note { margin-top: 2rem; }
  .note-row { grid-template-columns: 4.5rem 1fr auto; gap: 1.5rem; padding: 2.5rem 0; }
  .note-row > p { grid-column: 2 / -1; grid-row: 2; }
  .note-row .row-link { grid-column: 3; grid-row: 1; }
  .about-band { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 0.6fr; }
  .copyright { grid-column: 2; }
  .long-note { grid-template-columns: 4.5rem 1fr; }
  .long-note .article-body { grid-column: 2; }
}

@media (max-width: 680px) {
  .site-header { min-height: 6rem; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.75rem; padding-top: 1rem; padding-bottom: 1rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: 1rem; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .hero-art { min-height: 19rem; }
  .hero-art img { width: 145vw; }
  .section-heading,
  .page-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .note-row { grid-template-columns: 3.5rem 1fr; }
  .note-row h3 { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .note-row > p,
  .note-row .row-link { grid-column: 2; }
  .note-row .row-link { grid-row: auto; }
  .about-band { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer > * { margin-left: 0; }
  .site-footer nav,
  .copyright { min-height: 0; padding-left: 0; border-left: 0; }
  .copyright { grid-column: 1; }
  .long-note { grid-template-columns: 1fr; }
  .long-note .article-body { grid-column: 1; }
  .simple-page { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
