/* You wouldn't wear it. Static site styles. Mobile first. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo-wdth.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/instrument-serif-italic.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f5f4f0;
  --ink: #0e0e0e;
  --grey: #6e6e6a;
  --panel: #eceae6;
  --line: #cfcec8;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --gutter: 20px;
}
@media (min-width: 750px) { :root { --gutter: 40px; } }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: 'wdth' 100;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--grid { padding: 0 6px; }
@media (min-width: 750px) { .wrap--grid { padding: 0 var(--gutter); } }

/* Header */
.header { border-bottom: 1px solid var(--line); }
.header__inner { padding-top: 18px; padding-bottom: 18px; }
.header__name {
  font-variation-settings: 'wdth' 62;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
@media (min-width: 750px) { .header__inner { padding-top: 24px; padding-bottom: 24px; } .header__name { font-size: 32px; } }

/* Shirt-style title */
.pt { display: block; }
.pt__lead { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.86em; line-height: 1.05; }
.pt__rest { display: block; font-variation-settings: 'wdth' 62; font-weight: 800; text-transform: uppercase; line-height: 0.95; }

.label { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

/* Grid */
.home main { padding-top: 6px; }
@media (min-width: 750px) { .home main { padding-top: 40px; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 6px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 750px) { .grid { gap: 56px 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 20px; } }

.media { position: relative; aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; }
.media picture { position: absolute; inset: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.card { display: block; text-decoration: none; }
.card:hover img { transform: scale(1.025); }
.card__title { padding: 12px 4px 0; font-size: 16px; font-weight: 400; }
.card .label { padding: 0 4px; }
@media (min-width: 750px) { .card__title { font-size: 22px; } }

/* Item page */
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; padding-bottom: 64px; }
.item .media--large { margin: 0 calc(var(--gutter) * -1); }
.item__title { font-size: clamp(34px, 9vw, 60px); font-weight: 400; }
.item__info .label { margin-top: 12px; }
.item__hl { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.item__back { margin-top: 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.item__back a { text-decoration: none; }
.item__back a:hover { text-decoration: underline; }
@media (min-width: 990px) {
  .item { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
  .item .media--large { margin: 0; }
  .item__info { position: sticky; top: 40px; }
}

/* Helpline line */
.hl { font-size: 14px; line-height: 1.6; }
.hl__name { font-weight: 600; }
.hl__phone { white-space: nowrap; }
.hl a { font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.footer { margin-top: 64px; padding: 28px 0 32px; border-top: 1px solid var(--line); }

/* 404 */
.nf { padding-top: 64px; padding-bottom: 64px; }
.nf__title { margin-bottom: 20px; font-variation-settings: 'wdth' 62; font-weight: 800; font-size: clamp(40px, 9vw, 88px); line-height: 0.92; text-transform: uppercase; }

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