:root {
  --paper: #f3f1e9;
  --ivory: #faf9f4;
  --ink: #111814;
  --body: #465049;
  --muted: #69736c;
  --green: #38634f;
  --forest: #244936;
  --sage: #dfe6df;
  --line: #d7d5ca;
  --white: #fff;
  --max: 1500px;
  --pad: clamp(22px, 4.1vw, 66px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

a,
button {
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 78px;
  gap: 38px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 233, 0.96);
  backdrop-filter: blur(16px);
}

.wordmark {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span {
  color: var(--muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.site-nav a,
.header-action {
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-action {
  padding-left: 36px;
  border-left: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
}

.header-action span {
  margin-left: 18px;
}

main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.section-code {
  margin: 0 0 32px;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
}

.hero-statement,
.hero-thesis {
  padding: clamp(58px, 8vw, 118px) var(--pad);
}

.hero-statement {
  border-right: 1px solid var(--line);
}

.landing-hero h1,
.page-hero h1,
.observatory-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 750;
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.hero-thesis {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-thesis > p {
  max-width: 680px;
  margin: 0 0 25px;
  color: var(--body);
  font: 400 clamp(20px, 1.7vw, 27px)/1.52 Iowan Old Style, Baskerville, Georgia, serif;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 235px;
  padding: 19px 22px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button span {
  margin-left: 28px;
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 7px;
}

.observatory-section,
.method-section,
.about-section,
.subscribe-section,
.portfolio-section,
.detail-section,
.method-band,
.status-section {
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: 200px minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
  padding: 78px var(--pad) 48px;
}

.section-header .section-code {
  margin: 8px 0 0;
}

.section-header h2,
.method-section h2,
.about-section h2,
.subscribe-section h2,
.detail-section h2,
.method-band h2,
.status-section h2 {
  margin: 0;
  font: 400 clamp(38px, 4.5vw, 70px)/1.04 Iowan Old Style, Baskerville, Georgia, serif;
  letter-spacing: -0.045em;
}

.section-intro {
  color: var(--body);
  font-size: 17px;
}

.section-intro p {
  margin: 0 0 18px;
}

.observatory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.observatory-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: clamp(34px, 5vw, 70px) var(--pad);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.observatory-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

a.observatory-card {
  background: var(--ivory);
  transition: background 160ms ease;
}

a.observatory-card:hover {
  background: var(--sage);
}

.observatory-meta {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.observatory-meta em {
  color: var(--green);
  font-style: normal;
}

.observatory-card h2,
.observatory-card h3 {
  margin: 0 0 25px;
  font: 400 clamp(35px, 3.2vw, 54px)/1.02 Iowan Old Style, Baskerville, Georgia, serif;
  letter-spacing: -0.04em;
}

.observatory-card p {
  max-width: 620px;
  margin: 0;
  color: var(--body);
  font-size: 18px;
}

.observatory-card strong {
  margin-top: auto;
  padding-top: 42px;
  color: var(--green);
  font-size: 13px;
}

.observatory-card strong span {
  margin-left: 16px;
}

.method-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 92px var(--pad) 76px;
}

.method-copy {
  max-width: 780px;
  color: var(--body);
  font-size: 19px;
}

.method-copy p:first-child {
  margin-top: 0;
}

.about-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: 92px var(--pad);
}

.about-section > .section-code {
  margin-top: 9px;
}

.about-copy {
  max-width: 1020px;
}

.about-copy h2 {
  margin-bottom: 42px;
}

.about-copy p {
  max-width: 800px;
  color: var(--body);
  font-size: 19px;
}

.subscribe-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 72px var(--pad);
}

.subscribe-section .section-code {
  margin: 0;
}

.subscribe-section h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.subscribe-section p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--body);
}

.site-footer {
  display: grid;
  grid-template-columns: 0.45fr 0.65fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding: 44px var(--pad) 56px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer .disclaimer {
  text-align: right;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 460px;
  border-bottom: 1px solid var(--line);
}

.page-hero > *,
.observatory-hero > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 74px var(--pad);
}

.page-hero > :first-child,
.observatory-hero > :first-child {
  border-right: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(54px, 6.5vw, 96px);
}

.page-introduction {
  margin: 0;
  color: var(--body);
  font: 400 clamp(23px, 2.4vw, 37px)/1.35 Iowan Old Style, Baskerville, Georgia, serif;
}

.portfolio-section .observatory-list {
  border-top: 0;
}

@media (max-width: 1050px) {
  .site-nav {
    display: none;
  }

  .section-header,
  .method-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-header .section-code,
  .about-section > .section-code {
    margin-top: 0;
  }

  .subscribe-section {
    grid-template-columns: 1fr auto;
  }

  .subscribe-section .section-code {
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer .disclaimer {
    max-width: 820px;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    gap: 16px;
  }

  .header-action {
    margin-left: auto;
    padding-left: 18px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-action span {
    display: none;
  }

  .landing-hero,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-statement,
  .hero-thesis,
  .page-hero > * {
    padding: 52px var(--pad);
  }

  .hero-statement,
  .page-hero > :first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    min-width: 0;
  }

  .section-header,
  .method-section,
  .about-section,
  .subscribe-section {
    padding: 58px var(--pad);
  }

  .observatory-list {
    grid-template-columns: 1fr;
  }

  .observatory-card {
    min-height: 330px;
    border-right: 0 !important;
  }

  .subscribe-section {
    grid-template-columns: 1fr;
  }

  .subscribe-section .section-code {
    grid-column: auto;
  }

  .site-footer {
    padding-bottom: 42px;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 18px;
  }

  .header-action { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .observatory-card {
    transition: none;
  }
}
