/* Reset and base typography. Everything references tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pty-paper);
  color: var(--pty-ink);
  font-family: var(--pty-font-ui);
  font-size: var(--pty-text-md);
  line-height: var(--pty-line-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.pty-lock { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--pty-rose); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--pty-space-4); }
h1, h2, h3, h4 { margin: 0 0 var(--pty-space-4); font-weight: 400; line-height: var(--pty-line-tight); }

/* Display type: 24px and above only. */
.pty-display, h1.pty-display, .pty-display-sm, .pty-display-md, .pty-display-lg, .pty-display-xl {
  font-family: var(--pty-font-display);
  font-weight: var(--pty-display-weight);
  letter-spacing: var(--pty-display-tracking);
  line-height: var(--pty-line-display);
}
.pty-display-sm { font-size: var(--pty-display-sm); }
.pty-display-md { font-size: var(--pty-display-md); }
.pty-display-lg { font-size: var(--pty-display-lg); }
.pty-display-xl { font-size: var(--pty-display-xl); }

/* Small uppercase labels. */
.pty-label {
  font-family: var(--pty-font-ui);
  font-size: var(--pty-text-xs);
  font-weight: 500;
  letter-spacing: var(--pty-label-tracking);
  text-transform: uppercase;
  color: var(--pty-ink);
  margin: 0 0 var(--pty-space-3);
}
.pty-muted { color: var(--pty-ink-soft); }
.pty-hint { color: var(--pty-stone); font-size: var(--pty-text-sm); margin: var(--pty-space-2) 0 0; }
.pty-error-text { color: var(--pty-error); font-size: var(--pty-text-sm); }

/* Brand logo image. Sized by height so the wordmark's ratio is never squeezed. */
.pty-logo { height: 26px; width: auto; }
.pty-logo--small { height: 18px; }
.pty-logo--footer { height: 34px; }

/* Wordmark placeholder until the logo SVG is supplied. */
.pty-wordmark {
  font-family: var(--pty-font-display);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--pty-ink);
}
.pty-wordmark--small { font-size: 1.125rem; }
.pty-wordmark--footer { font-size: var(--pty-display-md); letter-spacing: 0.18em; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: var(--pty-focus-ring); outline-offset: var(--pty-focus-offset); border-radius: var(--pty-radius); }

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--pty-space-4); top: -100px; background: var(--pty-ink); color: var(--pty-paper); padding: var(--pty-space-2) var(--pty-space-3); z-index: 200; }
.skip-link:focus { top: var(--pty-space-4); }

/* Layout */
.pty-container { width: 100%; max-width: var(--pty-max-width); margin-inline: auto; padding-inline: var(--pty-gutter); }
#content, .site-main { padding-block: var(--pty-space-6); }
.pty-stack > * + * { margin-top: var(--pty-space-4); }

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