/* Printed Nerve — home
   Display face is Bebas Neue, self-hosted (it is the approved brand typography in
   commerce.brand_standards, alongside Impact). Bebas is display-only — body copy stays
   on the system font, which already ships the legibility tuning long text needs.
   Materials, press feedback and accessibility preferences follow the same Apple-derived
   rules as the JR Technologies site; the palette and voice deliberately do not. */

@font-face {
  font-family: "Bebas Neue";
  src: url("assets/bebas-neue.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:       #121014;
  --bg-alt:   #17141a;
  --surface:  rgba(255, 255, 255, 0.045);
  --line:     rgba(255, 255, 255, 0.11);
  --text:     #f4f1f3;
  --muted:    #9c96a1;
  --accent:   #ff2d55;
  --ink:      #0c0a0d;

  --display: "Bebas Neue", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band-y: clamp(4rem, 10vw, 7.5rem);
  --measure: 34rem;
  --radius: 0.75rem;
  --chrome-h: 3.75rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--chrome-h) + 1rem);
}

body {
  margin: 0;
  font: 400 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--ink);
  border-radius: 0.5rem;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

/* ---- Chrome ---- */

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 16, 20, 0.64);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
/* Soft edge where content passes under the floating bar, not a hard rule. */
.chrome::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(18, 16, 20, 0.5), transparent);
  pointer-events: none;
}

.chrome nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--chrome-h);
  padding-inline: var(--gutter);
}

.mark {
  font-family: var(--display);
  font-size: 1.4rem;
  /* Bebas is already condensed; a small positive track keeps it from reading as one word. */
  letter-spacing: 0.055em;
  text-decoration: none;
  white-space: nowrap;
}

.chrome ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.chrome ul a {
  text-decoration: none;
  color: var(--muted);
  transition: color 120ms ease-out;
}
.chrome ul a:hover { color: var(--text); }
.chrome ul a:active { color: var(--accent); }
.chrome .shop-link { color: var(--accent); font-weight: 560; }
.chrome .shop-link:hover { color: #ff5c7a; }

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 14vw, 9rem) var(--gutter) clamp(3.5rem, 9vw, 6rem);
  max-width: 62rem;
}

/* A single restrained pride rule — the flag as a mark of position, not a background wash. */
.pride {
  width: clamp(5rem, 22vw, 9rem);
  height: 0.3125rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #e40303 0%, #e40303 16.6%,
    #ff8c00 16.6%, #ff8c00 33.3%,
    #ffed00 33.3%, #ffed00 50%,
    #008026 50%,  #008026 66.6%,
    #24408e 66.6%, #24408e 83.3%,
    #732982 83.3%, #732982 100%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 15vw, 9.5rem);
  font-weight: 400;
  /* Very large display type: tight leading, negative tracking. */
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.03rem, 2.1vw, 1.1875rem);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}
.lede.wide { max-width: 44rem; margin-top: -1.5rem; margin-bottom: 2.75rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
  transition: transform 110ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
}
.btn:hover { background: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: scale(0.97); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn.primary:hover { background: #ff4468; border-color: #ff4468; }

.btn.lg {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  padding: 0.65rem 2rem 0.5rem;
  text-transform: uppercase;
}

/* ---- Bands ---- */

.band {
  padding: var(--band-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.stand { background: var(--bg-alt); }

h2 {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.66;
  text-wrap: pretty;
}

/* ---- Stands ---- */

.stands {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}
.stands li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}
.stands span {
  flex: none;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.stands h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.stands p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  text-wrap: pretty;
}

/* ---- Closing CTA ---- */

.cta { text-align: center; }
.cta .big {
  margin-bottom: 2rem;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}
.fine {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 2.25rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { text-decoration-color: var(--line); text-underline-offset: 0.2em; }
footer a:hover { text-decoration-color: currentColor; }

/* ---- Narrow viewports ----
   Three nav labels wrap onto a second line below ~34rem and blow out the bar height.
   Drop the section anchors and keep Shop, which is the path people are actually here for;
   the sections are a scroll away on a page this short. */

@media (max-width: 34rem) {
  .chrome ul li:not(:last-child) { display: none; }
  .chrome ul { font-size: 0.9375rem; }
}

/* ---- Accessibility preferences ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .chrome {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .chrome::after { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #cdc8d0;
    --line: rgba(255, 255, 255, 0.36);
    --surface: rgba(255, 255, 255, 0.02);
  }
  .chrome { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
