/* Layout: full-bleed photography framed by a quiet granite page; wide expanded display type, serif for the stories, mono for sizes and prices. */
:root {
  --paper: #eceeeb;
  --surface: #f7f8f6;
  --ink: #172023;
  --muted: #586468;
  --line: #c8cfcd;
  --accent: #1e5d61;
  --accent-ink: #ffffff;
  --scrim: rgba(12, 17, 19, 0.82);
  --err: #a83a2a;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1360px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111617; --surface: #192022; --ink: #e2e7e5; --muted: #93a09e;
    --line: #2b3436; --accent: #74b6b2; --accent-ink: #0d1415; --scrim: rgba(5, 8, 9, 0.9); --err: #e8846f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111617; --surface: #192022; --ink: #e2e7e5; --muted: #93a09e;
  --line: #2b3436; --accent: #74b6b2; --accent-ink: #0d1415; --scrim: rgba(5, 8, 9, 0.9); --err: #e8846f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; text-wrap: balance; margin: 0; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.wordmark b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; }
.wordmark b i { font-style: normal; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.wordmark span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-family: var(--display); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: transparent;
  padding: 8px 14px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.menu-btn { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter-r) 20px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.1rem; }
}

/* Hero */
.hero { position: relative; height: min(78vh, 780px); min-height: 420px; overflow: hidden; background: #1b2224; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.62) 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: #fff; padding-bottom: clamp(28px, 6vw, 64px); }
.hero h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 7.4vw, 6.6rem); letter-spacing: -0.01em; text-transform: uppercase; max-width: 14ch; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; margin: 18px 0 0; color: rgba(255,255,255,0.9); }
.hero .label { color: rgba(255,255,255,0.75); display: block; margin-bottom: 14px; }
.hero-credit { position: absolute; right: var(--gutter-r); top: 18px; z-index: 1; color: rgba(255,255,255,0.8); }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; border-top: 2px solid var(--ink); padding-top: 14px; }
.section-head h2 { font-stretch: 112%; font-size: clamp(1.8rem, 3.4vw, 2.8rem); text-transform: uppercase; }

/* Gallery index */
.gal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal-card { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff; background: #1b2224; grid-column: span 2; aspect-ratio: 4 / 5; }
.gal-card.big { grid-column: span 3; aspect-ratio: 3 / 2; }
.gal-grid.three .gal-card { grid-column: span 2; aspect-ratio: 4 / 5; }
.gal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gal-card:hover img { transform: scale(1.04); }
.gal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7)); }
.gal-card .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.gal-card h3 { font-stretch: 118%; font-size: clamp(1.3rem, 2.2vw, 1.9rem); text-transform: uppercase; }
.gal-card .label { color: rgba(255,255,255,0.8); white-space: nowrap; }
@media (max-width: 800px) {
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-card, .gal-card.big, .gal-grid.three .gal-card { grid-column: span 1; aspect-ratio: 4 / 5; }
  .gal-grid:not(.three) .gal-card:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-card, .gal-card.big, .gal-grid.three .gal-card, .gal-grid:not(.three) .gal-card:first-child { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* Editors band */
.band { background: var(--ink); color: var(--paper); }
.band .label { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.band-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: end; }
.band h2 { font-stretch: 112%; font-size: clamp(1.8rem, 3.4vw, 2.8rem); text-transform: uppercase; margin: 10px 0 14px; }
.band p { margin: 0; max-width: 60ch; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
a.btn { display: inline-block; text-decoration: none; }
@media (max-width: 800px) { .band-inner { grid-template-columns: 1fr; } .band-actions { justify-content: flex-start; } }

/* Assignments page */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.two-col p { max-width: 62ch; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Prints band */
.prints { background: var(--surface); border-block: 1px solid var(--line); }
.prints-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.print-type { padding: 24px 24px 24px 0; border-right: 1px solid var(--line); min-width: 0; }
.print-type + .print-type { padding-left: 24px; }
.print-type:last-child { border-right: 0; }
.print-type h3 { font-size: 1.15rem; margin-bottom: 6px; }
.print-type p { margin: 0 0 14px; color: var(--muted); font-size: 0.98rem; }
.size-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.size-table td { padding: 6px 0; border-top: 1px dashed var(--line); }
.size-table td:last-child { text-align: right; }
.prints-note { margin-top: 22px; color: var(--muted); max-width: 70ch; }
@media (max-width: 800px) {
  .prints-grid { grid-template-columns: 1fr; }
  .print-type, .print-type + .print-type { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy p { max-width: 62ch; margin: 0 0 1.1em; }
.about-copy .lede { font-size: 1.3rem; line-height: 1.45; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about img { aspect-ratio: 3 / 2; } }

/* Contact + footer */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.contact a.big { font-family: var(--display); font-stretch: 108%; font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact a.big:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Gallery page */
.gallery-head { padding-block: clamp(36px, 6vw, 72px) 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.gallery-head h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 6vw, 5rem); text-transform: uppercase; }
.gallery-head p { margin: 0; max-width: 58ch; color: var(--muted); }
.edition { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; border: 1px solid var(--accent); color: var(--accent); padding: 4px 10px; }
@media (max-width: 800px) { .gallery-head { grid-template-columns: 1fr; gap: 16px; } }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 28px; }
.subnav a { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.masonry { columns: 3 340px; column-gap: 16px; padding-bottom: 80px; }
.tile { break-inside: avoid; margin: 0 0 22px; }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; position: relative; overflow: hidden; }
.tile img { width: 100%; height: auto; transition: opacity 0.3s ease, transform 0.6s ease; }
.tile button:hover img { transform: scale(1.02); }
.tile .buy { position: absolute; right: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; opacity: 0; transform: translateY(6px); transition: 0.25s ease; }
.tile button:hover .buy, .tile button:focus-visible .buy { opacity: 1; transform: none; }
@media (hover: none) { .tile .buy { opacity: 1; transform: none; } }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 0.95rem; }
.tile figcaption .label { white-space: nowrap; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 64px; min-width: 0; min-height: 0; }
.lb-stage img { max-height: calc(100vh - 56px); max-width: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; font-size: 1.5rem; }
.lb-arrow:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-panel { background: var(--paper); overflow-y: auto; padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-close { border: 1px solid var(--line); background: none; width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; }
.lb-panel h2 { font-stretch: 110%; font-size: 1.6rem; }
.lb-panel .desc { margin: 0; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.mat-list { display: grid; gap: 8px; }
.mat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
.mat:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mat input { margin-top: 5px; accent-color: var(--accent); }
.mat strong { font-family: var(--display); font-weight: 600; font-size: 0.98rem; display: block; }
.mat small { color: var(--muted); font-size: 0.85rem; line-height: 1.4; display: block; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; }
.size-opt span { display: block; border: 1px solid var(--line); padding: 8px 12px; font-family: var(--mono); font-size: 0.85rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.size-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; }
.price { font-family: var(--mono); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.btn { border: 0; background: var(--accent); color: var(--accent-ink); padding: 13px 20px; cursor: pointer; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.88rem; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.5; cursor: wait; }
.added { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); min-height: 1.2em; margin: -8px 0 0; }
@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .lb-stage { padding: 16px 52px; }
  .lb-stage img { max-height: 55vh; }
  .lb-panel { overflow: visible; }
}

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(420px, 100%); background: var(--paper); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 22px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.drawer-head h2 { font-stretch: 112%; font-size: 1.4rem; text-transform: uppercase; }
.cart-items { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 76px; object-fit: cover; }
.cart-item h3 { font-size: 0.98rem; font-weight: 600; line-height: 1.25; }
.cart-item .label { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0.02em; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 0.85rem; }
.remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; margin-left: 12px; }
.line-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.cart-empty { color: var(--muted); padding: 32px 0; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 1.15rem; color: var(--ink); }
.sum-row.small { font-size: 0.85rem; color: var(--muted); }
.cart-foot .btn { width: 100%; padding: 15px; }
.cart-msg { font-size: 0.9rem; color: var(--muted); margin: 0; }
.cart-msg.err { color: var(--err); }

/* Thanks page */
.thanks { min-height: 60vh; display: grid; align-content: center; gap: 18px; }
.thanks h1 { font-stretch: 125%; font-size: clamp(2.2rem, 6vw, 4.4rem); text-transform: uppercase; }
.thanks p { max-width: 56ch; margin: 0; }

/* Blog */
.post-head { padding-block: clamp(36px, 6vw, 72px) 28px; display: grid; gap: 14px; max-width: 900px; }
.post-head h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.8rem); }
.post-sub { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted); font-style: italic; }
.post-lead { display: grid; justify-items: center; }
.post-lead .post-img img { width: 100%; }
.post-body { padding-block: 32px 72px; display: grid; gap: 22px; justify-items: center; }
.post-body > p, .post-body > h2 { width: 100%; max-width: 680px; margin: 0; font-size: 1.15rem; line-height: 1.7; }
.post-body > h2 { font-stretch: 110%; font-size: 1.6rem; margin-top: 12px; }
.post-body a { color: var(--accent); }
.post-link { font-family: var(--display); font-weight: 600; }
.post-img { margin: 0; width: 100%; max-width: 1100px; }
.post-img a { display: block; position: relative; }
.post-img img { width: 100%; height: auto; background: var(--line); }
.post-img .buy { position: absolute; right: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; opacity: 0; transition: opacity 0.25s ease; }
.post-img a:hover .buy, .post-img a:focus-visible .buy { opacity: 1; }
@media (hover: none) { .post-img .buy { opacity: 1; } }
.post-grid { width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post-grid .post-img img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }
.post-card { text-decoration: none; display: grid; gap: 8px; align-content: start; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.post-card h3 { font-stretch: 108%; font-size: 1.3rem; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
