@font-face {
  font-family: 'Graphik Web';
  src: url('../fonts/Graphik-Regular-Web.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* MARK: - The room */

:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #242422;
  --quiet: #6d6d69;
  --edge: clamp(24px, 4.6vw, 88px);
  --gutter: clamp(12px, 1.45vw, 28px);
  --title-size: 20px;
  --page-top: 112px;
  --content-right: var(--edge);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Graphik Web', sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
a *, button * { cursor: inherit; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { border: 0; border-radius: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

.grid-guides {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(to right,
    rgba(90, 110, 140, .24) 0 1px,
    rgba(90, 110, 140, .07) 1px calc(var(--column-width) - 1px),
    rgba(90, 110, 140, .24) calc(var(--column-width) - 1px) var(--column-width),
    transparent var(--column-width) var(--column-step));
}
.has-grid-guides .grid-guides { display: block; }

/* MARK: - Shared paper, navigation and keyboard notes */
.exposure-filter { position: absolute; pointer-events: none; }
.is-developing { transition: none !important; }
.announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:has(.shortcuts[open]) { overflow: hidden; }
.shortcuts { position: fixed; inset: 24px var(--edge) auto auto; width: min(380px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overflow: auto; margin: 0; padding: 28px; border: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.5; }
.shortcuts::backdrop { background: rgb(36 36 34 / .12); }
.shortcuts-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.shortcuts p { margin: 0; }
.shortcuts button { padding: 0; font-size: inherit; opacity: .5; }
.shortcuts dl { display: grid; grid-template-columns: 40px 1fr; row-gap: 10px; margin: 0; }
.shortcuts dt { color: var(--ink); }
.shortcuts dd { margin: 0; color: var(--quiet); }
.shortcuts .shortcuts-section { margin: 28px 0 14px; color: var(--quiet); }
/* The paper stays still; only actual content fades. */
html { background: var(--paper); }
.is-entering body { opacity: 0; pointer-events: none; }
.is-leaving body { pointer-events: none; }
@media (max-width: 700px) {
  :root { --edge: 24px; --gutter: 12px; --title-size: 18px; --page-top: 92px; --content-right: 40px; }
}
@media (max-width: 360px) { :root { --title-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
