/* Proofroom Bakery: tokens, type, buttons. Flour, crust and oven, with one yolk accent. */
:root {
  --oven: #14100c;
  --oven-2: #211912;
  --oven-3: #2e231a;
  --crust: #6e3512;
  --crust-2: #8a4519;
  --bake: #b9692c;
  --flour: #f7f2ea;
  --flour-2: #ece3d5;
  --ink: #1b140f;
  --ink-2: #57473a;
  --on-dark: #f7f2ea;
  --on-dark-2: #cdbfad;
  --yolk: #f3b23a;
  --yolk-2: #ffc95c;
  --line-dark: rgba(247, 242, 234, .16);
  --line-light: rgba(27, 20, 15, .16);
  --display: 'Besley', 'Rockwell', Georgia, serif;
  --text: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Chivo Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4.4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --heavy: cubic-bezier(.7, 0, .2, 1);
  --flour-dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .93 0 0 0 1.6 -1.05'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--oven);
  color: var(--on-dark);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 900; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yolk); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 2px; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--yolk); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.dark { background: var(--oven); color: var(--on-dark); }
.light { background: var(--flour); color: var(--ink); }
.dusted { background-image: var(--flour-dust); background-size: 220px; }
.light .dusted, .light.dusted { background-color: var(--flour); }

.eyebrow { margin: 0 0 14px; font: 600 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yolk); }
.light .eyebrow { color: var(--crust-2); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 38ch; }
.sample { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border: 1px solid currentColor; border-radius: 3px; vertical-align: .15em; margin-left: 6px; white-space: nowrap; opacity: .85; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Buttons: a yolk block that sinks when pressed, and a plain outlined one. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--yolk); color: var(--ink);
  border: 2px solid var(--yolk); border-radius: 6px;
  font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #b97d12;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--yolk-2); border-color: var(--yolk-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b97d12; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn--line:hover { background: rgba(247, 242, 234, .1); border-color: currentColor; }
.light .btn--line:hover { background: rgba(27, 20, 15, .06); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--bake); transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
  display: inline-flex; align-items: center; min-height: 44px;
}
.link:hover { text-decoration-color: currentColor; }
.dark .link { text-decoration-color: var(--yolk); }

/* Photos: real ones, cropped close. A film fades in over its still once it is actually playing. */
video[data-src] { opacity: 0; transition: opacity .8s var(--ease); }
video[data-src].is-playing { opacity: 1; }
.photo { margin: 0; overflow: hidden; background: var(--oven-2); }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
figcaption { font: 500 14px/1.45 var(--mono); color: var(--on-dark-2); margin-top: 10px; }
.light figcaption { color: var(--ink-2); }

/* Reveals: only when motion is on (the class is set by script), so a still page and a no-script page are complete. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

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