/* ---- leghead ---------------------------------------------------------- */

:root {
  --bg:     #ffffff;
  --ink:    #111111;
  --muted:  #8a8a8a;
  --line:   #e6e6e6;
  --gap:    2.5rem;
  --max:    880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.5rem 4.5rem;
}

.logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ---- shirt grid ------------------------------------------------------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.shirts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.shirt {
  margin: 0;
}

.shirt-img {
  display: block;
  width: 100%;
  /* height:auto overrides the HTML height attr so aspect-ratio governs the box. */
  height: auto;
  aspect-ratio: 1 / 1;
  /* contain, not cover: these mockups are tightly framed and cover clips the garment. */
  object-fit: contain;
  /* Hairline edge so white-on-white product shots read as distinct objects. */
  border: 1px solid var(--line);
  background: #fafafa;
}

.shirt figcaption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- depop link ------------------------------------------------------- */

.shop {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.shop-link {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.shop-link:hover,
.shop-link:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

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

.footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer p { margin: 0; }

/* ---- utilities -------------------------------------------------------- */

/* Accessible heading text, hidden behind the logo image. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- responsive ------------------------------------------------------- */

@media (max-width: 800px) {
  :root { --gap: 1.75rem; }
  .header { padding: 3.5rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .shirts { grid-template-columns: 1fr; }
  .logo   { max-width: 280px; }
}
