@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fdfaf2;
  --gold: #b5860f;
  --attn: 240, 205, 110;
  --ink: #2b2416;
  --body: #4a4130;
  --muted: #6e6449;
  --rule: rgba(181, 134, 15, 0.32);
  --sans: "IBM Plex Sans", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --label: 12px/1.4 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(18px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: clamp(16px, 0.95rem + 0.1vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 20px;
  padding: 8px var(--gutter);
  font: var(--label);
}

.top a {
  display: inline-block;
  padding: 12px 0;
  text-decoration: none;
}

.top a:hover {
  text-decoration: underline;
}

.top nav {
  display: flex;
  gap: 18px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 58px);
}

.plot {
  position: absolute;
  inset: -58px 0 0;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(#000 82%, transparent);
}

.intro {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(14px, 4vh, 44px) var(--gutter) 12px;
}

.intro > * {
  width: fit-content;
  max-width: 100%;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.kicker,
h2,
.status,
.stack,
.tags {
  color: var(--muted);
  font: var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 10px 0 0;
}

.role {
  max-width: 21em;
  margin: clamp(20px, 3.4vh, 32px) 0 0;
  font-size: clamp(23px, 1.1rem + 1vw, 34px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: clamp(16px, 2.6vh, 24px) 0 0;
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(18px, 1rem + 0.25vw, 21px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.36;
}

.line {
  display: block;
  text-wrap: balance;
}

.links {
  display: flex;
  gap: 24px;
  margin: 12px 0 0;
  font: 13px/1.4 "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.links a {
  display: inline-block;
  padding: 11px 0;
}

.stack {
  margin: 2px 0 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

main > section:not(.hero) {
  padding: clamp(64px, 12vh, 140px) var(--gutter) 0;
}

h2 {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-weight: 400;
}

h2 span {
  margin-right: 0.8em;
  color: #86640a;
}

h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}

article p {
  margin: 0;
}

.rows article {
  display: grid;
  gap: 8px clamp(32px, 6vw, 96px);
  padding: clamp(18px, 3vh, 28px) 0;
  border-top: 1px solid var(--rule);
}

.rows h3 {
  font-size: clamp(21px, 1rem + 1vw, 30px);
  font-weight: 300;
  line-height: 1.16;
}

.rows p {
  max-width: 36em;
  color: var(--body);
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.card:has(a:hover) {
  border-color: var(--gold);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 1rem + 0.6vw, 26px);
  line-height: 1.16;
}

.card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.card > p {
  color: var(--body);
}

.card .meant {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  letter-spacing: 0.02em;
  text-transform: none;
}

.about p {
  max-width: 40em;
  margin: 0;
  color: var(--body);
}

.pull {
  max-width: 20em;
  margin: clamp(28px, 5vh, 56px) 0;
  font-family: var(--serif);
  font-size: clamp(24px, 1.2rem + 1.6vw, 44px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.pull .line + .line {
  margin-top: 0.3em;
}

@media (min-width: 900px) {
  main > section:not(.hero) {
    display: grid;
    grid-template-columns: minmax(110px, 13em) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 64px);
  }

  h2 {
    position: sticky;
    top: 24px;
    align-self: start;
    padding-top: clamp(18px, 3vh, 28px);
    margin: 0;
  }

  .rows article {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: baseline;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: clamp(18px, 3vh, 28px);
  }

  .about {
    padding-top: clamp(18px, 3vh, 28px);
  }
}

.word {
  white-space: nowrap;
}

.tok {
  cursor: crosshair;
}

.tok.hot {
  color: var(--bg);
  background-image: linear-gradient(transparent 13%, var(--ink) 13%, var(--ink) 91%, transparent 91%) !important;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  margin-top: clamp(64px, 12vh, 140px);
  padding: 12px var(--gutter) 28px;
  color: var(--muted);
  font: var(--label);
}

.foot .links {
  margin: 0;
  color: var(--ink);
}

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