/* Source Antiques preview. World: a trade catalogue printed on enamel. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3ede1;
  --mat: #fbf8f1;
  --ink: #1c1b19;
  --ink-2: #4a4741;
  --rule: #bcb6a9;
  --mint: #cbe4d1;
  --on-mint: #1c1b19;
  --on-mint-2: #2f4a39;
  --red: #b0262b;
  --on-red: #fbf8f1;
  --steel: #262523;
  --on-steel: #f3ede1;
  --on-steel-2: #cfc9bb;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
  --max: 1200px;
}

*, *::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(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--mint); color: var(--on-mint); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--ink-2); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--ink);
}
.mark img { width: 250px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.35em; }
.nav .tel { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.menu { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px 12px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--on-red);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-steel); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-steel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Plates: every photograph is a framed, captioned plate, never wider than its source */
.plate { margin: 0; }
.plate img {
  width: 100%;
  border: 1px solid var(--ink);
  padding: 6px;
  background: var(--mat);
}
.plate figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.plate-1000 { max-width: 500px; } /* 1000px source */
.plate-600 { max-width: 300px; }  /* 600px source */
.plate-300 { max-width: 150px; }  /* 300px source */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 48px;
  align-items: end;
  padding: 56px 0 48px;
}
.hero p { font-size: 1.1875rem; max-width: 44ch; }
.hero .plate { justify-self: end; }

/* Process strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 32px 0 40px; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 20px; }
.strip-head p { margin: 0; }

/* Sections */
.section { padding: 64px 0; }
.section-mint { background: var(--mint); color: var(--on-mint); }
.section-mint .muted, .section-mint .plate figcaption { color: var(--on-mint-2); }
.section-steel { background: var(--steel); color: var(--on-steel); }
.section-steel a { color: var(--on-steel); }
.section-steel a:hover { color: var(--mint); }
.section-steel .muted, .section-steel .plate figcaption { color: var(--on-steel-2); }
.section-steel .plate img { border-color: var(--on-steel-2); background: var(--steel); }
.section-steel .btn-ghost { color: var(--on-steel); border-color: var(--on-steel); }
.section-steel .btn-ghost:hover { background: var(--on-steel); color: var(--ink); }
.section-steel .rule { border-color: #4b4945; }
.section-steel ::selection { background: var(--on-steel); color: var(--ink); }
.lead { font-size: 1.25rem; max-width: 52ch; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Index of offers: a ledger, not cards */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { border-bottom: 1px solid var(--rule); }
.ledger a {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  text-decoration: none;
}
.ledger a:hover .ledger-name { color: var(--red); }
.ledger-name { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }
.ledger-desc { color: var(--ink-2); max-width: 56ch; }
.ledger-go { font-weight: 500; white-space: nowrap; }

/* Testimonials */
.quote { margin: 0; }
.quote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  max-width: 30ch;
  letter-spacing: 0;
}
.quote cite { font-style: normal; font-size: 0.9375rem; }
.quote-big p { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; max-width: 24ch; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Project rows */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--rule); align-items: start; }
.project:first-of-type { border-top: 0; }
.project .plates { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; justify-content: end; }
.project .plates .plate-600 { max-width: none; }
.project .plates img { max-width: 300px; }
.meta { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 12px; }

/* Process gallery */
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* Scrubber: the one authored moment */
.scrub { display: grid; grid-template-columns: 500px 1fr; gap: 48px; align-items: center; }
.scrub .plate { max-width: 500px; }
.scrub input[type="range"] { width: 100%; max-width: 500px; margin: 16px 0 6px; accent-color: var(--red); }
.scrub output { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.steps li { padding: 14px 0; border-bottom: 1px solid var(--rule); max-width: 52ch; }
.steps li strong { font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: block; line-height: 1.1; margin-bottom: 2px; }

/* Facts table */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }

/* Form */
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.9375rem; }
.form input, .form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--mat);
  color: var(--ink);
  caret-color: var(--red);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form input::placeholder, .form textarea::placeholder { color: #6b675f; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: 0.875rem; color: var(--ink-2); max-width: 46ch; }

/* Footer */
.foot { background: var(--steel); color: var(--on-steel); padding: 56px 0 40px; margin-top: 64px; }
.foot a { color: var(--on-steel); }
.foot a:hover { color: var(--mint); }
.foot .cols-3 { gap: 48px; }
.foot address { font-style: normal; }
.foot .mark img { width: 200px; filter: invert(1) brightness(1.1); }
.foot h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.6em; }
.foot p { color: var(--on-steel-2); }
.foot p strong, .foot address { color: var(--on-steel); }
.foot .legal { border-top: 1px solid #4b4945; margin-top: 40px; padding-top: 20px; font-size: 0.8125rem; color: var(--on-steel-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot .legal a { color: var(--on-steel-2); }
.foot .legal a:hover { color: var(--mint); }

/* Preview label */
.preview {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--on-steel);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-decoration: none;
  z-index: 10;
}
.preview:hover { color: var(--mint); }

/* Simple page (legal, 404) */
.page { padding: 56px 0; max-width: 70ch; }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr minmax(0, 420px); gap: 32px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .scrub { grid-template-columns: 1fr; }
  .ledger a { grid-template-columns: 180px 1fr; }
  .ledger-go { grid-column: 2; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .hero .plate { justify-self: start; }
  .strip { grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; }
  .strip .plate { scroll-snap-align: start; }
  .cols-2, .cols-3, .quotes, .project { grid-template-columns: 1fr; gap: 32px; }
  .project .plates { justify-content: start; }
  .frames { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .menu { display: block; }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 0;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { color: var(--red); }
  .menu-list { position: absolute; left: 0; right: 0; background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); z-index: 20; padding: 8px var(--gutter) 16px; }
  .menu-list a { display: block; padding: 12px 0; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.6rem; border-bottom: 1px solid var(--rule); }
  .menu-list a:last-child { border-bottom: 0; }
  .top { position: relative; }
  .ledger a { grid-template-columns: 1fr; gap: 6px; }
  .ledger-go { grid-column: 1; }
  .section { padding: 48px 0; }
  .foot .cols-3 { gap: 32px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .mark img { width: 170px; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .project .plates { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
}

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

/* Utilities (inline styles are blocked by the CSP) */
.pt-0 { padding-top: 0; }
.mt-24 { margin-top: 24px; }
.quotes-1 { grid-template-columns: 1fr; }

.mt-48 { margin-top: 48px; }
