@import "fonts.css";

:root {
  --bg: #0c0c0c;
  --ink: #f4f1ea;
  --dim: #c9c3b6;
  --faint: #8d877c;
  --line: rgba(244, 241, 234, 0.2);
  --line-strong: rgba(244, 241, 234, 0.42);
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
  --pad: clamp(18px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.ico {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  display: block;
}

/* Header — deck running head */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.head-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding-top: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark .ico { width: 16px; height: 16px; }

.head-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.head-section .ico { width: 14px; height: 14px; }

.head-sub {
  padding-bottom: 10px;
}

.head-sub p {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.nav-toggle .ico { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
body.nav-open .nav-toggle .ico-menu { display: none; }
body.nav-open .nav-toggle .ico-close { display: block; }

.nav-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
}

.nav-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 10px 8px 0;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  border-right: 1px solid var(--line);
}

.nav-row a:last-child { border-right: 0; padding-right: 0; }
.nav-row a .ico { width: 15px; height: 15px; }
.nav-row a[aria-current="page"],
.nav-row a:hover { color: var(--ink); }

/* Type */

.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.sec-label .ico { width: 15px; height: 15px; }

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(3.1rem, 8.2vw, 6.6rem); }

h2 { font-size: clamp(2.15rem, 4.6vw, 3.8rem); }

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.lede {
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  line-height: 1.45;
  max-width: 38rem;
  color: var(--ink);
  margin: 22px 0 0;
}

.measure { max-width: 40rem; }
.measure p,
.prose p { margin: 0 0 1rem; color: var(--dim); }
.measure p:last-child,
.prose p:last-child { margin-bottom: 0; }

.dim { color: var(--dim); }
.faint { color: var(--faint); }

/* Sections */

.sheet {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.sheet:first-child { border-top: 0; }

.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(8px, 2vw, 20px); }

.page-hero h1 { max-width: 12em; }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - 148px);
  min-height: calc(100dvh - 148px);
  display: grid;
  align-items: end;
  background: #070707;
  overflow: hidden;
}

.hero-media,
.close-media { position: absolute; inset: 0; }

.hero-media img,
.close-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.close-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.15) 0%, rgba(12, 12, 12, 0.28) 40%, rgba(12, 12, 12, 0.88) 100%);
}

.hero-copy,
.close-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 22px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-meta .ico { width: 14px; height: 14px; }

/* Layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.edge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.edge.rev { grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr); }
.edge.rev .copy { order: 2; }

.edge .copy {
  padding: clamp(48px, 7vw, 88px) clamp(22px, 4vw, 56px);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2));
}

.edge.rev .copy {
  padding-left: clamp(22px, 4vw, 56px);
  padding-right: max(var(--pad), calc((100vw - var(--max)) / 2));
}

.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.quad article {
  padding: 22px 22px 8px 0;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.quad article:last-child { border-right: 0; padding-right: 0; }
.quad article:not(:first-child) { padding-left: 22px; }

.quad h3,
.item h3,
.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quad h3 .ico,
.item h3 .ico,
.step h3 .ico,
.ph h3 .ico {
  width: 18px;
  height: 18px;
}

.quad p,
.item p,
.step p { margin: 12px 0 0; color: var(--dim); }

.quad .num,
.step .num { color: var(--ink); margin: 0 0 14px; }

.sec-label .num {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.num {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1;
}

.stat {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  margin: 8px 0 12px;
}

/* Numbered rows — deck 01 / 02 */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin-top: 28px;
}

.item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px 14px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.item .num { padding-top: 2px; }
.item p { grid-column: 2; margin-top: 6px; }

.stack-list { margin-top: 8px; }
.stack-list .item { grid-template-columns: 46px 1fr; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.step {
  padding: 20px 22px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 22px; }
.step .num { display: block; margin-bottom: 14px; }

/* Photos */

.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.bleed img {
  width: 100%;
  height: min(68vh, 720px);
  object-fit: cover;
}

.caption {
  margin: 10px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.edge figure { margin: 0; }
.edge img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.duo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo .tall { min-height: 520px; }
.duo .stack { display: grid; gap: 8px; }
.duo .stack img { min-height: 256px; height: 100%; }

.close {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #070707;
  border-top: 1px solid var(--line);
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
}

.link-line .ico { width: 15px; height: 15px; }

/* Contact */

.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.places div {
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}

.places div:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.places dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.places dt .ico { width: 14px; height: 14px; }

.places dd {
  margin: 0;
  font-family: var(--cond);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

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

.start-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--cond);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.start-list .num { font-size: 1.15rem; padding-top: 4px; }

.start-list small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  color: var(--dim);
}

.note {
  margin-top: 14px;
  max-width: 38rem;
  color: var(--dim);
}

/* Footer — deck line */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-brand {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.foot-brand span { color: var(--faint); padding: 0 0.4em; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot-nav a {
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

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

.foot-meta { margin-top: 18px; }
.foot-meta p { margin: 0; color: var(--faint); font-size: 0.92rem; }
.foot-meta a { color: var(--dim); }

.fine {
  margin-top: 10px !important;
  max-width: 62rem;
  font-size: 0.82rem !important;
  line-height: 1.45;
}

/* Mobile */

@media (max-width: 900px) {
  .head-top { grid-template-columns: 1fr auto; }
  .head-section { display: none; }
  .head-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    background: var(--bg);
  }

  body.nav-open .site-nav { display: block; }

  .nav-row {
    flex-direction: column;
    border-top: 0;
    padding-bottom: 12px;
  }

  .nav-row a {
    border-right: 0;
    border-top: 1px solid var(--line);
    min-height: 52px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    padding: 8px 0;
  }

  .split,
  .edge,
  .edge.rev,
  .quad,
  .pair,
  .steps,
  .duo,
  .places {
    grid-template-columns: 1fr;
  }

  .edge.rev .copy { order: -1; }
  .edge .copy,
  .edge.rev .copy { padding: 28px var(--pad) 8px; }
  .edge img { min-height: 240px; max-height: 420px; }

  .quad article,
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .quad article:not(:first-child),
  .step:not(:first-child) { padding-left: 0; }

  .places div,
  .places div:nth-child(even) {
    padding: 18px 0;
    border-left: 0;
  }

  .hero { min-height: 78svh; }
  .bleed img { height: 52vw; min-height: 220px; max-height: 420px; }
  .duo .tall,
  .duo .stack img { min-height: 220px; }
  .close { min-height: 70svh; }

  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
}

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