/* Swerve — Studio Uniform
   Design: version 5 "Pro · stacked logo". Druk Wide Super Italic + Inter. */

/* Display face. Drop the licensed Druk Wide web files into /fonts with these names.
   Until then, the free Anybody font stands in so the page never breaks. */
@font-face {
  font-family: "Swerve Display";
  src: url("/fonts/DrukWide-SuperItalic-Web.woff2") format("woff2"),
       url("/fonts/DrukWide-SuperItalic-Web.woff") format("woff");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Swerve Display Fallback";
  src: url("/fonts/anybody-latin-wdth-italic.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --muted: #555555;
  --faint: #777777;
  --tile: #f2f2f2;
  --line: #ececec;
  --paper: #ffffff;
  --side: 12px;
  --display: "Swerve Display", "Swerve Display Fallback", "Arial Black", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Header: stacked lockup ---------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(32px, env(safe-area-inset-top)) var(--side) 0;
}
.lockup-wrap { font-size: inherit; font-weight: inherit; }
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.mono { display: block; height: 32px; width: auto; aspect-ratio: 356 / 505; }
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 150%;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}
.label {
  padding-top: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- Grid ---------- */
.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 12px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px var(--side) 64px;
}
.item a { display: flex; flex-direction: column; gap: 10px; }
.ph {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tile);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .35s ease;
}
.ph img.in { opacity: 1; }
.meta { display: flex; flex-direction: column; gap: 3px; }
.meta .b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.meta .n {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.note { text-align: center; font-size: 12px; color: var(--faint); padding: 24px var(--side); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--side) max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--faint);
}
.foot > p:first-child { text-transform: uppercase; letter-spacing: 0.06em; }
.legal { display: flex; gap: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.legal a { color: var(--ink); }

/* ---------- Tablet ---------- */
@media (min-width: 751px) {
  :root { --side: 32px; }
  .brand { padding-top: 48px; }
  .lockup { gap: 12px; }
  .mono { height: 40px; }
  .wordmark { font-size: 22px; }
  .label { padding-top: 16px; font-size: 11px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; padding: 48px var(--side) 96px; }
  .item a { gap: 12px; }
  .meta .b { font-size: 11px; }
  .meta .n { font-size: 13px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .item a:hover .n { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .ph img { transition: none; }
}
