/* hundred — reset, type ramp, shared components */

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

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

/* keep anchor targets clear of the fixed header */
[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ---- type ramp ---- */

.t-display,
.t-display-md,
.t-display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em; /* brand: Display Bold, tracking −3% */
}

.t-display {
  font-size: 68px;
  line-height: 1.1;
}

.t-display-md {
  font-size: 48px;
  line-height: 1.1;
}

.t-display-sm {
  font-size: 36px;
  line-height: 1.2;
}

.t-body-lg {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.t-body {
  font-size: 16px;
  line-height: 1.25;
}

.t-small {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.t-eyebrow {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-muted {
  color: var(--muted);
}

.t-body-lg strong,
.t-body strong {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 767px) {
  .t-display {
    font-size: 40px;
  }

  .t-display-md {
    font-size: 32px;
  }

  .t-display-sm {
    font-size: 28px;
  }
}

/* ---- layout ---- */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.card-40 {
  background: var(--off-white);
  border-radius: var(--r-card);
  padding: 50px 32px;
}

@media (min-width: 768px) {
  .card-40 {
    padding: 60px 50px;
  }
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: #3a3a3a;
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--muted);
}

.btn--glass {
  background: var(--glass);
  color: #ebebe4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* glass buttons only ever sit on dark media — ink outline would vanish there */
.btn--glass:focus-visible {
  outline-color: var(--paper);
}

.btn .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(2px);
}

/* text links with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
}

.link-arrow .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* ---- chips & badges ---- */

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow-badge--peach {
  background: var(--chip-peach);
  color: var(--chip-peach-ink);
}

.eyebrow-badge--lemon {
  background: var(--chip-lemon);
  color: var(--chip-lemon-ink);
}

.chip-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--chip-gold);
  color: var(--chip-gold-ink);
  font-size: 15px;
  font-weight: 500;
}

/* ---- placeholder media ---- */

.ph {
  position: relative;
  overflow: hidden;
  background-color: #d9d2c4;
}

.ph--grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- scroll reveal ---- */

.reveal {
  opacity: 1;
  transform: none;
}

/* hidden state is gated behind the .js root class (set inline in <head>)
   so content stays visible when JS is disabled or fails to load */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-med) var(--ease-out),
      transform var(--dur-med) var(--ease-out);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- a11y helpers ---- */

/* skip link: visually hidden until focused, then a solid pill over the header */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

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