/* chipsterling.com — one page, drawn in the show's own palette (overnight
   assets/show-palette.yaml). Pixel art is shown only at whole-number scales
   (the avatar is 100 logical px ×8) so no pixel blurs into a colour the show
   does not own; Silkscreen is set on its 8px grid (16 / 32 / 48). */

@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/Silkscreen-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #302c2e;   /* 11 warm near-black: the page */
  --plum: #39314b;    /* 21 dark purple: the chyron */
  --dusk: #564064;    /* 22 purple: the portrait's shadow */
  --desk: #5a5353;    /* 12 dark warm grey: rules */
  --haze: #a0938e;    /* 14 warm grey: quiet text */
  --bone: #cfc6b8;    /* 15 pale grey: body text */
  --cream: #f4cca1;   /*  6 pale cream: strong text */
  --orange: #f47e1b;  /* 27 persimmon: the accent */
  --gold: #f4b41b;    /* 26 gold: hover */
  --red: #a93b3b;     /* 29 deep red: the button's shadow */
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* The anchor master's sunset, top to bottom, as hard bands. */
.sky {
  display: flex;
  justify-content: center;
  padding: 32px 16px 0;
  background: linear-gradient(to bottom,
    #39314b 0 22%,
    #a0938e 22% 26%,
    #827094 26% 31%,
    #8e478c 31% 38%,
    #eea160 38% 50%,
    #f47e1b 50% 60%,
    #e6482e 60% 67%,
    #8aebf1 67% 84%,
    #7d7071 84% 85%,
    #a0938e 85% 100%);
}

.portrait {
  display: block;
  width: 200px;
  height: 200px;
  margin-bottom: -56px;
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
  box-shadow: 0 0 0 4px var(--night), 12px 12px 0 4px var(--dusk);
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.chyron {
  background: var(--plum);
  border-top: 8px solid var(--orange);
  padding: 80px 24px 24px;
  text-align: center;
}

h1, h2, .tag, .btn, .handle {
  font-family: "Silkscreen", ui-monospace, monospace;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--orange);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.tag {
  margin: 8px 0 0;
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 1px;
}
/* On a phone the tagline breaks between its three phrases, never inside one. */
.tag span { white-space: nowrap; }

.lede {
  margin: 32px 0 0;
  color: var(--cream);
  font-size: 20px;
}

h2 {
  margin: 40px 0 16px;
  color: var(--orange);
  font-size: 16px;
  letter-spacing: 1px;
}

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.watch {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--night);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--red);
}
.btn:hover { background: var(--gold); color: var(--night); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:focus-visible, a:focus-visible { outline: 4px solid var(--cream); outline-offset: 4px; }

.handle {
  margin: 16px 0 0;
  color: var(--haze);
  font-size: 16px;
}

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 4px solid var(--desk);
  color: var(--haze);
  font-size: 15px;
}
footer a { color: var(--bone); }

@media (min-width: 640px) {
  .sky { padding-top: 48px; }
  .portrait { width: 300px; height: 300px; margin-bottom: -80px; }
  .chyron { padding-top: 112px; }
  h1 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}
