/* woos.css
   Shared by the sleeve (the four sides on "/") and the insert (the guide pages).
   Three tones per surface: a sleeve colour, vinyl black, label paper.
   Circles are vinyl, rectangles are paper. Colour is a surface, never an ink. */

:root {
  --ink: #0d0d0d;
  --paper: #f4f4f0;
  --side-a: #ff5b1a;
  --side-b: #c9f03a;
  --side-c: #21c4e8;
  --side-d: #ff4d93;
  --side: var(--side-a);
  --ink-soft: #4b4a46;
  --groove: #222;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rule: 2px;
  color-scheme: light;
}

[data-side="b"] { --side: var(--side-b); }
[data-side="c"] { --side: var(--side-c); }
[data-side="d"] { --side: var(--side-d); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  accent-color: var(--ink);
  caret-color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
  text-decoration-thickness: .1em;
  text-underline-offset: .22em;
}

button,
input { font: inherit; color: inherit; }

button { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Label lettering: wide caps, as on the rim of a centre label. */
.caps {
  font: 700 .75rem/1.2 var(--sans);
  font-stretch: 116%;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Catalogue data: side numbers, years, counts, stream ids. */
.data {
  font: 500 .75rem/1.3 var(--mono);
  font-stretch: 86%;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* The stamp: the name, boxed and knocked a little off square. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  text-decoration: none;
}

.stamp {
  display: block;
  padding: .1em .34em .2em;
  border: .15em solid currentColor;
  font: 900 1.75rem/1 var(--sans);
  letter-spacing: -.02em;
  transform: rotate(-3deg);
}

.brand-words {
  font: 700 .75rem/1.18 var(--sans);
  font-stretch: 118%;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation: one paper sticker. */
.nav {
  display: flex;
  background: var(--paper);
}

.nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 .95rem;
  font: 700 .75rem/1 var(--sans);
  font-stretch: 116%;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.nav a:focus-visible,
.menu-toggle:focus-visible { outline-offset: -5px; }

.nav a:hover:focus-visible,
.nav a[aria-current="page"]:focus-visible { outline-color: var(--paper); }

.menu-toggle {
  display: none;
  min-width: 5.4rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  font: 700 .75rem/1 var(--sans);
  font-stretch: 116%;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle[aria-expanded="true"]:focus-visible { outline-color: var(--paper); }

/* Below this width the four links no longer fit beside the stamp. */
@media (max-width: 760px) {
  .menu-toggle { display: block; }

  .nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    border: var(--rule) solid var(--ink);
  }

  .nav.is-open { display: flex; }

  .nav a {
    justify-content: start;
    min-height: 3.5rem;
    padding: 0 1rem;
    font: 900 2rem/1 var(--sans);
    font-stretch: 66%;
    letter-spacing: 0;
  }

  .nav a + a { border-top: var(--rule) solid var(--ink); }
}

@media (max-width: 400px) {
  .brand-words { font-stretch: 104%; letter-spacing: .04em; }
}

@media (max-width: 359px) {
  .brand { gap: .55rem; }
  .stamp { font-size: 1.4rem; }
  .brand-words { font-size: .6875rem; font-stretch: 100%; letter-spacing: .03em; }
  .menu-toggle { min-width: 4.25rem; padding: 0 .6rem; }
}

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