@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f4f4f1;
  --ink: #161616;
  --mute: #595959;
  --line: #d6d6d0;
  --accent: #f2b729;
  --on-accent: #161616;
  --btn: #161616;
  --on-btn: #f4f4f1;
  --dialog: #fbfbf9;
  --scrim: rgba(22, 22, 22, 0.72);
  --logo-blend: multiply;
  --logo-filter: none;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --ink: #f1f0ec;
    --mute: #b4b3ad;
    --line: #353535;
    --accent: #f2b729;
    --on-accent: #161616;
    --btn: #f1f0ec;
    --on-btn: #161616;
    --dialog: #1f1f1f;
    --scrim: rgba(0, 0, 0, 0.78);
    --logo-blend: screen;
    --logo-filter: invert(1);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161616;
  --ink: #f1f0ec;
  --mute: #b4b3ad;
  --line: #353535;
  --accent: #f2b729;
  --on-accent: #161616;
  --btn: #f1f0ec;
  --on-btn: #161616;
  --dialog: #1f1f1f;
  --scrim: rgba(0, 0, 0, 0.78);
  --logo-blend: screen;
  --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.15rem; margin: 0.9rem 0 0.35rem; }

p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; z-index: 10; }

/* Shell */
.top, main, .foot {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 72px;
}
.mark img {
  width: auto;
  height: 64px;
  mix-blend-mode: var(--logo-blend);
  filter: var(--logo-filter);
}
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 1rem; }
@media (max-width: 400px) { .top nav { gap: 0.8rem; font-size: 0.95rem; } .mark img { height: 56px; } }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--on-btn);
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 120ms, color 120ms, transform 80ms;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }

button.open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
}
button.open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin: 0.5rem 0 4rem;
}
.hero .hero-text p { max-width: 36ch; }
.hero .caption { color: var(--mute); font-size: 0.95rem; max-width: 44ch; margin-top: 2rem; }
@media (min-width: 920px) {
  .hero { grid-template-columns: auto minmax(0, 1fr); gap: 3rem; }
  .hero button.open { width: auto; }
  .hero button.open img { width: auto; max-height: calc(100vh - 150px); max-width: 100%; aspect-ratio: auto; }
  .hero .hero-text { padding-bottom: 2rem; }
}

/* Prints */
.prints { margin-bottom: 5rem; }
.lede { max-width: 60ch; color: var(--mute); margin-bottom: 2rem; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.25rem;
}
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .grid { grid-template-columns: 1fr 1fr 1fr; gap: 3rem 1.5rem; } }

.print .meta { color: var(--mute); font-size: 0.9rem; margin: 0 0 0.8rem; }
.print .buy { margin: 0; }

/* About */
.about {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.about-text p { max-width: 58ch; }
.stills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-self: start;
}
.stills li { font-size: 0.85rem; color: var(--mute); }
.stills img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; margin-bottom: 0.35rem; }
@media (min-width: 920px) {
  .about { grid-template-columns: 7fr 5fr; gap: 3rem; }
}

/* Commissions */
.commissions {
  margin-bottom: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.commissions p { max-width: 50ch; }

/* Plain pages */
.page { max-width: 60ch; padding: 2rem 0 4rem; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--mute);
}
.foot p { margin: 0 0 0.5rem; }
.foot .links a { margin-right: 1rem; }
.foot .preview { margin-top: 1rem; }

/* Dialog */
dialog {
  border: 0;
  padding: 0;
  margin: auto;
  background: var(--dialog);
  color: var(--ink);
  width: min(100% - 2rem, 1100px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
dialog::backdrop { background: var(--scrim); }
dialog .close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--btn);
  color: var(--on-btn);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
dialog .close:hover, dialog .close:focus-visible { background: var(--accent); color: var(--on-accent); }
dialog .pics { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
dialog .pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
dialog .text { padding: 1.25rem 3.5rem 1.5rem 1.25rem; }
dialog .text .meta { color: var(--mute); font-size: 0.9rem; }
@media (min-width: 760px) {
  dialog[open] { display: grid; grid-template-columns: 3fr 2fr; }
  dialog .pics { grid-column: 1; grid-row: 1; }
  dialog .text { grid-column: 2; grid-row: 1; }
  dialog .pics img:not(:first-child) { aspect-ratio: 4 / 3; }
  dialog .text { padding: 2.5rem 2rem 2rem; position: sticky; top: 0; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
