/* Ivan Uralsky — print shop. Black & white, nothing else. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2f2ef;
  --paper-2: #e6e6e2;
  --ink: #111111;
  --ink-2: #3a3a38;
  --muted: #5e5e5b;
  --line: #d4d4d0;
  --night: #0e0e0e;
  --night-ink: #ededea;
  --night-muted: #a3a3a0;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1344px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--night-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-weight: 700; font-stretch: 125%; letter-spacing: .08em; font-size: 17px; white-space: nowrap; }
.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a { padding: 12px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    background: none; border: 1px solid var(--ink); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font: 600 16px/1 var(--sans); cursor: pointer;
}
.btn:hover { background: #2b2b2b; color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--paper-2); color: var(--muted); border-color: var(--line); pointer-events: none; }
.link-line { border-bottom: 1px solid currentColor; padding: 8px 0; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 900px); display: flex; align-items: flex-end; color: #f5f5f2; background: #1a1a1a; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7) 0, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 70%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(32px, 6vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero h1 { margin: 12px 0 0; font-size: clamp(44px, 7vw, 92px); line-height: .95; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; max-width: 12ch; }
.hero .caption { font-family: var(--mono); font-size: 12px; color: #e0e0dc; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.h-display { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; }
.lead { font-size: clamp(24px, 3vw, 38px); line-height: 1.22; letter-spacing: -.01em; margin: 0; }
.statement { display: grid; grid-template-columns: 3fr 9fr; gap: 24px; }
.statement .actions { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; font-size: 16px; }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } }

.night { background: var(--night); color: var(--night-ink); }
.night .muted { color: var(--night-muted); }
.night a:hover { color: var(--night-muted); }
.night .section-head { border-top-color: var(--night-ink); }

/* Print grid */
.grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid.four { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 14px; }
.card .frame { position: relative; background: var(--paper-2); aspect-ratio: 1 / 1; }
.night .card .frame { background: #1a1a1a; }
.card .frame img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 76%; max-height: 76%; box-shadow: 0 0 0 8px #fafaf8, 0 10px 24px rgba(0,0,0,.18); }
.card .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.night .card .meta { color: var(--night-muted); }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 6px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 72px; }
.night .facts { border-top-color: #333331; }
.facts p { margin: 0; font-size: 14px; line-height: 1.5; }
.facts strong { display: block; margin-bottom: 6px; font-size: 16px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Quote */
blockquote.quote { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; }
.quote-cite { margin-top: 20px; }

/* Product page */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding: 24px 0 96px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.product .stage { background: var(--paper-2); padding: 8%; display: flex; justify-content: center; }
.product .stage img { max-height: 78vh; width: auto; box-shadow: 0 0 0 12px #fafaf8, 0 18px 40px rgba(0,0,0,.2); }
.product h1 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; }
.product .info { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 100px; }
@media (max-width: 900px) { .product .info { position: static; } }
.sizes { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sizes legend { font-size: 13px; font-weight: 600; letter-spacing: .08em; margin-bottom: 12px; text-transform: uppercase; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border: 1px solid var(--ink); }
.size span small { font-family: var(--mono); font-size: 12px; }
.size input:checked + span { background: var(--ink); color: var(--paper); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.size input:disabled + span { color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.price-row { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-size: 34px; font-weight: 700; font-stretch: 110%; }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 400; font-size: 20px; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 20px; }

/* Work gallery */
.masonry { columns: 3 320px; column-gap: 24px; }
.masonry figure { break-inside: avoid; margin: 0 0 24px; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.masonry figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,8,8,.96); display: none; align-items: center; justify-content: center; padding: 56px 16px 72px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--night-ink); font-family: var(--mono); font-size: 12px; }
.lightbox button { position: absolute; background: none; border: 1px solid #555; color: var(--night-ink); min-width: 48px; min-height: 48px; font: 500 15px var(--sans); cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about .body p { margin: 0 0 18px; color: var(--ink-2); }
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 760px) { .cv { grid-template-columns: 1fr; } }
.cv dl { margin: 0; }
.cv dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cv dd { margin: 0; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 32px; }
.prose h2 { font-size: 22px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); padding: 64px 0 36px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; line-height: 2; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer a:hover { color: var(--night-ink); }
.site-footer .brand { color: var(--night-ink); display: block; line-height: 1.6; }
.site-footer .fine { margin-top: 48px; font-family: var(--mono); font-size: 11px; color: #8a8a87; }
