@import url("./variables.css");
@import url("./reset.css");

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -10%, rgba(212, 33, 45, 0.09), transparent 28rem),
    var(--sb-black);
  color: var(--sb-white);
  font-family: var(--font-main);
  line-height: 1.6;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

main {
  min-height: 70vh;
}

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

.section {
  position: relative;
  padding: clamp(82px, 9vw, 132px) 0;
}

.section--tight {
  padding-block: clamp(56px, 6vw, 82px);
}

.section--surface {
  background: var(--sb-charcoal);
}

.section--line::before {
  position: absolute;
  inset: 0 auto auto 50%;
  width: var(--container);
  height: 1px;
  background: var(--sb-border);
  content: "";
  transform: translateX(-50%);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 5.4rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.6vw, 4.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

p {
  color: var(--sb-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sb-white);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: var(--sb-red);
  content: "";
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-heading p {
  max-width: 660px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.accent {
  color: var(--sb-red-bright);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

.ink-word {
  position: relative;
  display: inline-block;
  color: var(--sb-red-bright);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.ink-stroke {
  position: absolute;
  top: calc(100% - 0.08em);
  left: -3%;
  overflow: visible;
  width: 106%;
  height: 0.28em;
  color: var(--sb-red-bright);
  pointer-events: none;
}

.ink-stroke path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ink-word.is-drawn .ink-stroke path {
  animation: draw-ink 0.82s var(--ease) forwards;
}

@keyframes draw-ink {
  to {
    stroke-dashoffset: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.68s var(--ease),
    transform 0.68s var(--ease);
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--sb-white);
  color: var(--sb-black);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

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

::selection {
  background: var(--sb-red);
  color: white;
}
