/* Instrument Sans + Instrument Serif — SIL Open Font License, bundled for offline use */

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5eadc;
  --paper: #fbf6ee;
  --fg: #1a1714;
  --muted: #6b645c;
  --subtle: #8f877c;
  --line: #e0d5c6;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-decoration: none;
  color: var(--fg);
}

.nav-external {
  display: flex;
  align-items: center;
}

.nav-external a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 150ms ease-out;
}

.nav-external a:hover {
  opacity: 0.45;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  padding: 1.5rem 1.25rem 6rem;
  text-align: center;
}

.hero__mark {
  will-change: transform;
}

.hero__mark img {
  display: block;
  margin: 0 auto;
  width: min(78vw, 26rem);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 12vw, 6.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero__tagline {
  margin: 1.25rem 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg);
}

.hero__lore {
  margin: 3rem auto 0;
  max-width: 24rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}

.hero__lore span {
  display: block;
}

.hero__id {
  margin: 4rem 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--subtle);
}

.section {
  border-top: 1px solid var(--line);
  padding: 6rem 1.25rem;
}

.section--narrow {
  max-width: 36rem;
  margin: 0 auto;
}

.section--panel {
  max-width: 42rem;
  margin: 0 auto;
}

.philosophy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stack {
  margin-top: 2.5rem;
}

.stack p,
.stack li {
  margin: 0;
  font-size: 15px;
  line-height: 1.625;
}

.stack p + p,
.stack li + li {
  margin-top: 0.25rem;
}

.stack ul {
  list-style: none;
  padding: 0;
}

.stack--muted p {
  color: var(--muted);
}

.kicker {
  margin: 0 0 2.5rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--subtle);
}

.status {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.status__row:last-child {
  border-bottom: 0;
}

.status dt {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--subtle);
}

.status dd {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.status dd.is-pending {
  color: var(--muted);
}

.status dd.is-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
  word-break: break-all;
}

.mechanics {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mechanics li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.mechanics li:last-child {
  border-bottom: 0;
}

.mechanics__title {
  font-size: 15px;
  color: var(--fg);
}

.mechanics__body {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.mechanics-link {
  margin-top: 3rem;
}

.mechanics-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--fg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 150ms ease-out;
}

.mechanics-link a:hover {
  opacity: 0.45;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.footer-mark {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease-out;
}

.footer-nav a:hover {
  color: var(--fg);
}

.disclaimer {
  margin: 0;
  max-width: 24rem;
  font-size: 11px;
  line-height: 1.625;
  color: var(--subtle);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70svh;
  padding: 1.5rem;
  text-align: center;
}

.not-found p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

.not-found a {
  margin-top: 2rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--muted);
}

.not-found a:hover {
  color: var(--fg);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: reveal 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 640px) {
  .hero__tagline {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }

  .hero__lore {
    font-size: 1.2rem;
  }

  .status__row {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }

  .mechanics li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2rem;
  }

  .mechanics__body {
    text-align: right;
  }

  .footer-nav a {
    padding: 0 0.75rem;
  }
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 1.25rem 2.5rem;
  }

  .hero {
    padding: 2rem 2.5rem 8rem;
  }

  .hero__mark img {
    width: min(70vw, 28rem);
  }

  .section {
    padding: 8rem 2.5rem;
  }

  .stack p,
  .stack li {
    font-size: 1rem;
  }

  .status__row,
  .mechanics li {
    padding: 1.75rem 0;
  }

  .status dd {
    font-size: 15px;
  }

  .site-footer {
    padding: 3rem 2.5rem;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .disclaimer {
    text-align: right;
  }
}

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

  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
