/* rezza-site-styles · common.css
   what both directions share: one typeface (Switzer, from Fontshare, free for web use), a plain
   reset, the twelve-column grid, and the mechanics the headline generator (gen.js) needs.
   each direction's own look lives in a.css or b.css.
   the faces are Fontshare's own web kit (Switzer_Complete/Fonts/WEB), the files its licence means to be
   served, set to the pixel as the desktop OTFs were (measured in Chrome and WebKit, 2026-11-05). a face
   that changes gets a new file name: the site keeps fonts a year (rezza-site-live/netlify.toml) */

@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: block; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Switzer", system-ui, sans-serif;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: inherit; }
ol, ul { list-style: none; }
img, video { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }

/* the grid: twelve columns inside the page margins */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

/* the generator. a slot is one line tall and clips its reel; the words tick through it.
   each slot ends its line, so it is as wide as its word and nothing after it moves. */
.slot { display: inline-block; height: 1lh; overflow: hidden; vertical-align: top; cursor: pointer; }
.reel { display: block; }
.reel > span { display: block; height: 1lh; white-space: nowrap; }

/* the picture of the sentence: the bound is the most room it may take, the plate takes the
   picture's own shape inside it (gen.js sets its size), two layers crossfade or cut */
.bound { display: grid; width: 100%; aspect-ratio: 16 / 9; }
.plate { position: relative; width: 100%; aspect-ratio: 16 / 9; transition: width 320ms ease, height 320ms ease; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 320ms ease; }
.plate img.back { opacity: 0; }
.plate.cut, .plate.cut img { transition: none; }

html:not(.js) [data-set] { display: none; }

.index button { white-space: nowrap; }
