﻿*, *::before, *::after { box-sizing: border-box; }
html { min-block-size: 100%; background: var(--black); font-size: 100%; }
html[data-size="large"] { font-size: 115%; }
body {
  margin: 0;
  min-block-size: 100vh;
  color: var(--ink);
  background: var(--black);
  font: 400 1rem/1.55 var(--ui);
  text-align: start;
}
main { min-block-size: calc(100dvh - var(--topbar)); }
main:focus { outline: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.04; }
h1 { font-size: clamp(2.45rem, 6.7vw, 6.3rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
h3 { font-size: 1.35rem; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, select, input:not([type="checkbox"]), textarea {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: .2rem;
}
select, input:not([type="checkbox"]), textarea { padding: .55rem .75rem; min-block-size: 2.75rem; }
input[type="checkbox"] { inline-size: 1.5rem; block-size: 1.5rem; accent-color: var(--accent); }
textarea { display: block; resize: vertical; inline-size: 100%; }
img { display: block; max-inline-size: 100%; }
progress { accent-color: var(--accent-text); }
summary { min-block-size: 2.75rem; display: list-item; align-content: center; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; box-shadow: 0 0 1rem var(--light-mist); }
::selection { color: var(--white); background: var(--accent-dark); }
.layout { max-inline-size: var(--max); padding-inline: var(--gutter); margin-inline: auto; }
.narrow { max-inline-size: 54rem; }
.muted { color: var(--muted); }
.eyebrow {
  font: 600 .875rem/1.4 var(--label);
  text-transform: uppercase;
  letter-spacing: .23em;
  color: var(--muted);
}
:lang(fa) .eyebrow { letter-spacing: normal; }
.scene-copy { font: 400 1.0625rem/1.55 var(--mono); }
.actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.grain {
  position: fixed;
  z-index: 30;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  opacity: .07;
  mix-blend-mode: screen;
  pointer-events: none;
}
[dir="rtl"] .direction { display: inline-block; transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
