@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/fonts/RobotoCondensed-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f7f7f4;
  --ink: #07080a;
  --blue: #082cff;
  --soft-rule: #a7a8a5;
  --rail: clamp(13.5rem, 14.6vw, 14.5rem);
  --sans: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.16;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  padding: .75rem 1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  transform: translateY(-110%);
}
.skip-link:focus { transform: none; }

.site-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  height: 100svh;
  overflow: hidden;
}

.identity {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow-y: auto;
  padding: 1.55rem 1.35rem 1.1rem;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
h1 {
  margin: 0;
  font-size: clamp(2.7rem, 3.2vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .83;
  text-transform: uppercase;
}
.thick-rule {
  height: 6px;
  margin: 1.45rem 0 1.35rem;
  background: var(--ink);
}
.thesis {
  margin: 0;
  font-size: clamp(2.05rem, 2.65vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: .93;
}
.thesis span { color: var(--blue); }

.project-index { display: grid; gap: .75rem; }
.project-index h2,
.identity-footer,
.status,
time,
.lane-header > span,
.lane-header p,
.manifesto span,
.contact-block > span {
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}
.project-index h2 { margin: 0 0 .1rem; }
.project-index a { display: grid; gap: .1rem; width: fit-content; }
.project-index strong { font-size: .91rem; font-weight: 800; }
.project-index small { font-size: .56rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }

.lane-nav { display: none; }
.identity-footer {
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 6px solid var(--ink);
}
.identity-footer p { margin: 0 0 .75rem; line-height: 1.45; }
.identity-footer div { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.identity-footer a { text-decoration: underline; text-underline-offset: .2em; }

.lanes {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(16.5rem, 1fr));
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--paper);
}
.lane {
  min-width: 0;
  height: 100svh;
  overflow-y: auto;
  padding: 0 1rem 2.25rem;
  border-right: 1px solid var(--ink);
  scroll-margin-left: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.lane:last-child { border-right: 0; }

.lane-header {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 1.15rem 0 .65rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.lane-header::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: .7rem;
  background: var(--ink);
}
.lane-header > div { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.lane-header h2 {
  margin: 0;
  font-size: clamp(3.25rem, 4.4vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .82;
}
.lane-header p { margin: .1rem 0 0; text-align: right; }
.lane-header > span { display: block; margin-top: .55rem; }

.item {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--soft-rule);
}
.item h3 {
  margin: .25rem 0 .18rem;
  font-size: clamp(1.25rem, 1.45vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1;
}
.item p {
  max-width: 38ch;
  margin: 0;
  font-size: .96rem;
  font-weight: 410;
  letter-spacing: -.012em;
  line-height: 1.22;
}
.item p strong { font-weight: 650; }
.status, time { display: block; }
.status--blue { color: var(--blue); }
.item--about { border-bottom-color: var(--ink); }
.item--about p { font-size: 1.05rem; font-weight: 560; line-height: 1.18; }

.manifesto {
  min-height: 11.75rem;
  padding: 1.7rem 0 .75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 6px solid var(--ink);
}
.manifesto strong {
  font-size: clamp(3.05rem, 4.1vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .82;
  text-transform: uppercase;
}
.manifesto--blue strong { color: var(--blue); }
.manifesto:hover { color: inherit; }
.manifesto:hover strong { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .07em; }

.column-close {
  margin: 2.1rem 0 0;
  padding: .85rem 0 .75rem;
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-transform: uppercase;
}
.column-link {
  display: block;
  margin-top: 1rem;
  padding: .8rem 0;
  border-bottom: 6px solid var(--ink);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-block {
  margin-top: 1.6rem;
  padding: 1rem 0 1.2rem;
  border-top: 6px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.contact-block h3 { margin: .45rem 0 .2rem; font-size: 1.8rem; line-height: .95; }
.contact-block p { margin: 0 0 .75rem; }
.contact-block a { font-size: 1rem; font-weight: 750; text-decoration: underline; text-underline-offset: .18em; }

.error-page {
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1rem solid var(--ink);
}
.error-page > span { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.error-page h1 { font-size: clamp(5rem, 17vw, 14rem); color: var(--blue); }
.error-page p { margin: auto 0 1rem; font-size: 1.35rem; font-weight: 700; }
.error-page a { width: fit-content; border-bottom: 5px solid var(--ink); font-size: 1.35rem; font-weight: 850; }

@media (max-width: 1180px) and (min-width: 761px) {
  :root { --rail: 13.5rem; }
  .lanes { grid-template-columns: repeat(4, 17.5rem); }
  .lane-header h2 { font-size: 3.7rem; }
  .manifesto strong { font-size: 3.35rem; }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .site-shell { display: block; height: auto; overflow: visible; }
  .identity {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 1.2rem 1rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  h1 { font-size: clamp(3.6rem, 18vw, 5.1rem); }
  .thesis { font-size: clamp(2.8rem, 13.4vw, 4rem); }
  .project-index { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
  .project-index h2 { grid-column: 1 / -1; }
  .lane-nav {
    position: sticky;
    z-index: 20;
    bottom: 0;
    order: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 1.4rem -1rem -1rem;
    background: var(--ink);
    color: #fff;
  }
  .lane-nav a {
    display: grid;
    place-items: center;
    min-height: 3.25rem;
    padding: .5rem .2rem;
    border-right: 1px solid #fff;
    font-size: .72rem;
    font-weight: 750;
  }
  .lane-nav a:last-child { border-right: 0; }
  .lane-nav a[aria-current="location"] { background: var(--blue); color: #fff; }
  .identity-footer { margin-top: 2rem; }
  .lanes { display: block; height: auto; overflow: visible; }
  .lane { width: 100%; height: auto; min-height: 100svh; overflow: visible; padding: 0 1rem 3rem; border-right: 0; border-bottom: 1px solid var(--ink); }
  .lane-header { position: static; margin: 0; padding-top: 1.1rem; }
  .lane-header h2 { font-size: clamp(4rem, 19vw, 5.4rem); }
  .item h3 { font-size: 1.55rem; }
  .item p { max-width: 44ch; font-size: 1rem; }
  .manifesto { min-height: 12.5rem; }
  .manifesto strong { font-size: clamp(3.7rem, 17vw, 5rem); }
}

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