/* Dick Johnson — store selector
   Tokens: black #101010 · lifted #151515 · deep #0a0a0a · white #fff · smoke #707070 · blood #ff1818 */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/roboto-var-latin.woff2") format("woff2-variations"),
       url("/fonts/roboto-var-latin.woff2") format("woff2");
}
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); }

:root {
  --black: #101010;
  --lifted: #151515;
  --deep: #0a0a0a;
  --white: #ffffff;
  --smoke: #707070;
  --blood: #ff1818;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --radius-card: 14px;
  --radius-pill: 30px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
}

body {
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--white); text-decoration: none; }

/* ---------- Page shell ---------- */

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22200%22 height=%22200%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 16px);
  padding: clamp(20px, 5vh, 48px) clamp(16px, 4vw, 48px) clamp(12px, 2.5vh, 24px);
  position: relative;
  text-align: center;
}

.logo {
  width: min(260px, 48vw, 26vh);
  height: auto;
  display: block;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--blood);
}

.tagline {
  margin: 0;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
}

.subline {
  margin: 0;
  max-width: 480px;
  font-weight: 400;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.5;
  color: var(--smoke);
  text-wrap: pretty;
}

/* ---------- Main ---------- */

.stores {
  width: 100%;
  max-width: 980px;
  padding: 0 clamp(12px, 4vw, 48px) clamp(20px, 4vh, 40px);
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(12px, 2vh, 20px);
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-strong);
}

.section-label span {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--smoke);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}

/* ---------- Store card ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--lifted);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-decoration: none;
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  box-shadow: inset 0 0 0 1px var(--blood);
  transform: translateY(-2px);
}

.card:active {
  transform: translateY(1px);
}

.card:focus-visible,
.teaser:focus-visible {
  outline: 2px solid var(--blood);
  outline-offset: 2px;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08);
  transition: transform 0.25s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.02);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(10px, 1.4vw, 16px) 6px clamp(12px, 1.6vw, 18px);
  text-align: center;
}

.country {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(13px, 1.9vw, 20px);
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.domain {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.5px;
  color: var(--blood);
}

.pill {
  margin-top: 4px;
  padding: clamp(5px, 0.6vw, 8px) clamp(12px, 1.6vw, 22px);
  border-radius: var(--radius-pill);
  background: var(--blood);
  color: var(--white);
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

/* Brand button rule: red → white on hover */
.card:hover .pill {
  background: var(--white);
  color: #000000;
}

/* ---------- UK teaser ---------- */

.teaser {
  display: flex;
  flex-direction: column;
  background: var(--deep);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  cursor: default;
  min-width: 0;
}

.teaser-media {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep);
}

.union-jack {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(#ff1818, #ff1818) center / 100% 12% no-repeat,
    linear-gradient(#ff1818, #ff1818) center / 9% 100% no-repeat,
    linear-gradient(#ffffff, #ffffff) center / 100% 22% no-repeat,
    linear-gradient(#ffffff, #ffffff) center / 16% 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - 5px), #ffffff calc(50% - 5px), #ffffff calc(50% + 5px), transparent calc(50% + 5px)),
    linear-gradient(to bottom right, transparent calc(50% - 5px), #ffffff calc(50% - 5px), #ffffff calc(50% + 5px), transparent calc(50% + 5px));
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, #0a0a0a 85%);
}

.teaser-mark {
  position: relative;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  color: var(--blood);
}

.teaser .country {
  color: var(--smoke);
  letter-spacing: normal;
}

.soon {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.tease {
  font-family: var(--body);
  font-size: clamp(10px, 1vw, 13px);
  font-style: italic;
  color: var(--smoke);
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  margin-top: auto;
  padding: 16px clamp(16px, 4vw, 48px);
  background: var(--lifted);
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.footer span {
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes djPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }
  @keyframes djGrain {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(0, 0); }
  }
  .grain { animation: djGrain 1.2s steps(4) infinite; }
  .teaser-mark { animation: djPulse 2.6s ease-in-out infinite; }
}

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