@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f0efea;
  --paper-deep: #e8e5dc;
  --ink: #141713;
  --muted: #5d5b52;
  --rule: #d2cec2;
  --pine: #1f4a3d;
  --rail: 15rem;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--pine);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease, color 150ms ease;
}

a:hover {
  text-decoration-color: var(--pine);
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  transform: translateY(-200%);
}

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

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.35rem;
}

.rail-name {
  margin: 0 0 0.35rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.rail-role {
  margin: 0;
  max-width: 20ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rail-meta {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.85rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.rail-meta div {
  display: grid;
  grid-template-columns: 4.7rem minmax(0, 1fr);
  gap: 0.6rem;
}

.rail-meta div:last-child {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.rail-meta dt {
  color: var(--muted);
}

.rail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rail-current {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.rail-current p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rail-current .label {
  margin-bottom: 0.4rem;
}

.dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--pine);
  vertical-align: 0.05em;
}

.label {
  margin: 0;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero {
  padding-top: 0.25rem;
}

.hero h1 {
  margin: 0;
  max-width: 13.5ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.1rem, 7.2vw, 5.4rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.035em;
}

.lede {
  margin: 1.6rem 0 0;
  max-width: 47ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.62;
}

.hero-contact {
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
}

.hero-contact a {
  color: var(--ink);
  text-decoration-color: var(--pine);
  text-decoration-thickness: 2px;
}

.section {
  margin-top: 4.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  gap: 1.5rem 2.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.services li:first-child {
  padding-top: 0;
}

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

.services h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.schematic {
  margin: 0;
}

.schematic svg {
  display: block;
  width: 100%;
  height: auto;
}

.schematic figcaption {
  margin-top: 0.9rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.svg-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  fill: var(--muted);
}

.svg-title {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  fill: var(--ink);
}

.svg-sub {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  fill: var(--muted);
}

.svg-arrow line {
  stroke: var(--ink);
  stroke-width: 1.1;
}

.svg-dash line {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.schematic-mobile {
  display: none;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.schematic-mobile li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.schematic-mobile span {
  padding-top: 0.15rem;
  color: var(--pine);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
}

.schematic-mobile strong {
  display: block;
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
}

.schematic-mobile p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.steps li {
  padding: 1.15rem 1.1rem 1.15rem 0;
  border-right: 1px solid var(--rule);
}

.steps li:not(:first-child) {
  padding-left: 1.1rem;
}

.steps li:last-child {
  border-right: 0;
}

.step-num {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--pine);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.66rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.work {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.work li:first-child {
  padding-top: 0;
}

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

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.work h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.work h3 a {
  text-decoration-color: var(--rule);
}

.work h3 a:hover {
  text-decoration-color: var(--pine);
}

.work p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.work-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.67rem;
}

.work-status .dot {
  margin-right: 0;
}

.work .work-stack {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

.contact {
  margin-top: 5rem;
}

.contact-heading {
  margin: 0 0 0.9rem;
  max-width: 14ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.contact > p {
  margin: 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.email {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--pine);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  text-decoration: none;
}

.email:hover {
  color: var(--pine);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

footer p {
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 1.5rem 2.5rem;
    align-items: start;
    padding-top: 0;
  }

  .rail-identity {
    grid-column: 1;
  }

  .rail-meta {
    grid-column: 2;
    padding-top: 0;
    border-top: 0;
  }

  .rail-current {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
  }

  .hero {
    padding-top: 0.5rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .schematic {
    display: none;
  }

  .schematic-mobile {
    display: block;
  }

  .section {
    margin-top: 3.5rem;
  }
}

@media (max-width: 680px) {
  .rail {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .rail-meta {
    grid-column: 1;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
  }

  .rail-current {
    grid-column: 1;
  }

  .services li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li {
    padding: 1rem 1rem 1rem 0;
  }

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(3),
  .steps li:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .steps li:nth-child(3) {
    padding-left: 0;
  }

  .steps li:nth-child(4) {
    padding-left: 1rem;
  }

  .work-head {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-left: 0;
    border-right: 0;
    border-top: 1px solid var(--rule);
  }

  .steps li:first-child {
    border-top: 0;
  }

  .steps li:nth-child(3),
  .steps li:nth-child(4) {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .rail,
  .skip {
    display: none;
  }

  .shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .schematic {
    display: block;
  }

  .schematic-mobile {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
