/* Hallmark · genre: editorial · theme: Sport (accent → Pillar logo blue) · design-system: design.md · designed-as-app */
/* Shared design system for every Pillar page. Page-specific rules live in assets/css/<page>.css. */

:root {
  /* Colour — every colour on the site comes from these tokens */
  --color-paper: oklch(0.975 0.006 262);
  --color-paper-2: oklch(0.945 0.012 262);
  --color-paper-3: oklch(0.91 0.018 262);
  --color-ink: oklch(0.2 0.025 262);
  --color-ink-2: oklch(0.44 0.02 262);
  --color-rule: oklch(0.84 0.012 262);
  --color-accent: oklch(0.454 0.217 262.4);
  --color-accent-hover: oklch(0.39 0.19 262.4);
  --color-accent-ink: oklch(0.985 0.004 262);
  --color-accent-soft: oklch(0.88 0.05 262);
  --color-accent-wash: oklch(0.93 0.035 262);
  --color-focus: oklch(0.62 0.2 262);
  --color-error: oklch(0.52 0.19 25);
  --color-success: oklch(0.5 0.13 155);
  --color-nav-glass: oklch(0.975 0.006 262 / 0.92);

  /* Shadow — tinted toward the brand hue, never grey-black */
  --shadow-sm: 0 1px 2px oklch(0.2 0.04 262 / 0.06), 0 1px 1px oklch(0.2 0.04 262 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.2 0.05 262 / 0.05), 0 10px 24px -8px oklch(0.25 0.08 262 / 0.18);
  --shadow-lg: 0 4px 8px oklch(0.2 0.05 262 / 0.05), 0 28px 56px -20px oklch(0.25 0.1 262 / 0.3);

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-2xl: clamp(2.5rem, 6vw, 4.5rem);
  --text-hero: clamp(3.25rem, 10vw, 8.5rem);
  --text-numeral: clamp(5rem, 14vw, 11rem);

  /* Space — 4-point named scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  --page-gutter: clamp(1rem, 4vw, 3rem);
  --page-max: 80rem;
  --measure: 40rem;
  --radius: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-major: 500ms;

  /* Z scale */
  --z-raised: 10;
  --z-nav: 30;
  --z-skip: 40;
}

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

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

figure,
blockquote {
  margin: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--space-2xl);
}

.section--rule {
  border-top: 2px solid var(--color-ink);
}

.section--tint {
  background: var(--color-paper-2);
}

.section--accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.section--ink {
  background: var(--color-ink);
  color: var(--color-paper);
}

.section--accent .muted {
  color: var(--color-accent-soft);
}

.section--ink .muted {
  color: var(--color-rule);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.split--5-7 {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

.split--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}

@media (max-width: 48rem) {

  .split,
  .split--5-7,
  .split--7-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.muted {
  color: var(--color-ink-2);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-ink-2);
  max-width: var(--measure);
}

.h-hero {
  font-size: var(--text-hero);
}

.h-1 {
  font-size: var(--text-2xl);
}

.h-2 {
  font-size: var(--text-xl);
}

.kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Page head (every inner page) ---------- */
.page-head {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: 2px solid var(--color-ink);
}

.page-head h1 {
  font-size: var(--text-hero);
}

.page-head .lede {
  margin-top: var(--space-md);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-2xs) var(--space-sm);
  z-index: var(--z-skip);
}

.skip:focus {
  top: var(--space-sm);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: 0 var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.btn:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--light {
  background: var(--color-paper);
  color: var(--color-ink);
}

.btn--light:hover {
  background: var(--color-paper-2);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: none;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--color-accent);
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out);
}

.link:hover {
  text-decoration-thickness: 4px;
}

.section--accent .link,
.section--ink .link {
  text-decoration-color: currentColor;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.stores a {
  border-radius: 8px;
  transition: box-shadow var(--dur-short) var(--ease-out);
}

.stores a:hover {
  box-shadow: var(--shadow-md);
}

.stores img {
  height: 3.25rem;
  width: auto;
}

/* ---------- Surfaces ---------- */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

a.card {
  text-decoration: none;
  display: block;
}

a.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-ink-2);
}

.media {
  background: var(--color-paper-2);
  padding: var(--space-lg);
  border-radius: var(--radius);
}

.media img {
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media--bare img {
  box-shadow: none;
}

.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Lists ---------- */
.ticks {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.ticks li {
  position: relative;
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-lg);
  border-bottom: 1px solid var(--color-rule);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 1rem;
  height: 2px;
  background: var(--color-accent);
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
}

.rules > li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-rule);
}

/* ---------- Forms (all states) ---------- */
.field {
  display: grid;
  gap: var(--space-2xs);
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  outline: 2px solid transparent;
  outline-offset: 1px;
  box-shadow: var(--shadow-sm) inset;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--color-ink-2);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline-color: var(--color-focus);
  border-color: var(--color-accent);
}

.field input:disabled,
.field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-paper-2);
}

.field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.field__help {
  min-height: 1lh;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.field__help--error {
  color: var(--color-error);
}

.form-status {
  min-height: 1lh;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: var(--color-success);
}

.form-status[data-state="error"] {
  color: var(--color-error);
}

/* ---------- Prose (blog posts, legal) ---------- */
.prose {
  max-width: var(--measure);
  font-size: var(--text-md);
}

.prose > * + * {
  margin-top: var(--space-sm);
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: var(--space-xl);
}

.prose h2 {
  font-size: var(--text-xl);
}

.prose h3 {
  font-size: var(--text-lg);
}

.prose h4 {
  font-size: var(--text-md);
  letter-spacing: 0.04em;
}

.prose a {
  font-weight: 600;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
  padding-left: var(--space-md);
}

.prose li + li {
  margin-top: var(--space-2xs);
}

.prose img {
  margin-block: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.prose blockquote {
  border-top: 2px solid var(--color-ink);
  padding-top: var(--space-sm);
  font-weight: 500;
  font-size: var(--text-lg);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: var(--space-2xs) var(--space-xs);
  border-bottom: 1px solid var(--color-rule);
}

/* ---------- Service announcement (above the nav) ---------- */
.notice {
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
}

.notice__text {
  padding-block: var(--space-xs);
}

.notice__text strong {
  font-weight: 600;
}

.notice .link {
  color: var(--color-paper);
  text-decoration-color: var(--color-accent-soft);
  white-space: nowrap;
}

/* ---------- N7 Brutal slab nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-nav-glass);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--color-ink);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 4rem;
}

.nav__mark img {
  height: 1.5rem;
  width: auto;
}

.nav__primary {
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-2xs);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  border-color: var(--color-accent);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  min-height: 2.75rem;
  padding: 0 var(--space-sm);
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  font: 600 var(--text-sm) / 1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav__sheet {
  border-top: 2px solid var(--color-ink);
  padding-block: var(--space-sm) var(--space-md);
}

.nav__sheet ul {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.nav__sheet li a {
  display: block;
  padding: var(--space-xs) 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
}

.nav__sheet li a[aria-current="page"] {
  color: var(--color-accent);
}

@media (max-width: 60rem) {

  .nav__primary,
  .nav__bar > .btn {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 60.01rem) {
  .nav__sheet {
    display: none;
  }
}

/* ---------- Ft5 Statement footer ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer__statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.footer__contact {
  margin-top: var(--space-md);
  color: var(--color-rule);
}

.footer__contact .link {
  color: var(--color-paper);
  text-decoration-color: var(--color-accent-soft);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-ink-2);
  font-size: var(--text-sm);
}

.footer__row ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__row a {
  display: inline-block;
  padding-block: var(--space-3xs);
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-rule);
  transition: color var(--dur-micro) var(--ease-out);
}

.footer__row a:hover {
  color: var(--color-paper);
}

.footer__legal {
  color: var(--color-rule);
}
