/* @edma print shop. Fira Sans and Fira Mono, one ground, one ink, one accent. */

@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 500; font-display: swap; src: url('/fonts/fira-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Mono'; font-weight: 400; font-display: swap; src: url('/fonts/fira-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --ground: #F4F4F1;
  --ink: #161616;
  --grey: #5E5E5A;
  --line: #CFCFCA;
  --accent: #C7361A;
  --mono: 'Fira Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  border-top: 4px solid var(--ink);
  font: 16px/1.4 'Fira Sans', 'Helvetica Neue', Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 60px); box-sizing: content-box; }

.lab {
  margin: 0;
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.hint { margin: 0; font-size: 14px; color: var(--grey); }
.link { min-height: 44px; padding: 0; background: none; border: 0; font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--accent); }

/* ---------- header and footer ---------- */

.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; padding: 28px 0 24px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.logo { margin: 0; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.logo a { text-decoration: none; }
.tagline { margin: 0; color: var(--grey); }
.head nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.head nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.head nav a[aria-current] { font-weight: 500; }
.head nav a[aria-current]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 88px; padding: 20px 0 48px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--grey); }

/* ---------- index ---------- */

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding: 28px 0; border-bottom: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.hero img { flex: 2 1 480px; min-width: 0; height: auto; }
.hero-cap { flex: 1 1 220px; display: flex; flex-direction: column; font: 12px/18px var(--mono); }
.hero-cap .meta, .cap .meta { color: var(--grey); }
.hero:hover .no, .card:hover .no { color: var(--accent); }

.filters { display: flex; flex-direction: column; gap: 2px; padding-top: 20px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.frow .lab { flex: 0 0 104px; }
.opt { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; background: none; border: 0; font-size: 16px; color: var(--ink); cursor: pointer; }
.opt .mark { width: 13px; height: 13px; border: 1.5px solid var(--ink); }
.opt .mark.round { border-radius: 50%; }
.opt[aria-pressed='true'] .mark { background: var(--accent); }
.opt[aria-pressed='true'] .lbl { font-weight: 500; }
.opt .n { font: 12px var(--mono); color: var(--grey); }
.opt:disabled { opacity: 0.55; cursor: default; }

.result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; margin-top: 14px; min-height: 46px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.result p { margin: 0; }
.result strong { font-weight: 700; }
#summary { color: var(--grey); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, 22%), 1fr)); gap: 56px 32px; padding-top: 44px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.ph { display: block; position: relative; aspect-ratio: 1 / 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ink); font: 12px/18px var(--mono); }
.none { margin: 0; padding: 24px 0 40px; font-size: 20px; max-width: 30em; }

/* ---------- single print ---------- */

.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; padding: 8px 0 12px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs .pn { display: flex; gap: 0 28px; }
.notice { margin: 0 0 20px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }

.print { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.media { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
/* align-self stops the column from stretching a tall photo to full width once max-height has capped it. */
.media .main { align-self: flex-start; width: auto; height: auto; max-width: 100%; max-height: min(86vh, 980px); }
.details { display: flex; flex-direction: column; gap: 10px; }
.details .lab { padding-top: 8px; border-top: 1px solid var(--ink); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.pair img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.panel { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.title { display: flex; flex-direction: column; gap: 6px; }
.title h1, .about h1, .message h1 { margin: 0; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.title p { margin: 0; font-size: 18px; color: var(--grey); }

.spec { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); border-top: 1px solid var(--ink); }
.spec dt { padding: 9px 0; border-bottom: 1px solid var(--line); font: 12px/22px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.spec dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }

.edition { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.edition .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.edition strong { font-weight: 500; }

.buyform { display: flex; flex-direction: column; gap: 28px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0 0 8px; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.row .sz { flex: 0 0 34px; font-size: 18px; }
.row .mm { flex: 1 1 auto; font: 13px var(--mono); color: var(--grey); }
.row .zn { flex: 1 1 auto; }
.row .pr { font-size: 18px; }
.row:has(input:checked) .sz, .row:has(input:checked) .pr, .row:has(input:checked) .zn { font-weight: 700; }
.row:has(input:checked) .zn { font-weight: 500; }

.pay { display: flex; flex-direction: column; gap: 12px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 0 20px; background: var(--ink); color: var(--ground); border: 0; border-radius: 2px; font-size: 18px; font-weight: 500; cursor: pointer; }
.buy:hover { background: var(--accent); }

.about-print { display: flex; flex-direction: column; gap: 8px; }
.about-print p { margin: 0; padding-top: 10px; border-top: 1px solid var(--ink); text-wrap: pretty; }

/* ---------- about ---------- */

.sec { display: flex; flex-wrap: wrap; gap: 16px 72px; padding: 40px 0 64px; border-top: 1px solid var(--ink); }
.sec.first { padding-top: 56px; border-top: 0; }
.sec h1, .sec h2 { flex: 1 1 260px; margin: 0; }
.sec h2 { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.sec .col { flex: 999 1 560px; min-width: 0; }
.sec p { margin: 0 0 16px; text-wrap: pretty; }
.intro { max-width: 720px; }
.intro .lead { font-size: 22px; line-height: 1.45; }
.intro .more { font-size: 18px; color: var(--grey); }
.split { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.split .text { flex: 1 1 320px; min-width: 0; max-width: 520px; font-size: 18px; }
.split .spec { margin-top: 20px; font-size: 16px; }
.split figure { flex: 1 1 320px; min-width: 0; margin: 0; }
.split figure img { width: 100%; height: auto; }
.split figcaption { margin-top: 10px; font: 12px var(--mono); color: var(--grey); }
.rates { margin: 0; max-width: 520px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--ink); font-size: 18px; }
.rates dt, .rates dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rates dd { text-align: right; }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 22px; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; }
.contact .hint { max-width: 520px; font-size: 16px; }
#contact { padding-bottom: 24px; }

.message { padding: 72px 0 40px; max-width: 34em; }
.message p { font-size: 20px; }

/* ---------- narrow screens ---------- */

/* Once the print page can no longer hold two columns, put the buying panel
   straight after the photo and the detail crops after that. */
@media (max-width: 1061px) {
  .print { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 36px; }
  .media { display: contents; }
  .media .main { align-self: flex-start; }
  .panel { order: 1; flex: none; }
  .details { order: 2; }
}

/* Filter labels get their own line rather than sharing one with the first option. */
@media (max-width: 620px) {
  .filters { gap: 6px; }
  .frow .lab { flex: 0 0 100%; padding-top: 10px; }
}
