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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

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

.page {
  padding-block: var(--page-top) var(--section);
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.h1,
.h2,
.h3,
.quote-large,
.quote-small,
.text-button {
  font-family: var(--serif);
  font-weight: 400;
}

.h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  letter-spacing: -0.5px;
}

.h1 em {
  letter-spacing: -1px;
}

.h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  letter-spacing: -0.5px;
}

.h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  letter-spacing: -0.5px;
}

.h3 em {
  letter-spacing: 0;
}

.h1 em,
.h2 em,
.h3 em {
  color: var(--text-secondary);
}

.body-large {
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0;
}

.body {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.25px;
}

.body-small {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.25px;
}

.body-footer {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}

.caps-small {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.caps-large {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.quote-large,
.quote-small {
  font-style: italic;
  letter-spacing: -0.5px;
}

.quote-large {
  font-size: 32px;
  line-height: 44px;
}

.quote-small {
  font-size: 28px;
  line-height: 36px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 0;
  border-bottom: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 24px;
  line-height: 28px;
  font-style: italic;
  letter-spacing: 0;
}

.text-button svg {
  flex: none;
}

.secondary {
  color: var(--text-secondary);
}

.frame {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--gutter);
  border: 1px dashed var(--text-secondary);
  border-radius: 4px;
  text-align: center;
}

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

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