/* Reset and page-wide primitives: type defaults, buttons, links, focus */

* {
  box-sizing: border-box;
}

/* The UA rule for [hidden] is display:none, and any author rule that sets
   display beats it — which is how five tab panels all stayed on screen. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: var(--claim);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--title);
  line-height: 1.06;
}

h3 {
  font-size: var(--heading);
  line-height: 1.15;
}

p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
}

code.mono {
  font-size: 0.92em;
  color: var(--cream);
  white-space: nowrap;
}

.link {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 83, 0.5);
  transition: border-color 0.2s, color 0.2s;
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(232, 230, 220, 0.18);
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.btn:hover {
  border-color: rgba(0, 200, 83, 0.55);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #07130a;
  font-weight: 500;
}

.btn--solid:hover {
  background: #10d160;
  border-color: #10d160;
}

.btn__icon {
  width: 15px;
  height: 15px;
}

/* A button that stands on its own rather than in a row of equals. */
.btn--wide {
  padding: 0.8rem 1.5rem;
  font-size: 0.86rem;
}

.btn__note {
  color: rgba(232, 230, 220, 0.45);
  font-size: 0.72rem;
}

.btn--solid .btn__note {
  color: rgba(7, 19, 10, 0.55);
}

/* Applied by js/presentation/reveal.js, never by this sheet: a page without
   JavaScript must show these blocks at rest, not hidden forever. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
