@font-face {
  font-family: 'Libre Caslon Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/libre-caslon-condensed-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/karla-latin.woff2') format('woff2');
}

/* A sports-goods maker's catalogue: cream stock, ink, ball-leather oxblood. */
:root {
  color-scheme: light;
  --stock: #f1e8d6;
  --stock-deep: #e8dcc3;
  --ink: #231c17;
  --ink-soft: #4d4239;
  --leather: #7a1f1a;
  --rule: #231c17;
  --display: 'Libre Caslon Condensed', 'Times New Roman', serif;
  --text: 'Karla', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 400 1rem/1.625 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--leather);
  color: var(--stock);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--leather);
}
:focus-visible {
  outline: 2px solid var(--leather);
  outline-offset: 3px;
}

.sheet {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

/* Masthead: the catalogue's title strip over a double rule. */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 4px double var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font: 600 1.75rem/1 var(--display);
  text-decoration: none;
}
.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.edition {
  font: 500 1rem/1 var(--display);
  color: var(--ink-soft);
}
.mast nav {
  display: flex;
  gap: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
}
.mast nav a {
  text-decoration: none;
  padding: 0.25rem 0;
}

/* Cover: the headline, the stamp and the plate of every sport's kit. */
.cover {
  position: relative;
  overflow-x: clip;
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(3rem, 8vh, 5rem);
}
h1 {
  margin: 0;
  font: 600 clamp(4rem, 10vw, 8.5rem) / 0.94 var(--display);
  max-width: none;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 34rem;
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}
.stamp {
  position: absolute;
  top: clamp(3rem, 9vh, 6rem);
  right: clamp(0rem, 6vw, 6rem);
  width: clamp(9rem, 17vw, 14rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--leather);
  border: 5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--stock), inset 0 0 0 6px currentColor;
  font: 600 clamp(1.5rem, 2.8vw, 2.375rem) / 0.95 var(--display);
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
}

.plate {
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  border: 5px double var(--rule);
  background: var(--stock);
}
.plate ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.plate li {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
  padding: 1rem 1rem 1.25rem;
}
.plate li + li {
  border-left: 1px solid var(--rule);
}
.fig {
  font: 500 1rem/1 var(--display);
  color: var(--ink-soft);
}
.plate svg {
  width: 100%;
  max-width: 9rem;
  height: auto;
  justify-self: center;
  color: var(--ink);
}
.plate b {
  display: block;
  font: 600 1.625rem/1 var(--display);
}
.plate .status {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.plate .first {
  background: var(--leather);
  color: var(--stock);
}
.plate .first .fig,
.plate .first .status {
  color: var(--stock-deep);
}
.plate .first svg {
  color: var(--stock);
}
.plate figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* The kit: catalogue entries with dotted leaders. */
.kit,
.how,
.roles,
.about,
.faq {
  padding: clamp(3rem, 8vh, 5rem) 0;
  border-top: 4px double var(--rule);
}
h2 {
  margin: 0 0 0.5rem;
  font: 600 clamp(2.5rem, 5vw, 4rem) / 0.95 var(--display);
}
.kit > p {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
}
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4rem;
}
.entries li {
  display: grid;
  align-content: start;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.no {
  font: 600 1.5rem/1.2 var(--display);
  color: var(--leather);
  min-width: 3.25rem;
}
.entry-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font: 600 1.5rem/1.2 var(--display);
}
.entry-head::after {
  content: '';
  order: 1;
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--ink-soft);
  transform: translateY(-0.3em);
}
.entry-head span {
  order: 2;
  font: 600 0.875rem/1 var(--text);
  color: var(--leather);
  white-space: nowrap;
}
.entries p {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

/* How it works: four steps in order. */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.steps li {
  padding: 1.25rem 1.5rem 0 0;
}
.steps li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}
.steps b {
  display: block;
  margin-top: 0.5rem;
  font: 600 1.5rem/1.2 var(--display);
}
.steps p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

/* Roles and contact: a ruled ledger, label left, value right. */
.roles > p,
.about p {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: var(--ink-soft);
}
.about p {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.ledger {
  margin: 0;
  max-width: 52rem;
  border-top: 1px solid var(--rule);
}
.ledger div {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.ledger dt {
  font: 600 1.375rem/1.2 var(--display);
}
.ledger dd {
  margin: 0;
  color: var(--ink-soft);
}
.ledger address {
  font-style: normal;
}

/* Contact, privacy and terms. */
.doc {
  padding: clamp(3rem, 10vh, 5rem) 0;
  max-width: 46rem;
}
.doc h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}
.doc .intro {
  margin: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
}
.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.doc p,
.doc ul {
  margin: 0 0 1rem;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.5rem;
}
.doc .ledger dd a {
  color: var(--ink);
}

/* Questions. */
.faq > * {
  max-width: 52rem;
}
.faq h2 {
  margin-bottom: 1.5rem;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font: 600 1.5rem/1.2 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font: 600 1.75rem/1 var(--display);
  color: var(--leather);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

/* Colophon. */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 4px double var(--rule);
  font: 500 1rem/1.5 var(--display);
  color: var(--ink-soft);
}
.colophon nav {
  display: flex;
  gap: 1.5rem;
}

/* Sign-in and not-found pages. */
.note {
  position: relative;
  padding: clamp(3rem, 12vh, 7rem) 0;
  min-height: 60vh;
}
.note h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  max-width: 12ch;
}
.note p {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}
.note .back {
  display: inline-block;
  margin-top: 2rem;
  font: 600 1.375rem/1 var(--display);
}
.note .stamp {
  top: clamp(2rem, 8vh, 5rem);
}

/* The one moment: the stamp comes down on the page. */
@media (prefers-reduced-motion: no-preference) {
  .stamp {
    animation: stamp 0.7s var(--ease) 0.5s backwards;
  }
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-4deg) scale(1.6);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: rotate(-13deg) scale(0.96);
    filter: blur(0);
  }
}

@media (max-width: 64rem) {
  .plate ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plate li:nth-child(4) {
    border-left: 0;
  }
  .plate li:nth-child(n + 4) {
    border-top: 1px solid var(--rule);
  }
  .entries {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .steps li:nth-child(n + 3) {
    margin-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 40rem) {
  .edition {
    display: none;
  }
  .mast nav a:not(:last-child) {
    display: none;
  }
  .stamp {
    position: relative;
    top: auto;
    right: auto;
    margin: 2rem 0 0 auto;
    width: 8.5rem;
  }
  .note .stamp {
    top: auto;
    margin: 0 0 1.5rem;
  }
  .plate ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plate li:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .plate li:nth-child(even) {
    border-left: 1px solid var(--rule);
  }
  .plate li:nth-child(-n + 2) {
    border-top: 0;
  }
  .entry-head {
    flex-wrap: wrap;
    font-size: 1.25rem;
  }
  .entry-head::after {
    display: none;
  }
  .entry-head span {
    flex-basis: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li:nth-child(n) {
    padding: 1.25rem 0;
    margin: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .steps li:first-child {
    border-top: 0;
  }
  .ledger div {
    grid-template-columns: 1fr;
  }
}
.nowrap {
  white-space: nowrap;
}

/* Countdown to opening day, under the lede. */
.count {
  margin: 1.5rem 0 0;
  font: 500 1.375rem/1.2 var(--display);
  color: var(--ink-soft);
}
.count b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Founder's desk: a letter. */
.letter p {
  font-size: 1.125rem;
}
.letter .sign {
  margin: 2rem 0 0;
  color: var(--ink-soft);
}
.letter .sign b {
  display: inline-block;
  margin-top: 0.5rem;
  font: 600 1.75rem/1.2 var(--display);
  color: var(--ink);
}
.letter .motto {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font: 500 1.375rem/1.3 var(--display);
}
.letter {
  position: relative;
}
.portrait {
  margin: 0 0 2.5rem;
  max-width: 20rem;
  border: 5px double var(--rule);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.portrait figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
/* Wide screens: the portrait sits in the margin beside the letter. */
@media (min-width: 76rem) {
  .portrait {
    position: absolute;
    top: clamp(3rem, 10vh, 5rem);
    left: 50rem;
    width: 20rem;
    margin: 0;
  }
}
.credit svg {
  width: 0.875rem;
  height: 0.875rem;
  vertical-align: -0.0625rem;
  fill: var(--leather);
}
.mast nav a[aria-current='page'] {
  color: var(--leather);
}
@media (max-width: 60rem) {
  .edition {
    display: none;
  }
  .mast nav {
    gap: 1.25rem;
  }
}
@media (max-width: 48rem) {
  .mast nav a:not(:last-child) {
    display: none;
  }
}
