/* Copied unchanged from src/styles/base.css of the Astro project: reset, layout, type, prose, motion. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  hanging-punctuation: first last;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-stretch: var(--w-text);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

p,
li,
dd,
dt,
figcaption,
blockquote {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

::selection {
  background: var(--selection);
  color: var(--selection-fg);
}

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

[hidden] {
  display: none !important;
}

/* — Cross-document view transitions (progressive enhancement) ——— */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 260ms var(--ease-soft) both vt-fade-out;
}

::view-transition-new(root) {
  animation: 520ms var(--ease-out) both vt-fade-in;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* — Layout ———————————————————————————————————————————————————— */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin-inline: auto;
}

.container-text {
  width: min(100% - 2 * var(--gutter), var(--container-text));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

.section-sm {
  padding-block: var(--section-y-sm);
}

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

/* — Type ———————————————————————————————————————————————————— */
.t-hero,
.t-statement,
.t-h2,
.t-h3 {
  font-weight: 600;
  text-wrap: balance;
}

.t-hero {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.t-statement {
  font-size: var(--fs-statement);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.t-h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* Two-tone headings: second sentence in the secondary grey. */
.t-h2 .tone,
.t-hero .tone,
.t-statement .tone {
  display: block;
  color: var(--fg-2);
}

.t-h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.t-h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.38;
  color: var(--fg-2);
  letter-spacing: -0.01em;
}

/* Eyebrow: the product name above a title, never shouted. */
.kicker {
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--fg);
}

.muted {
  color: var(--fg-2);
}

.tnum {
  font-variant-numeric: normal;
}

.prose {
  max-width: 62ch;
  color: var(--fg-2);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose :where(h2, h3) {
  margin-top: 2.2em;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.prose h2 {
  font-size: var(--fs-h3);
}

.prose h3 {
  font-size: var(--fs-h4);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose a {
  color: var(--fg);
}

.prose ul {
  padding-left: 1.1em;
}

.prose li + li {
  margin-top: 0.4em;
}

/* — Skip link ————————————————————————————————————————————————— */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--ink);
  outline-offset: 3px;
}

/* — Media frames —————————————————————————————————————————————— */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--stone-100);
  isolation: isolate;
}

.frame > :where(img, picture, picture img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
