/* =========================================================================
   feio.in — "the sheet"
   One full-width sheet of white paper. Three inks only: paper, ink, spot.
   No margin column, no bands, no card grid, no theme toggle, no gradients,
   no shadows, no glass. Structure is rules, type scale and one crimson.
   ========================================================================= */

/* ---------- faces ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --line: #111111;
  --line-soft: #dcdcd8;
  --accent: #d6003f;
  --on-accent: #ffffff;
  --on-ink: #ffffff;

  --measure: 62ch;
  --shell: 84rem;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --dur: 130ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 0, "WONK" 0;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- primitives ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.rule { height: 3px; background: var(--line); }
.rule--hair { height: 1px; background: var(--line-soft); }
.rule--spot { background: var(--accent); }

.kicker {
  margin: 0;
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 10;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: .7rem 1rem;
  overflow: visible;
  clip-path: none;
}

/* =========================================================================
   MASTHEAD — not sticky, scrolls away. Name huge, nav on its baseline.
   ========================================================================= */
.mast { padding-block: clamp(1.6rem, 3.4vw, 3rem) clamp(1.1rem, 2vw, 1.7rem); }

.mast-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem clamp(1.2rem, 4vw, 3rem);
}

.mast-name {
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.045em;
  text-decoration: none;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.mast-name:hover { color: var(--accent); }

.mast-nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.6rem);
  font: 500 clamp(.72rem, 1.1vw, .85rem)/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mast-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: .3rem;
  border-bottom: 2px solid transparent;
}
.mast-nav a:hover,
.mast-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

/* =========================================================================
   STATEMENT
   ========================================================================= */
.statement { padding-block: clamp(3rem, 9vh, 6.5rem) clamp(2.5rem, 7vh, 5rem); }

.statement h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 5.4rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.04em;
  max-width: 17ch;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.statement h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}

.lede-p {
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lede-p a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.lede-p a:hover { color: var(--accent); }

/* =========================================================================
   THE TALLY — 38 marks, one per thing. Black ink only, no palette.
   ========================================================================= */
.tally { padding-block: clamp(2.5rem, 6vh, 4.5rem); }

.tally-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: clamp(1.5rem, 3.4vw, 3rem) clamp(1.6rem, 4vw, 3.4rem);
  margin-top: 1.7rem;
}

.cluster { display: flex; flex-direction: column; gap: .75rem; }

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.marks i {
  display: block;
  width: 15px;
  height: 15px;
  background: var(--ink);
}
.marks i.hollow {
  background: transparent;
  border: 2px solid var(--ink);
}

.cluster-cap {
  margin: 0;
  font: 400 .7rem/1.35 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cluster-cap b { color: var(--ink); font-weight: 600; }

.tally-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 2rem 0 0;
  font: 400 .7rem/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tally-legend i {
  display: block;
  width: 13px;
  height: 13px;
  background: var(--ink);
}
.tally-legend i.hollow { background: transparent; border: 2px solid var(--ink); }
.tally-legend span { margin-right: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }

/* =========================================================================
   THE INDEX — a full-width tracklist. No boxes, no cells, no fills.
   ========================================================================= */
.index { padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(4.5rem, 12vh, 8rem); }

.huge {
  margin: .75rem 0 0;
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.028em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}

.section-intro {
  margin: 1.5rem 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.grp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(2.6rem, 5vw, 4rem) 0 0;
  padding: .9rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 .78rem/1.3 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.grp:first-of-type { margin-top: 2.6rem; }
.grp b { font-weight: 600; letter-spacing: .1em; }

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

.item {
  display: flex;
  align-items: baseline;
  gap: .35rem clamp(1rem, 2vw, 1.75rem);
  padding: 1.05rem .95rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--dur) linear, color var(--dur) linear;
}

.item:hover,
.item:focus-visible {
  background: var(--ink);
  color: var(--on-ink);
  outline-offset: -3px;
}

.item-n {
  flex: 0 0 3.4rem;
  font: 500 .78rem/1.7 var(--mono);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.item:hover .item-n,
.item:focus-visible .item-n { color: var(--on-ink); }

.item-name {
  flex: 0 0 auto;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 1;
}

.ext {
  display: inline-block;
  margin-left: .3em;
  font-size: .5em;
  vertical-align: .42em;
  opacity: .5;
  transition: transform var(--dur) var(--ease-out);
}
.item:hover .ext,
.item:focus-visible .ext { opacity: .85; transform: translate(.12em, -.12em); }

.item-desc {
  flex: 0 1 auto;
  min-width: 14ch;
  max-width: 60ch;
  color: var(--ink-3);
  font-size: .98rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.item:hover .item-desc,
.item:focus-visible .item-desc { color: #dedede; }

.item-lang {
  flex: 0 0 auto;
  margin-left: auto;
  font: 500 .72rem/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.item-self {
  font-size: .52em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}
.item-desc:empty::before {
  content: "\2014";
  color: var(--ink-4);
}
.item:hover .item-lang,
.item:focus-visible .item-lang { color: #dedede; }
.item:hover .item-self,
.item:focus-visible .item-self { color: #dedede; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about { padding-block: clamp(3rem, 8vh, 6rem); }

.prose {
  max-width: var(--measure);
  margin-top: 1.75rem;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }

.pull {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.34;
  font-style: italic;
  color: var(--ink);
}

.facts {
  max-width: var(--measure);
  margin: 2.25rem 0 0;
  padding-top: 1.3rem;
  border-top: 3px solid var(--line);
  display: grid;
  gap: .7rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}
.facts dt {
  font: 500 .7rem/1.5 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
}
.facts a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.facts a:hover { color: var(--accent); }

/* =========================================================================
   SAY HELLO — a full-bleed field of the one spot ink.
   ========================================================================= */
.hello {
  background: var(--accent);
  color: var(--on-accent);
  padding-block: clamp(3.5rem, 10vh, 7rem) clamp(2.4rem, 6vh, 4rem);
}
.hello .kicker { color: var(--on-accent); }

.hello h2 {
  margin: .7rem 0 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--on-accent);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}

.hello-lead {
  margin: 1.6rem 0 0;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--on-accent);
}

.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.6rem;
}
.mail a {
  font-size: clamp(1.6rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--on-accent);
  text-decoration: none;
  border-bottom: 4px solid rgba(255, 255, 255, .45);
  overflow-wrap: anywhere;
}
.mail a:hover { border-bottom-color: var(--on-accent); }
.mail a:focus-visible { outline-color: var(--on-ink); }

.copy {
  font: 600 .74rem/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--on-accent);
  color: var(--accent);
  border: 2px solid var(--on-accent);
  padding: .78rem 1rem;
  cursor: pointer;
  transition: background var(--dur) linear, color var(--dur) linear;
}
.copy:hover { background: transparent; color: var(--on-accent); }
.copy[data-copied="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.copy:focus-visible { outline-color: var(--on-ink); }

.hello-alt {
  margin: 2.25rem 0 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}
.hello-alt a {
  color: var(--on-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.hello-alt a:hover { text-decoration-thickness: 3px; }
.hello-alt a:focus-visible { outline-color: var(--on-ink); }

/* =========================================================================
   COLOPHON
   ========================================================================= */
.colophon {
  background: var(--ink);
  color: #c9c9c4;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}
.colophon p { margin: 0; max-width: var(--measure); font-size: .97rem; line-height: 1.6; }

.colophon .fine {
  margin-top: 1.4rem;
  font: 400 .76rem/1.8 var(--mono);
  letter-spacing: .08em;
  color: #8f8f8a;
}
.colophon a {
  color: #f2f2f0;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.colophon a:hover { color: var(--on-accent); text-decoration-color: var(--on-accent); }

/* =========================================================================
   NARROW SCREENS
   ========================================================================= */
@media (max-width: 900px) {
  .item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); }
  .item-n, .item-name, .item-desc, .item-lang {
    flex: none;
    margin-left: 0;
    min-width: 0;
    max-width: none;
  }
  .item-n { grid-column: 1; grid-row: 1; }
  .item-name { grid-column: 2; grid-row: 1; }
  .item-desc { grid-column: 2; grid-row: 2; margin-top: .3rem; }
  .item-lang { grid-column: 2; grid-row: 3; text-align: left; margin-top: .45rem; }
}

@media (max-width: 560px) {
  .marks { max-width: 100%; gap: 4px; }
  .marks i { width: 13px; height: 13px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* =========================================================================
   MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   PRINT — one black-on-white sheet, no colour fields, no 38 raw URLs.
   ========================================================================= */
@media print {
  :root {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
    --ink-2: #1a1a1a;
    --ink-3: #333;
    --ink-4: #555;
    --line: #000;
    --line-soft: #ccc;
    --accent: #000;
  }
  .skip, .copy, .mast-nav { display: none !important; }
  .mast { padding-block: .5rem; }

  .marks i, .grp { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  .hello {
    background: #fff;
    color: #000;
    padding-block: 1.4rem;
    border-top: 3px solid #000;
  }
  .hello .kicker, .hello h2, .hello-lead, .hello-alt,
  .mail a, .mail a:hover { color: #000; }
  .mail a { border-bottom-color: #000; }

  .colophon {
    background: #fff;
    color: #000;
    padding-block: 1.4rem;
    border-top: 3px solid #000;
  }
  .colophon p, .colophon .fine, .colophon a { color: #000; }

  .item:hover, .item:focus-visible { background: transparent; color: var(--ink); }
  .item:hover .item-desc, .item:hover .item-lang, .item:hover .item-n { color: var(--ink-3); }

  .item, .grp, .tally { break-inside: avoid; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .72em;
    color: #555;
    word-break: break-all;
  }
  .index a.item::after, .colophon .fine a::after { content: ""; }
}
