/* ==========================================================================
   THE ARTIST PAIGE — shared system (Paige Hashman Art)
   A blank page isn't empty. Primer white, plum-black ink, colour that
   arrives as an event, hard shadows with a light source.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2-variations"),
       url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Marker";
  src: url("../fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the page */
  --primer: #f2f2ee;
  --primer-2: #e4e4dc;
  --ink: #160b22;
  --ink-soft: #6b6577;

  /* the paint (pulled from her work) */
  --red: #e8261c;
  --cobalt: #2448e6;
  --halo: #ffc824;
  --pink: #ff3e8a;
  --jungle: #13a04e;
  --violet: #6a2be0;
  --teal: #12bfae;
  --red-deep: #cc1c13;   /* red for small text: 5:1 on primer */
  --pink-ink: #c8125b;   /* pink for small text: 5:1 on primer */

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --hand: "Marker", "Comic Sans MS", "Chalkboard SE", cursive;

  /* motion: swung, never linear */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --beat: 430ms; /* ~140 bpm */

  --gutter: clamp(16px, 4.5vw, 64px);
  --measure: 36rem;
  --focus: var(--cobalt);

  --fs-small: .875rem;
  --fs-body: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-lead: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --fs-h2: clamp(2.6rem, 1.6rem + 4.4vw, 5.5rem);
  --fs-h1: clamp(3.6rem, 2rem + 8vw, 10rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  background: var(--primer);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.58;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* the wall has tooth: a whisper of grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.04 0 0 0 0 0.13 0 0 0 1.4 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--halo); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 1100;
  padding: .6em 1em;
  background: var(--halo);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.15; }

/* ---------- wordmark: BLANK is a blank (it still casts a shadow), PAIGE is paint ---------- */
.wm {
  --lx: .62;
  --ly: .78;
  --step: clamp(1px, .22vw, 3.2px);
  --stroke: .028em;
  display: inline-flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 900;
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.wm__row { display: block; white-space: nowrap; }
.wm__blank, .wm__hollow { color: var(--primer); -webkit-text-stroke: var(--stroke) var(--ink); paint-order: stroke fill; }
/* "THE ARTIST" sits over PAIGE at half size, so the two rows share a width */
.wm__small { font-size: .515em; letter-spacing: .02em; line-height: .86; }
.wm__paige { color: var(--red); -webkit-text-stroke: var(--stroke) var(--ink); paint-order: stroke fill; }
.wm--shadow .wm__row {
  text-shadow:
    calc(var(--lx) * var(--step) * 1)  calc(var(--ly) * var(--step) * 1)  0 var(--ink),
    calc(var(--lx) * var(--step) * 2)  calc(var(--ly) * var(--step) * 2)  0 var(--ink),
    calc(var(--lx) * var(--step) * 3)  calc(var(--ly) * var(--step) * 3)  0 var(--ink),
    calc(var(--lx) * var(--step) * 4)  calc(var(--ly) * var(--step) * 4)  0 var(--ink),
    calc(var(--lx) * var(--step) * 5)  calc(var(--ly) * var(--step) * 5)  0 var(--ink),
    calc(var(--lx) * var(--step) * 6)  calc(var(--ly) * var(--step) * 6)  0 var(--ink),
    calc(var(--lx) * var(--step) * 7)  calc(var(--ly) * var(--step) * 7)  0 var(--ink),
    calc(var(--lx) * var(--step) * 8)  calc(var(--ly) * var(--step) * 8)  0 var(--ink),
    calc(var(--lx) * var(--step) * 9)  calc(var(--ly) * var(--step) * 9)  0 var(--ink),
    calc(var(--lx) * var(--step) * 10) calc(var(--ly) * var(--step) * 10) 0 var(--ink),
    calc(var(--lx) * var(--step) * 11) calc(var(--ly) * var(--step) * 11) 0 var(--ink),
    calc(var(--lx) * var(--step) * 12) calc(var(--ly) * var(--step) * 12) 0 var(--ink),
    calc(var(--lx) * var(--step) * 13) calc(var(--ly) * var(--step) * 13) 0 var(--ink),
    calc(var(--lx) * var(--step) * 14) calc(var(--ly) * var(--step) * 14) 0 var(--ink);
}
.wm .l { display: inline-block; transition: color .3s var(--ease-out); }

/* ---------- stickers (buttons and links that act like buttons) ---------- */
.sticker {
  --bg: var(--halo);
  --fg: var(--ink);
  --rot: -1.5deg;
  --sh: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .5em 1.05em .55em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--fg);
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: 5px 5px 0 var(--sh);
  transform: rotate(var(--rot));
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--ease-pop), box-shadow .28s var(--ease-pop), background-color .2s;
}
.sticker:hover {
  transform: rotate(calc(var(--rot) * -1)) translate(-2px, -3px);
  box-shadow: 8px 9px 0 var(--sh);
  text-decoration: none;
}
.sticker:active {
  transform: rotate(0deg) translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--sh);
  transition-duration: .07s;
}
.sticker--pink   { --bg: var(--pink); }
.sticker--jungle { --bg: var(--jungle); }
.sticker--teal   { --bg: var(--teal); }
.sticker--cobalt { --bg: var(--cobalt); --fg: var(--primer); }
.sticker--violet { --bg: var(--violet); --fg: var(--primer); }
.sticker--paper  { --bg: var(--primer); }
.sticker--ink    { --bg: var(--ink); --fg: var(--primer); --sh: var(--halo); }
.sticker--small  { font-size: 1.05rem; min-height: 40px; padding: .4em .8em .45em; }
.sticker[disabled] { opacity: .55; cursor: progress; }

/* strips of masking tape */
.tape {
  position: absolute;
  width: 74px;
  height: 24px;
  background: rgba(244, 236, 200, .82);
  box-shadow: 0 1px 0 rgba(22, 11, 34, .12);
  clip-path: polygon(3% 8%, 97% 0, 100% 92%, 0 100%);
  pointer-events: none;
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--gutter);
  pointer-events: none;
  transition: transform .45s var(--ease-out);
}
.site-head > * { pointer-events: auto; }
.site-head.is-hidden { transform: translateY(-130%); }

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 10px 7px;
  background: var(--primer);
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transform: rotate(-1.2deg);
  transition: transform .3s var(--ease-pop);
}
.logo:hover { transform: rotate(1deg) scale(1.03); }
.logo__halo { width: 26px; height: 15px; margin-bottom: 9px; flex: none; }
.logo__halo path { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.logo .wm { font-size: 1.7rem; flex-direction: row; gap: .2em; line-height: .9; --stroke: .045em; }
.logo .wm__the { color: var(--ink); }

.nav__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  display: inline-block;
  padding: .3em .7em .36em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: var(--primer);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transform: rotate(var(--r, 0deg));
  transition: transform .28s var(--ease-pop), box-shadow .28s var(--ease-pop), background-color .2s;
}
.nav__list li:nth-child(1) a { --r: 1.4deg; }
.nav__list li:nth-child(2) a { --r: -1.8deg; }
.nav__list li:nth-child(3) a { --r: 1deg; }
.nav__list a:hover { transform: rotate(calc(var(--r) * -1.4)) translateY(-3px); box-shadow: 6px 7px 0 var(--ink); }
.nav__list a[aria-current="page"] { background: var(--halo); }
.nav__list li:nth-child(1) a[aria-current="page"] { background: var(--jungle); }
.nav__list li:nth-child(2) a[aria-current="page"] { background: var(--pink); }
.nav__list li:nth-child(3) a[aria-current="page"] { background: var(--halo); }

.nav__toggle {
  display: none;
  min-height: 44px;
  padding: .3em .8em .36em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: var(--halo);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1.5deg);
}

@media (max-width: 720px) {
  .logo .wm { font-size: 1.45rem; }
  .nav__toggle { display: inline-block; position: relative; z-index: 2; }
  .nav__list {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3vh;
    padding: 90px var(--gutter) 60px;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transition: opacity .25s var(--ease-out); }
  .nav__list a {
    font-size: clamp(3.4rem, 19vw, 6rem);
    font-weight: 900;
    padding: .08em .3em .12em;
    box-shadow: 7px 7px 0 var(--halo);
    border-color: var(--primer);
    opacity: 0;
    transform: translateY(30px) rotate(var(--r));
  }
  .nav.is-open .nav__list a {
    opacity: 1;
    transform: rotate(var(--r));
    transition: transform .5s var(--ease-pop) var(--d, 0ms), opacity .2s var(--d, 0ms);
  }
  .nav__list li:nth-child(1) a { --d: 60ms; background: var(--jungle); }
  .nav__list li:nth-child(2) a { --d: 200ms; background: var(--pink); }
  .nav__list li:nth-child(3) a { --d: 260ms; background: var(--halo); }
  .nav.is-open .nav__toggle { background: var(--primer); }
}

/* ---------- footer ---------- */
.site-foot {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 40px;
  background: var(--ink);
  color: var(--primer);
  --focus: var(--halo);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px 48px;
  align-items: end;
  max-width: 1320px;
  margin: 0 auto;
}
.foot__mark { font-size: clamp(3.2rem, 10vw, 7.5rem); --stroke: .02em; }
.foot__mark .wm__blank, .foot__mark .wm__hollow { color: var(--ink); -webkit-text-stroke-color: var(--primer); }
.foot__mark .wm__small { -webkit-text-stroke-width: .05em; }
.foot__mark .wm__paige { -webkit-text-stroke-color: var(--primer); }
.foot__line { margin-top: 18px; max-width: 30rem; color: #d7d3df; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; }
.foot__links a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.foot__links a:hover { border-color: var(--halo); }
.foot__small { grid-column: 1 / -1; padding-top: 24px; border-top: 2px solid #3a2f47; color: #a59eb3; font-size: var(--fs-small); }
@media (max-width: 720px) {
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- page wipe: a roller of colour between pages ---------- */
.wipe {
  position: fixed;
  top: -4vh;
  bottom: -4vh;
  left: -14vw;
  width: 128vw;
  z-index: 1000;
  pointer-events: none;
  background: var(--wipe, var(--red));
  transform: translateX(-112%);
  clip-path: polygon(
    4% 0, 100% 0, 98.6% 6%, 100% 13%, 99% 22%, 100% 31%, 98.4% 40%, 100% 49%, 98.8% 58%, 100% 67%, 98.5% 77%, 100% 86%, 99% 94%, 100% 100%,
    4% 100%, 2% 93%, 3.6% 85%, 1.4% 76%, 3.2% 66%, 0 57%, 2.8% 48%, .8% 39%, 3.4% 30%, 1% 21%, 3.2% 12%, .6% 5%);
}
html.is-leaving .wipe { animation: wipe-cover .4s var(--ease-in) forwards; }
html.wipe-in .wipe { transform: translateX(0); animation: wipe-reveal .62s var(--ease-out) 1.1s forwards; }
html.wipe-in.wipe-go .wipe { animation: wipe-reveal .62s var(--ease-out) forwards; }
@keyframes wipe-cover { from { transform: translateX(-112%); } to { transform: translateX(0); } }
@keyframes wipe-reveal { from { transform: translateX(0); } to { transform: translateX(112%); } }

/* ---------- reveal helper (used sparingly) ---------- */
.js [data-pop] { opacity: 0; transform: translateY(26px) rotate(var(--pr, -2deg)) scale(.96); }
.js [data-pop].is-in {
  opacity: 1;
  transform: none;
  transition: transform .7s var(--ease-pop) var(--d, 0ms), opacity .35s var(--ease-out) var(--d, 0ms);
}

/* ---------- annotations in marker ---------- */
.note {
  font-family: var(--hand);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--ink);
  transform: rotate(-4deg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-pop] { opacity: 1; transform: none; }
  html.wipe-in .wipe { display: none; }
}
