/* ucan.build: one stylesheet.
   Type scale: steps of sqrt(phi) = 1.272 from 16px (t-7 = 86.2px for the home headline).
   Spacing: 16 / 26 / 42 / 68 / 110 (phi steps). */
:root {
  --ground: #FBFBF9;
  --ink: #161614;
  --ink-soft: #3d3d39;
  --muted: #6b6b66;
  --hair: #DDDCD6;
  --dark: #1c1c1a;
  --red: #B3261E;
  --yellow: #F4D93A;

  --t-2: 12.6px;
  --t-0: 16px;
  --t-1: 20.4px;
  --t-2x: 25.9px;
  --t-3: 32.9px;
  --t-4: 41.9px;
  --t-5: 53.3px;
  --t-6: 67.8px;
  --t-7: 86.2px;

  --s-1: 16px;
  --s-2: 26px;
  --s-3: 42px;
  --s-4: 68px;
  --s-5: 110px;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-0);
  line-height: 1.618;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2 { font-family: var(--sans); font-weight: 800; margin: 0; text-transform: uppercase; }

.col { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px var(--s-3); padding: var(--s-2) 0;
  font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hair);
}
.nav a { text-decoration: none; }
.nav__links { display: flex; gap: var(--s-2); }
.wordmark { font-weight: 800; font-size: var(--t-0); letter-spacing: -0.01em; }
.wordmark .dot { color: var(--red); }

/* Intro (home) */
.intro { padding: var(--s-3) 0 var(--s-4); }
.bar { width: 42px; height: 3px; background: var(--red); }
.bar--light { background: #FF6B5E; }
.intro h1 { margin-top: var(--s-2); font-size: var(--t-7); line-height: 1; letter-spacing: -0.02em; }
.intro .red { color: var(--red); }
.intro h1 { white-space: nowrap; }
.intro .rot { display: inline-block; font-family: var(--serif); font-weight: 400; font-size: 1.08em; letter-spacing: -0.01em; text-transform: none; }
.intro .bigdot { display: inline-block; width: 0.24em; height: 0.24em; margin: 0 0.07em 0 0.04em; background: currentColor; }
.lead { margin: var(--s-3) 0 0; font-size: var(--t-1); line-height: 1.618; color: var(--ink-soft); }

/* Strips (home) */
.strip {
  display: block; position: relative; height: 420px; overflow: hidden;
  margin-top: var(--s-1); background: var(--dark); color: var(--ground); text-decoration: none;
}
.strip:hover { color: var(--ground); }
.strip.strip--bare { height: auto; padding-top: var(--s-3); }
.strip--bare .strip__shade { display: none; }
.strip--bare .strip__text { position: static; padding-bottom: var(--s-3); }
.strip__img, .hero__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.08);
}
.strip__shade, .hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,0.86), rgba(10,10,9,0.08) 70%);
}
.strip__text, .hero__text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: var(--s-3); }
.strip h2 { margin-top: var(--s-1); font-size: var(--t-4); line-height: 1.05; letter-spacing: -0.015em; color: var(--ground); }
.byline { font-style: italic; font-size: var(--t-1); line-height: 1.3; color: #E6E5DF; margin-top: 12px; }
.strip p { margin: var(--s-1) 0 0; max-width: 520px; color: #E6E5DF; }
.label {
  display: inline-block; padding: 3px 9px; background: var(--ground); color: var(--red);
  font-family: var(--sans); font-weight: 500; font-size: var(--t-2);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
}
.label--derivative { background: var(--yellow); }
.caption { margin: 10px 0 0; font-family: var(--sans); font-size: var(--t-2); line-height: 1.4; color: var(--muted); }

/* Piece page */
.hero { position: relative; height: 640px; overflow: hidden; background: var(--dark); color: var(--ground); }
.hero h1 { margin-top: var(--s-2); font-size: var(--t-6); line-height: 1; letter-spacing: -0.02em; color: var(--ground); }
.byline--big { font-size: var(--t-2x); }
.body { padding-top: var(--s-4); padding-bottom: var(--s-5); }
.status {
  font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
}
.lineage { margin-top: 6px; font-family: var(--sans); font-size: var(--t-2); color: var(--muted); }
.lead-piece { margin: var(--s-1) 0 0; font-size: var(--t-2x); line-height: 1.3; }
.fields { margin: var(--s-3) 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 2px var(--s-1); padding: 10px 0; border-top: 1px solid var(--hair); }
.row dt { flex: 0 0 160px; margin: 0; font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.04em; color: var(--muted); }
.row dd { flex: 1 1 240px; margin: 0; }
.sub { margin-top: var(--s-4); font-size: var(--t-1); line-height: 1.3; letter-spacing: -0.01em; }
.txt { margin: 10px 0 0; color: var(--ink-soft); }
.derivs { margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--ink); }
.meta { font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rel { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-1); text-decoration: none; }
.rel__img { flex: 0 0 68px; height: 68px; background: var(--hair) center/cover no-repeat; filter: grayscale(1) contrast(1.08); }
.rel__why { display: block; font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.rel__title { display: block; font-size: var(--t-1); line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rel__by { display: block; margin-top: 0; color: var(--muted); font-size: var(--t-0); }

/* Sections (home, pages) */
.section { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.section h2 { font-size: var(--t-2x); line-height: 1.2; letter-spacing: -0.02em; }
.excluded { padding: var(--s-1) 0; margin-top: var(--s-1); border-top: 1px solid var(--hair); }
.excluded__name { font-size: var(--t-1); line-height: 1.3; }
.excluded__reason { margin-top: 4px; color: var(--ink-soft); }
.steps { margin: var(--s-1) 0 0; padding-left: 1.3em; }
.steps li { margin-top: 6px; }
.steps__note { margin-top: var(--s-1); font-family: var(--sans); font-size: var(--t-2); color: var(--muted); }
.book__by { color: var(--muted); font-size: var(--t-0); margin-top: 2px; }
.book__get { margin-top: 6px; font-family: var(--sans); font-size: var(--t-2); }
.page { padding-top: var(--s-4); padding-bottom: var(--s-5); }
.page__title { font-size: var(--t-5); line-height: 1; letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.page p { margin: var(--s-1) 0 0; color: var(--ink-soft); }
.page p:first-of-type { font-size: var(--t-1); color: var(--ink); }
.page strong { color: var(--ink); font-weight: 500; }

.footer {
  padding-top: var(--s-3); padding-bottom: var(--s-4);
  font-family: var(--sans); font-size: var(--t-2); color: var(--muted);
}

@media (max-width: 520px) {
  .intro h1, .hero h1 { font-size: var(--t-4); }
  .intro h1 { font-size: min(var(--t-6), 17vw); }
  .page__title { font-size: min(var(--t-3), 7.4vw); }
  .strip { height: 380px; }
  .hero { height: 520px; }
}

.tags, .receipts { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 8px; border: 1px solid var(--hair); font-family: var(--sans); font-size: var(--t-2); letter-spacing: 0.04em; color: var(--muted); }
.receipts { margin-top: 10px; }
.receipts li { padding: 4px 0; font-family: var(--sans); font-size: var(--t-2); }

/* Designers */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 68px; height: 68px; border-radius: 50%; background: var(--ink) center/cover no-repeat;
  color: var(--ground); font-family: var(--sans); font-weight: 800; font-size: var(--t-1); letter-spacing: 0.02em;
  filter: grayscale(1) contrast(1.08);
}
.avatar--big { width: 178px; height: 178px; font-size: var(--t-5); }
.makers { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-3); }
.maker { display: flex; align-items: center; gap: var(--s-1); min-height: 68px; text-decoration: none; }
.maker__name { display: block; font-family: var(--sans); font-weight: 800; font-size: var(--t-0); text-transform: uppercase; letter-spacing: -0.01em; }
.maker__meta { display: block; font-family: var(--sans); font-size: var(--t-2); color: var(--muted); }
.designer .page__title { margin: var(--s-2) 0 10px; }
.designer .meta { margin-bottom: var(--s-2); }

/* Secondary images on a piece page: builds, variants, details */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-1); margin-top: var(--s-3); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.08); }
