body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Layout: a studio wall. The top is a gessoed surface the visitor can paint on; below it, sheets of paper are taped up unevenly with pencil notes beside them. */
:root {
  --wall: #f3f2ee;
  --wall-shade: #e6e4dd;
  --ink: #16171a;
  --pencil: #6b6d72;
  --rule: #cfcdc5;
  --paper: #fbfaf6;
  --paper-edge: #dedbd1;
  --tape: rgba(226, 205, 120, .72);
  --mark: #2b3fb8;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Bradley Hand", "Segoe Print", cursive;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #141517; --wall-shade: #1c1e21; --ink: #ecebe6; --pencil: #9a9ca1; --rule: #33363b;
    --paper: #e9e6dc; --paper-edge: #bdb9ac; --tape: rgba(214, 190, 100, .8); --mark: #93a3ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #141517; --wall-shade: #1c1e21; --ink: #ecebe6; --pencil: #9a9ca1; --rule: #33363b;
  --paper: #e9e6dc; --paper-edge: #bdb9ac; --tape: rgba(214, 190, 100, .8); --mark: #93a3ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--wall); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.6;
}
.wrap { max-width: 78rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.hand { font-family: var(--hand); font-size: 1.5rem; line-height: 1.15; color: var(--pencil); }

/* Painted surface */
.surface { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); touch-action: pan-y; }
.surface canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.surface .wrap { position: relative; display: grid; gap: clamp(3rem, 12vw, 9rem); padding-block: 1.25rem clamp(2rem, 5vw, 3.5rem); pointer-events: none; }
.surface a, .surface button { pointer-events: auto; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; }
nav { display: flex; gap: 1.5rem; }
nav a { font-family: var(--hand); font-size: 1.75rem; line-height: 1; text-decoration: none; }
nav a:hover { color: var(--mark); }
.note { transform: rotate(-2deg); }
h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(5rem, 24vw, 19rem); line-height: .78; letter-spacing: -.045em; text-transform: lowercase;
}
h1 small {
  display: block; font-family: var(--hand); font-weight: 400; font-stretch: 100%; text-transform: none;
  font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 0; line-height: 1; color: var(--mark);
  margin: .1em 0 0 .12em; transform: rotate(-3deg); transform-origin: left center;
}
.under { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.under p { margin: 0; max-width: 30rem; }
.wipe {
  font-family: var(--hand); font-size: 1.5rem; line-height: 1; color: var(--pencil);
  background: none; border: 0; border-bottom: 1px dashed var(--pencil); padding: 0 0 .1rem; cursor: pointer;
}
.wipe:hover { color: var(--ink); }

section { padding-block: clamp(3rem, 8vw, 6.5rem); scroll-margin-top: 1rem; }
section + section { border-top: 1px solid var(--rule); }
h2 { margin: 0 0 clamp(2rem, 5vw, 3.5rem); font-family: var(--display); font-weight: 700; font-stretch: 75%; font-size: clamp(2.25rem, 6vw, 4rem); line-height: .95; letter-spacing: -.02em; text-transform: lowercase; text-wrap: balance; }
.todo { border-bottom: 1px dashed var(--pencil); color: var(--pencil); }

/* Sheets taped to the wall */
.pinned { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem); align-items: start; }
figure { margin: 0; grid-column: span 4; min-width: 0; transition: transform .3s ease; }
figure:nth-child(6n+1) { grid-column: span 5; transform: rotate(-1.4deg); }
figure:nth-child(6n+2) { grid-column: span 3; transform: rotate(1.1deg); margin-top: 4rem; }
figure:nth-child(6n+3) { grid-column: span 4; transform: rotate(-.5deg); margin-top: 1.5rem; }
figure:nth-child(6n+4) { grid-column: 2 / span 4; transform: rotate(1.6deg); }
figure:nth-child(6n+5) { grid-column: span 6; transform: rotate(-.8deg); margin-top: 3rem; }
figure:nth-child(6n) { grid-column: 4 / span 4; transform: rotate(.7deg); }
figure:hover { transform: rotate(0deg); }
.sheet {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: inherit; color: var(--pencil);
  background: var(--paper); box-shadow: 0 0 0 1px var(--paper-edge), 0 18px 30px -22px rgba(0,0,0,.55);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: -.7rem; width: 4.5rem; height: 1.4rem; background: var(--tape); z-index: 1;
}
.sheet::before { left: 8%; transform: rotate(-5deg); }
.sheet::after { right: 8%; transform: rotate(4deg); }
figure:nth-child(odd) .sheet::after { display: none; }
figure:nth-child(odd) .sheet::before { left: 50%; margin-left: -2.25rem; transform: rotate(2deg); }
.sheet img { display: block; width: 100%; height: auto; }
button.sheet { cursor: zoom-in; }
.blank { display: grid; place-items: center; padding: 1.25rem; color: #6b6d72; }
.blank span { border: 1px dashed #b9b6ab; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; padding: 1rem; }
figcaption { margin-top: .9rem; padding-left: .25rem; }
figcaption b { display: block; font-family: var(--text); font-weight: 500; font-style: italic; font-size: 1.125rem; color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 5rem); }
.split > * { min-width: 0; }
.split h2 { margin: 0; }
.prose { max-width: 36rem; display: grid; gap: 1.2rem; }
.prose p { margin: 0; }
.lead { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-style: italic; }
.reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.reach li { display: grid; gap: .1rem; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; }

dialog { border: 0; padding: 0; background: var(--paper); color: #16171a; width: min(94vw, 64rem); max-height: 94vh; overflow: auto; }
dialog::backdrop { background: rgba(10, 11, 13, .86); }
.view { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1rem; }
.view img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; margin-inline: auto; }
.view-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.view-foot figcaption { margin: 0; color: #55575c; }
.view-foot figcaption b { color: #16171a; }
.close { font-family: var(--hand); font-size: 1.6rem; line-height: 1; background: none; color: #16171a; border: 0; border-bottom: 1px solid #16171a; padding: 0 0 .1rem; cursor: pointer; }

@media (max-width: 46rem) {
  .pinned { grid-template-columns: minmax(0, 1fr); }
  .pinned figure { grid-column: 1 / -1; margin-top: 0; }
  .pinned figure:nth-child(even) { margin-left: 12%; }
  .pinned figure:nth-child(odd) { margin-right: 12%; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .mouse { display: none; } }
@media (prefers-reduced-motion: reduce) { figure { transition: none; } }

/* looks: "start over" swaps the pigments and the title face */
:root { --tone-l: #d8351f; --tone-d: #ff8f7d; --tone: var(--tone-l); --name-l: #1a2a8f; --name-d: #c9d1ff; --name: var(--name-l); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tone: var(--tone-d); --name: var(--name-d); } }
:root[data-theme="dark"] { --tone: var(--tone-d); --name: var(--name-d); }
.surface:not(.band) h1 {
  font-family: var(--h1-font, var(--display)); font-weight: var(--h1-weight, 800); font-style: var(--h1-style, normal);
  font-stretch: var(--h1-stretch, 75%); letter-spacing: var(--h1-track, -.045em); line-height: var(--h1-lead, .78);
  font-size: calc(clamp(5rem, 24vw, 19rem) * var(--h1-scale, 1));
}
.surface:not(.band) h1 { color: var(--name); }
.surface:not(.band) h1 small { color: var(--tone); font-size: clamp(2rem, 6vw, 4rem); }
.surface { touch-action: auto; }
/* text that sits on paint gets a strip of wall behind it */
.under p > span, .wipe, .note {
  background: var(--wall); box-shadow: 0 0 0 .3rem var(--wall);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#name { display: inline-block; }
.finger { display: none; }
.touch .finger { display: inline; }
.touch .mouse { display: none; }
/* phone */
@media (max-width: 46rem) {
  .note { display: none; }
  .top { justify-content: flex-end; }
  .band .top { justify-content: space-between; }
  nav { gap: 1.1rem; }
  nav a { font-size: 1.6rem; }
  .surface:not(.band) .wrap { gap: 2.5rem; padding-block: 1rem 1.75rem; }
  .surface:not(.band) h1 { margin-top: 1.5rem; }
  .surface:not(.band) h1 small { font-size: 2.6rem; margin-top: .2em; }
  .under { display: grid; gap: 1.1rem; justify-items: start; }
  .band h1 { font-size: clamp(3.25rem, 19vw, 6rem); }
  section { padding-block: 2.5rem 3rem; }
  .hand { font-size: 1.3rem; }
  figcaption b { font-size: 1rem; }
  .blank { padding: .7rem; }
  .blank span { font-size: 1.25rem; padding: .5rem; }
  .sheet::before, .sheet::after { width: 3.2rem; height: 1.1rem; top: -.55rem; }
  figure:nth-child(odd) .sheet::before { margin-left: -1.6rem; }
  .pinned { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; }
  .pinned figure, .pinned figure:nth-child(n) { grid-column: span 1; margin: 0; }
  .pinned figure:nth-child(3n+1) { grid-column: 1 / -1; margin-right: 14%; }
  .pinned figure:nth-child(6n+4) { margin-right: 0; margin-left: 14%; }
  .pinned figure:nth-child(3n) { margin-top: 1.75rem; }
  .about .portrait { max-width: 62%; }
  .lead { font-size: 1.45rem; }
}
/* multi-page additions */
.mark { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 1.75rem; letter-spacing: -.03em; text-transform: lowercase; text-decoration: none; line-height: 1; }
.mark i { font-family: var(--hand); font-style: normal; font-weight: 400; font-size: 1.5rem; color: var(--mark); margin-left: .3rem; letter-spacing: 0; }
nav a[aria-current="page"] { border-bottom: 2px solid var(--mark); }
.band .wrap { gap: clamp(2rem, 7vw, 5rem); }
.band h1 { font-size: clamp(3.5rem, 13vw, 10rem); line-height: .82; }
.more { display: inline-block; margin-top: clamp(2rem, 5vw, 3.5rem); font-family: var(--hand); font-size: 2rem; line-height: 1; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.more:hover { color: var(--mark); border-color: var(--mark); }
main > section:first-child { border-top: 0; }
.about .portrait { grid-column: auto; margin: 0; max-width: 20rem; transform: rotate(-1.5deg); }
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.about > * { min-width: 0; }
@media (max-width: 46rem) { .about { grid-template-columns: minmax(0, 1fr); } }
