/* Fonts */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-variable-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --night: #16181E;
  --night-line: #3A3E48;
  --caption: #FFD60A; /* accent */
  --mute: #55554F;
  --mute-night: #A9ADB7;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  --border: 3px;
  --gutter: 10px;
  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 3.25rem;
  --focus: var(--ink);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 200;
  background: var(--caption); border: var(--border) solid var(--ink);
  padding: 0.5rem 0.9rem; font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Shared pieces */

.panel { background: var(--white); border: var(--border) solid var(--ink); }
.panel--ink { background: var(--ink); color: var(--white); }

.caption {
  display: inline-block;
  background: var(--caption);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.3em 0.6em 0.25em;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.15;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem 0.65rem;
  border: var(--border) solid var(--ink);
  font-family: var(--display); font-weight: 750; font-stretch: 95%;
  font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: none; box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--caption); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--caption { background: var(--caption); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border) solid var(--ink);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}
.site-header__name {
  font-family: var(--display); font-weight: 900; font-stretch: 70%;
  font-size: 1.35rem; text-decoration: none; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav__opt { display: none; }
.site-nav__contact {
  background: var(--ink); color: var(--white);
  padding: 0.35rem 0.8rem 0.3rem;
}
.site-nav a.site-nav__contact:hover { text-decoration: none; background: var(--caption); color: var(--ink); }
@media (min-width: 760px) { .site-nav__opt { display: block; } }

/* Hero */
.hero { padding-block: var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero__page {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
  grid-template-areas: "name" "bio" "photo";
}
.hero__name { grid-area: name; padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem); display: flex; align-items: flex-end; }
.hero__name h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__wordmark {
  display: block;
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(4.1rem, 21vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero__role { font-size: clamp(1.05rem, 2.6vw, 1.4rem); }

.hero__bio {
  grid-area: bio;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
}
.hero__lede { font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.5; max-width: 36em; }
.hero__lede em { font-style: italic; }

.hero__photo { grid-area: photo; overflow: hidden; background: var(--night); }
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 46% 30%; }

@media (min-width: 560px) and (max-width: 879px) {
  .hero__page {
    grid-template-columns: 1fr 0.8fr;
    grid-template-areas: "name name" "bio photo";
  }
}
@media (min-width: 880px) {
  .hero__page {
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "name photo" "bio photo";
  }
  .hero__photo img { aspect-ratio: auto; min-height: 100%; }
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  --mute-c: var(--mute);
  --frame: var(--ink);
}
.section--ruled { border-top: var(--border) solid var(--ink); }
.section--night { background: var(--night); color: var(--white); --focus: var(--caption); --mute-c: var(--mute-night); --frame: var(--white); }
.section--night .btn:hover { box-shadow: 4px 4px 0 var(--white); }
.section--night .btn--ink { background: var(--white); color: var(--ink); border-color: var(--white); }
.section--night .btn--ink:hover { box-shadow: 4px 4px 0 var(--caption); }
.section--night .btn--outline { color: var(--white); border-color: var(--white); }
.section--night .btn--caption { border-color: var(--caption); }
.section--night + .section--night { border-top: var(--border) solid var(--night-line); }
.section__title {
  font-weight: 850; font-stretch: 68%;
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  line-height: 0.92;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}
.section__lede { max-width: 34em; color: var(--mute-c); margin-bottom: clamp(2rem, 4vw, 2.75rem); }

.page-thumb, .panel-thumb {
  display: block; position: relative; overflow: hidden;
  border: var(--border) solid var(--frame, var(--ink));
  background: var(--white);
  cursor: zoom-in;
}
.page-thumb img { width: 100%; aspect-ratio: 1 / 1.54; object-fit: cover; }
.panel-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.panel-thumb--natural img { aspect-ratio: auto; }
.page-thumb::after, .panel-thumb::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--caption);
  transition: box-shadow 0.15s ease;
  pointer-events: none;
}
.page-thumb:hover::after, .panel-thumb:hover::after { box-shadow: inset 0 0 0 5px var(--caption); }

.pages { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }

/* One-shot */
.oneshot { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.oneshot__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 40rem; }
.oneshot__title { font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; }
.oneshot__status { font-size: 1rem; }
.oneshot__logline { font-size: 1.2rem; line-height: 1.55; }
.oneshot__credits { display: flex; flex-wrap: wrap; gap: 0.35rem 2rem; font-family: var(--display); font-size: 1rem; }
.oneshot__credits div { display: flex; gap: 0.5rem; }
.oneshot__credits dt { color: var(--mute-c); font-weight: 500; }
.oneshot__credits dd { font-weight: 700; }
.oneshot__meta .btn { margin-top: 0.4rem; }
.oneshot__note { font-size: 0.95rem; color: var(--mute-c); }

.pages--four { grid-template-columns: repeat(2, 1fr); }
.page-thumb__label {
  display: block; margin-top: 0.5rem;
  font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--mute-c);
}
@media (min-width: 700px) { .pages--four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) {
  .oneshot { grid-template-columns: minmax(18rem, 0.9fr) 2fr; align-items: start; }
  .oneshot__meta { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* One-page comics */
.pages--three { grid-template-columns: 1fr; gap: clamp(2.25rem, 4vw, 2rem); }
/* jam pages are ~1:1.48 */
.pages--three .page-thumb img { aspect-ratio: 1 / 1.48; object-position: 50% 0; }
@media (min-width: 720px) { .pages--three { grid-template-columns: repeat(3, 1fr); } }
.work__title {
  margin-top: 0.9rem;
  font-weight: 800; font-stretch: 80%;
  font-size: 1.55rem; line-height: 1.05;
}
.work__credit { margin-top: 0.3rem; font-size: 1rem; line-height: 1.45; color: var(--mute-c); }

/* Published in */
.pubs { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.pubs__row { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
/* --ar = image width / height, so both images share a height */
@media (min-width: 700px) {
  .pubs__row { display: flex; align-items: flex-start; gap: var(--gutter); }
  .pubs__row > .pub { flex: var(--ar, 1) 1 0%; min-width: 0; }
}
.pub__caption { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.85rem; }
.pub__name { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1; }
.pub__credit { font-size: 1rem; color: var(--mute-c); }

/* Stage */
.stage-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: thin;
}
.stage-strip li { scroll-snap-align: start; }
@media (min-width: 760px) {
  .stage-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.press {
  display: grid; gap: 2.25rem;
  margin-top: clamp(2.75rem, 6vw, 4rem);
}
@media (min-width: 760px) { .press { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); } }
.press__quote { border-top: var(--border) solid var(--frame); padding-top: 1.1rem; }
.press__quote blockquote p {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.3;
  font-style: italic; font-weight: 450;
  text-indent: -0.4em;
}
.press__quote figcaption { margin-top: 1rem; font-family: var(--display); font-size: 1rem; font-weight: 600; }
.press__quote cite { font-style: normal; color: var(--mute-c); font-weight: 500; }

/* Contact */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact__email {
  font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(1.45rem, 5.5vw, 2.3rem); line-height: 1.1;
  overflow-wrap: anywhere;
  margin-bottom: 1.25rem;
}
.contact__email a { text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2.25rem; font-family: var(--display); font-weight: 600; }
.social a { text-decoration: underline; text-decoration-thickness: 1px; }
.social a:hover { text-decoration-thickness: 2px; }

.contact-form {
  background: var(--white); color: var(--ink);
  border: var(--border) solid var(--ink);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--display); font-weight: 700; font-size: 0.98rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem;
  padding: 0.65rem 0.75rem;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--caption); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B00020; }
.field.is-flash input { background: #FFF6C4; transition: background 1.2s ease; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form { --focus: var(--ink); }
.contact-form .btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.contact-form .btn--ink:hover { box-shadow: 4px 4px 0 var(--caption); }
.form-status { font-size: 1rem; min-height: 1.5em; }
.form-status.is-error { color: #B00020; }

/* Footer */
.site-footer {
  padding-block: 1.5rem 2rem;
  font-family: var(--display); font-size: 0.9rem; color: var(--mute);
}

/* Lightbox */
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #0C0D10;
  color: var(--white);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  --focus: var(--caption);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  font-family: var(--display); font-size: 0.95rem;
  position: relative; z-index: 2;
}
.lightbox__info { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { font-weight: 800; margin-right: 0.5rem; }
.lightbox__caption { color: #C9CCD3; }
.lightbox__tools { display: flex; gap: 0.4rem; flex: none; }
.lb-btn {
  width: 2.75rem; height: 2.75rem;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.lb-btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--white); }
.lightbox__stage {
  position: relative; overflow: hidden;
  touch-action: none;
  min-height: 0;
}
.lightbox__img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - 1rem); max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  transform-origin: 50% 50%;
  cursor: zoom-in;
  will-change: transform;
  background: var(--white);
}
.lightbox__img.is-zoomed { cursor: grab; }
.lightbox__img.is-dragging { cursor: grabbing; }
.lightbox__img.is-animating { transition: transform 0.22s ease; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 4.5rem; font-size: 2.4rem;
  background: rgba(12, 13, 16, 0.6);
  z-index: 2;
}
.lb-nav--prev { left: 0.75rem; }
.lb-nav--next { right: 0.75rem; }
.lightbox__hint {
  text-align: center; font-family: var(--display); font-size: 0.85rem; color: #9DA1AA;
  padding: 0.55rem 1rem 0.9rem;
}
@media (max-width: 699px) {
  .lb-nav { top: auto; bottom: 0.5rem; transform: none; width: 3rem; height: 2.75rem; font-size: 2rem; }
  .lightbox__hint { padding-inline: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .lightbox, .contact-form, .contact__actions { display: none !important; }
  .section--night { background: none; color: #000; }
}
