@font-face {
  font-family: "EuCompass Sans";
  src: local("Aptos"), local("Segoe UI"), local("Helvetica Neue");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-raised: #faf9f5;
  --ink: #17231f;
  --muted: #5e6964;
  --line: #cdd2cb;
  --accent: #0d5b4d;
  --accent-soft: #dce8e3;
  --private: #3f4a5a;
  --max-width: 74rem;
  font-family: "EuCompass Sans", "Trebuchet MS", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 0.3rem;
}

.site-header nav a:hover {
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: 2rem;
  padding: 2rem;
  border-top: 3px solid var(--accent);
  background: var(--accent-soft);
}

.status-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.status-panel p:last-child {
  max-width: 50ch;
  margin: 0;
  color: #43514b;
}

.surfaces {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.section-heading h2,
.principle h2 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.surface-list {
  border-top: 1px solid var(--ink);
}

.surface {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.surface > div:last-child {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(17rem, 1.25fr);
  column-gap: 2rem;
}

.surface-index {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.surface h3 {
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.surface-role {
  grid-column: 1;
  margin: 0.4rem 0 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.surface p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
}

.private-surface h3,
.private-surface .surface-role {
  color: var(--private);
}

.principle {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--ink);
}

.principle h2 {
  grid-column: 2;
}

.principle > p:last-child {
  grid-column: 2;
  max-width: 52ch;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: 5rem;
  }

  .site-header nav {
    gap: 0.85rem;
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  .intro,
  .status-panel,
  .section-heading,
  .surface,
  .principle {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 2rem;
  }

  .intro .eyebrow,
  .principle h2,
  .principle > p:last-child {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .surface > div:last-child {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .surface p:last-child {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
