/* sans.supply
   One stylesheet. Paper, ink, one grotesk. The photographs carry the colour.
   Test for everything here: would it look right printed? */

@font-face {
  font-family: "The Future";
  src: url("../fonts/the-future-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "The Future";
  src: url("../fonts/the-future-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "The Future";
  src: url("../fonts/the-future-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "The Future Mono";
  src: url("../fonts/the-future-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-feature-settings: "ss02", "ss06", "ss07", "ss08", "ss09"; /* hard f, h, m, n, r - same as vasser.no */
  font-display: swap;
}
@font-face {
  font-family: "The Future Mono";
  src: url("../fonts/the-future-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-feature-settings: "ss02", "ss06", "ss07", "ss08", "ss09";
  font-display: swap;
}

:root {
  --paper: #eeece6;
  --ink: #1b1a17;
  --muted: #76736c;
  --rule: rgba(27, 26, 23, 0.16);

  --font: "The Future", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "The Future Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text: 1.0625rem;          /* 17px */
  --small: 0.875rem;          /* 14px */
  --lead: clamp(1.5rem, 1rem + 2.4vw, 2.625rem);   /* the one big line */
  --title: clamp(1.375rem, 1rem + 1.4vw, 2rem);

  --page: clamp(1.25rem, 4vw, 3.5rem);   /* page gutter */
  --gap: clamp(1.25rem, 3vw, 2.5rem);    /* grid gap */
  --block: clamp(3rem, 8vw, 7rem);       /* between major blocks */
  --measure: 34em;
}

/* --- base --------------------------------------------------------------- */

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-size: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: page-in 320ms ease-out both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  * { transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; background: rgba(27, 26, 23, 0.05); }
figure { margin: 0; }
h1, h2, h3, p, dl, ul { margin: 0; }
h1, h2, h3 { font-weight: 500; font-size: inherit; line-height: inherit; }
a { color: inherit; text-decoration: none; }
p a, .text a { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* --- header ------------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--page) * 0.75) var(--page);
}
.wordmark { font-weight: 500; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.5em; }
.site-nav a { transition: color 120ms; }
.site-nav a:hover { color: var(--muted); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.site-main { flex: 1; padding: var(--page); }

/* --- the one big line --------------------------------------------------- */

.lead {
  font-size: var(--lead);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.018em;
  max-width: 22ch;
  text-wrap: balance;
}
.t-home .lead { margin: var(--gap) 0 var(--block); }

/* --- catalogue ---------------------------------------------------------- */

.product-grid {
  display: grid;
  gap: var(--block) var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 60em) { .product-grid { grid-template-columns: 1fr 1fr; } }

.plate { display: block; }
.plate img { transition: opacity 200ms; }
.plate:hover img { opacity: 0.94; }
.plate:hover .caption-title { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* caption row under a photograph, like a plate in a printed catalogue */
.caption {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--gap);
  margin-top: 0.9em;
  line-height: 1.35;
}
.caption-title { font-weight: 500; }
.caption-price { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 0.94em; }
.caption-summary { grid-column: 1; color: var(--muted); max-width: var(--measure); margin-top: 0.15em; }

.featured .caption { max-width: none; }
.featured .caption-summary { font-size: var(--text); }

/* --- product page ------------------------------------------------------- */

.product-head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--gap);
  margin-bottom: var(--gap);
  font-variant-numeric: tabular-nums;
}
.product-head h1 { font-weight: 500; }
.product-head .kind { color: var(--muted); font-family: var(--mono); font-size: 0.94em; margin-left: 0.5em; }

.gallery { display: grid; gap: var(--gap); }
.gallery figcaption { color: var(--muted); font-family: var(--mono); font-size: var(--small); margin-top: 0.5em; }

.product .lead { margin: var(--block) 0 var(--gap); max-width: 26ch; }

.product-body {
  display: grid;
  gap: var(--block) var(--gap);
  grid-template-columns: 1fr;
  margin-bottom: var(--block);
}
@media (min-width: 60em) {
  .product-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.text { max-width: var(--measure); }
.text p + p { margin-top: 1em; }

.specs { font-family: var(--mono); font-size: var(--small); }
.specs > div {
  display: grid;
  grid-template-columns: minmax(7em, 1fr) 2fr;
  gap: 1em;
  padding: 0.55em 0;
  border-top: 1px solid var(--rule);
}
.specs > div:last-child { border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.buy { margin-top: var(--gap); }
.button {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 1.5em;
  align-items: baseline;
  padding: 0.85em 1.25em;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: var(--small);
  line-height: 1;
  transition: background-color 120ms, color 120ms;
}
.button .price { opacity: 0.75; }
.button--buy { background: var(--ink); color: var(--paper); }
.button--buy:hover { background: transparent; color: var(--ink); }
.button--disabled { color: var(--muted); border-color: var(--rule); }
.button:not(.button--buy):not(.button--disabled):hover { background: var(--ink); color: var(--paper); }
.variants { list-style: none; padding: 0; margin: 0.75em 0 0; display: flex; flex-wrap: wrap; gap: 0.5em; }
.licence-note { color: var(--muted); font-family: var(--mono); font-size: var(--small); margin-top: 1em; }
.licence-note a { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }

.contact-sheet h2 { color: var(--muted); margin-bottom: 0.9em; }

/* --- simple pages ------------------------------------------------------- */

.page { max-width: var(--measure); }
.page h1 { font-size: var(--title); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: var(--gap); }
.page .text h2 { margin-top: 2em; margin-bottom: 0.4em; }
.page .text ul { padding-left: 1.2em; margin: 1em 0; }
.page .text p + p { margin-top: 1em; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  padding: var(--block) var(--page) var(--page);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--small);
  display: grid;
  gap: var(--gap);
}
@media (min-width: 60em) {
  .site-footer { grid-template-columns: 1fr 1fr; align-items: end; }
}

.newsletter { max-width: 26em; color: var(--ink); font-family: var(--font); font-size: var(--text); }
.newsletter label { display: block; margin-bottom: 0.75em; }
.newsletter-row { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.5em 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter input:focus-visible { outline: none; }
.newsletter button {
  padding: 0.5em 0 0.5em 1em;
  border: 0;
  background: transparent;
  font: inherit;
  font-family: var(--mono);
  font-size: var(--small);
  color: inherit;
  cursor: pointer;
}
.newsletter button:hover { color: var(--muted); }

.footer-meta { display: grid; gap: 0.5em; }
@media (min-width: 60em) { .footer-meta { justify-items: end; text-align: right; } }
.footer-social, .footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.25em; }
.footer-meta a:hover { color: var(--ink); }
.footer-text p { margin: 0; }
.footer-meta:only-child { grid-column: 1 / -1; justify-items: start; text-align: left; }
