/* The page is his desk: chocolate, with a rust band. The drawings stay on their own
   cream paper, as sheets lying on it. Locked by Justine, October 13, 2026. */

:root {
  /* Paper: fixed by the drawings (scripts/prepare-pictures.py matches every picture to it). */
  --sheet: #FAEEDA;
  --sheet-ink: #211D1F;
  --sheet-muted: #5F5C63;
  --type: "Special Elite", "Courier New", monospace;
  --text: "Libre Caslon Text", Georgia, serif;
}

/* Chocolate desk, rust band. */
:root {
  --desk: #2E1E16;
  --ink: #FAEEDA;
  --muted: #CDBBA5;
  --rule: rgba(250, 238, 218, .2);
  --accent: #A44E26;
  --on-accent: #FFF6E6;
  --accent-text: #E9A77C;
  --band: #8F4A22;
  --band-text: #FAEEDA;
  --key: #FAEEDA;
  --key-text: #211D1F;
  --ghost: url("assets/watching-ink.webp");
  --ghost-strength: .45;
  --sheet-shadow: 0 22px 34px -20px rgba(0, 0, 0, .75);
  --tilt: 1;
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
.privacy-settings { font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.cookie-notice { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; z-index: 100; padding: 20px; background: var(--sheet); color: var(--sheet-ink); border: 2px solid var(--sheet-ink); box-shadow: 0 4px 24px #0005; font-size: 14px; }
.cookie-notice p { margin: 0 0 12px; }
.cookie-notice p:first-child { font-family: var(--type); font-size: 20px; }
.cookie-notice a { color: inherit; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions button { flex: 1; padding: 12px; border: 1px solid var(--sheet-ink); background: var(--sheet); color: var(--sheet-ink); font: inherit; cursor: pointer; }
.cookie-actions button:focus-visible, .privacy-settings:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.privacy-page { max-width: 760px; padding: 60px 24px; margin: auto; }
.privacy-page h1 { font-size: clamp(32px, 6vw, 56px); }
.privacy-page h2 { font-size: 24px; margin-top: 32px; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 19px/1.65 var(--text);
}
.desk { background: var(--desk); }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .typed, .wordmark, nav, .button, .typed-line, .steps {
  font-family: var(--type);
  font-weight: 400;
}
h1 { font-size: clamp(52px, 9vw, 116px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.35; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.button:focus-visible { outline-color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
.button {
  display: inline-block;
  max-width: 100%;
  padding: 15px 20px 12px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.aside-line { font-style: italic; }
.measure { max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }


/* Header. Phone: the name and the shop button share the first row, the three links sit under them. */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 12px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.wordmark { color: var(--ink); font-size: 21px; line-height: 1.4; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; flex-basis: 100%; order: 3; font-size: 17px; }
nav > a { color: var(--ink); }
.header-shop { padding: 11px 13px 8px; font-size: 15px; }

/* Hero. The portrait sits on a round of his own paper, ringed like a typewriter key. */
.hero { display: grid; gap: 28px; align-items: center; padding-block: 44px 80px; }
.hero-copy { min-width: 0; }
.portrait-key {
  grid-row: 1;
  justify-self: center;
  width: 74%;
  aspect-ratio: 1;
  padding: 3.5%;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: 0 0 0 7px var(--desk), 0 0 0 9px var(--accent-text);
}
.portrait-key img { width: 100%; border-radius: 50%; }
.typed-line { margin-block: 26px 18px; font-size: clamp(23px, 3vw, 32px); line-height: 1.4; min-height: 1.4em; white-space: nowrap; }
.caret { display: inline-block; width: .48em; height: .9em; margin-left: .15em; background: var(--accent-text); vertical-align: -.06em; }
.caret.blink { animation: caret-blink .65s step-end 3; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-intro { max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 28px; }
.hero-actions > .typed { font-size: 18px; }

/* Headings that type themselves in: the letters not yet typed keep their place, unseen. */
[data-typed] .untyped { visibility: hidden; }

/* Shirts: each drawing is a sheet of his paper lying on the desk, not quite straight. */
.shirts { padding-block: 8px 104px; }
.shirt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 32px; margin-top: 36px; }
.sheet {
  padding: 14px 20px 26px;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow: var(--sheet-shadow);
  transform: rotate(calc(var(--lean, 0deg) * var(--tilt)));
  transition: transform .22s ease-out;
}
.sheet:nth-child(6n + 1) { --lean: -1.1deg; }
.sheet:nth-child(6n + 2) { --lean: .7deg; }
.sheet:nth-child(6n + 3) { --lean: -.5deg; }
.sheet:nth-child(6n + 4) { --lean: .9deg; }
.sheet:nth-child(6n + 5) { --lean: -.8deg; }
.sheet:nth-child(6n + 6) { --lean: .6deg; }
@media (hover: hover) {
  .sheet:hover { transform: rotate(0deg) translateY(-6px); }
}
.sheet img { width: 100%; margin-bottom: 14px; }
.sheet h3 { margin-bottom: 12px; }
.sheet .muted, .sheet .shop-status { color: var(--sheet-muted); }
.sheet .aside-line { font-size: 17px; }
.shop-status { margin-top: 16px; font-size: 15px; }
.shop-status a { color: var(--sheet-ink); }
.drawing {
  /* Feather the outer edge of each picture so a one-shade difference in paper never shows. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

/* The band is a window. The faint portrait is pinned to the screen and clipped to the band,
   so he stays put while the words scroll past. One fixed layer, no scroll scripting. */
.how-band {
  position: relative;
  clip-path: inset(0);
  background: var(--band, #8F4A22);
  color: var(--band-text, #FAEEDA);
  padding-block: 84px;
}
.watching {
  position: fixed;
  inset: 0;
  z-index: -1;
  height: 100lvh;
  pointer-events: none;
  background: var(--ghost, url("assets/watching-ink.webp")) center / auto min(72lvh, 118vw) no-repeat;
  opacity: calc(var(--ghost-strength, .5) * .6);
}
.how-band h2 { font-size: clamp(26px, 2.5vw, 32px); }
.band-saying { max-width: 28ch; margin-block: 28px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.2; }
.steps { display: grid; gap: 28px; margin: 52px 0 40px; padding: 0; list-style: none; counter-reset: step; font-size: 23px; line-height: 1.5; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px; align-items: center; padding-left: 5px; }
/* Numbered like typewriter keys: a disc with a ring. */
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-top: 5px;
  border-radius: 50%;
  background: var(--key, #FAEEDA);
  box-shadow: 0 0 0 3px var(--band, #8F4A22), 0 0 0 5px var(--key, #FAEEDA);
  color: var(--key-text, #211D1F);
  font-size: 23px;
  line-height: 1;
}

/* About and say hello. */
.closing { display: grid; gap: 72px; padding-block: 88px 96px; }
.about .measure { margin-top: 26px; }
.about .aside-line { margin-top: 20px; }
.hello > p { margin-top: 26px; }
.contact-address { margin-block: 26px 30px; overflow-wrap: anywhere; }

.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 28px 36px; border-top: 1px solid var(--rule); }
.site-footer p { max-width: 60ch; font-size: 14px; color: var(--muted); }

@media (min-width: 600px) {
  .wrap { width: min(1120px, calc(100% - 64px)); }
  .shirt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .site-header { gap: 24px 32px; padding-block: 28px; }
  .wordmark { font-size: 23px; }
  nav { flex-basis: auto; order: 0; margin-left: auto; gap: 16px 24px; }
  .header-shop { padding: 15px 20px 12px; font-size: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 42%; gap: 40px; padding-block: 72px 112px; }
  .portrait-key { grid-row: auto; width: 100%; }
  .shirt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 40px; }
  .watching { background-position: right 3vw center; background-size: auto min(84lvh, 760px); opacity: var(--ghost-strength, .45); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .closing { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .caret.blink { animation: none; }
  .sheet { transition: none; }
}
@media print {
  [data-typed] .untyped { visibility: visible; }
}
