@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/bigshoulders-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Melodrama";
  src: url("../fonts/melodrama-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0B0B12;
  --paper: #fff;
  --fg: #F4F2FF;
  --accent: #7B3F6E;
  --wash: rgba(11, 11, 18, .62);
}

* { box-sizing: border-box; margin: 0; padding: 0 }

html { scroll-behavior: smooth }

body {
  background: var(--accent);
  color: var(--ink);
  font-family: "Big Shoulders", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}

/* the same film grain the portfolio uses, so the page feels printed on the same paper */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.5 -0.5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 66px) clamp(18px, 4vw, 44px) 0;
}

/* ---------- masthead ---------- */

.head { position: relative; padding-bottom: clamp(26px, 3vw, 44px) }

.spark {
  position: absolute;
  right: 0;
  top: 2px;
  width: clamp(46px, 6vw, 82px);
  height: auto;
  fill: var(--fg);
  opacity: .95;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 16px 7px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

h1 {
  font-family: "Melodrama", "Big Shoulders", serif;
  font-weight: 500;
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: .92;
  letter-spacing: -.015em;
  margin-top: 20px;
  color: var(--fg);
  text-wrap: balance;
}

h1 .thin {
  display: block;
  font-family: "Big Shoulders", sans-serif;
  font-weight: 700;
  font-size: .34em;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 14px;
  line-height: 1.2;
}

/* live badge: the same chip the work cards use */
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 12px 4px;
  margin-left: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: "Big Shoulders", sans-serif;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.5;
  vertical-align: 2px;
  opacity: 1;
  transition: background .2s, color .2s;
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7CE38B;
  flex: 0 0 auto;
  transition: background .2s;
}

.live:hover, .live:focus-visible {
  background: var(--fg);
  color: var(--ink);
  outline: none;
}

.live:hover::before, .live:focus-visible::before { background: #1F9D4D }

/* ---------- cover ---------- */

.cover {
  position: relative;
  margin-bottom: clamp(30px, 4vw, 52px);
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-.5deg);
}

.cover img { display: block; width: 100%; height: auto }

/* ---------- meta cells ---------- */

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.cell {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 6px 6px 0 var(--ink);
}

.cell dt {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

.cell dd {
  margin-top: 5px;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.25;
}

/* ---------- paper panels ---------- */

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 40px);
  box-shadow: 10px 10px 0 var(--ink);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

h2 {
  font-family: "Melodrama", "Big Shoulders", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}

h2::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--ink);
}

.card p {
  margin-top: 14px;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.62;
  color: #23232c;
  max-width: 62ch;
}

/* ---------- stack ---------- */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}

.stack li {
  background: var(--accent);
  color: var(--fg);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px 8px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- foot ---------- */

.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  opacity: .8;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 18px 4px 0;
}

.foot::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: currentColor;
  opacity: .35;
}

@media (max-width: 720px) {
  .meta { grid-template-columns: 1fr }
  .cover { box-shadow: 8px 8px 0 var(--ink); transform: none }
  .card { box-shadow: 7px 7px 0 var(--ink) }
  .spark { width: 40px }
}

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