:root {
  --petra-ink: #0b120f;
  --petra-ink-soft: #17211c;
  --petra-forest: #1b3b2b;
  --petra-forest-dark: #10291d;
  --petra-cream: #f5efeb;
  --petra-paper: #faf8f5;
  --petra-paper-deep: #eee8e0;
  --petra-copper: #c88c64;
  --petra-stone: #687168;
  --petra-line: rgba(11, 18, 15, 0.16);
  --petra-danger: #9d332c;
  --petra-focus: #c87d55;
  --petra-serif: Georgia, Cambria, "Times New Roman", serif;
  --petra-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --petra-content-width: 76rem;
  --petra-gutter: clamp(1rem, 3vw, 2.5rem);
  --petra-radius: 0.12rem;
  --petra-shadow: 0 1.25rem 3.5rem rgba(11, 18, 15, 0.12);
}

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

html {
  min-width: 320px;
  background: var(--petra-paper);
  color: var(--petra-ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--petra-paper);
  color: var(--petra-ink);
  font-family: var(--petra-sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea { font: inherit; }

button,
[role="button"],
input,
select { min-height: 44px; }

button { touch-action: manipulation; }

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

img { height: auto; }

a { color: inherit; }

::selection { background: var(--petra-copper); color: var(--petra-ink); }

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

[hidden] { display: none !important; }

.page-shell { min-height: 100dvh; }

.content-frame {
  width: min(calc(100% - (var(--petra-gutter) * 2)), var(--petra-content-width));
  margin-inline: auto;
}

.display {
  margin: 0;
  font-family: var(--petra-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.eyebrow {
  margin: 0;
  color: var(--petra-copper);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.muted { color: var(--petra-stone); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.7rem 0.9rem;
  background: var(--petra-cream);
  color: var(--petra-ink);
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

@media (max-width: 389px) {
  html,
  body { min-width: 0; }
}
