
:root {
  --paper: #F8F9F9;
  --ink: #15181B;
  --muted: #4F5A64;
  --accent: #C8102E;
  --link-hover: #9C0B22;
  --btn: #C8102E;
  --btn-hover: #9C0B22;
  --hairline: #D8DDE1;
  --tint: #d9d9d9;
  --sans: 'Segoe UI', sans-serif;
  --header-h: 86px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171A;
    --ink: #ECEDEF;
    --muted: #A3ACB5;
    --accent: #FF6F7D;
    --link-hover: #FFA0A9;
    --btn: #C8102E;
    --btn-hover: #E0233F;
    --hairline: #2A2F35;
    --tint: #1B1F23;
  }
}

:root[data-theme="dark"] {
  --paper: #14171A;
  --ink: #ECEDEF;
  --muted: #A3ACB5;
  --accent: #FF6F7D;
  --link-hover: #FFA0A9;
  --btn: #C8102E;
  --btn-hover: #E0233F;
  --hairline: #2A2F35;
  --tint: #1B1F23;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-hover);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 30;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--paper);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* buffalo plaid strip */
.plaid {
  height: 16px;
  background-color: #C8102E;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 50%, transparent 50%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32) 50%, transparent 50%);
  background-size: 16px 16px;
}

/* header */
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.top {
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark img {
  display: block;
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 50%;
  background: var(--tint);
  border: 2px solid var(--ink);
}

.wordmark > span { position: relative; top: -0.11em; }

.wordmark .tld {
  color: var(--muted);
  font-weight: 500;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.topbar nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.hero .lede {
  font-size: 1.2rem;
  max-width: 54ch;
  margin: 24px 0 0;
}

.hero-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero h1,
  .hero .lede,
  .hero .cta-row,
  .hero-art {
    animation: none;
  }
}

/* buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 6px;
  border: 2px solid var(--btn);
  display: inline-block;
}

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

.btn.primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: #fff;
}

.btn.ghost {
  color: var(--ink);
  border-color: var(--hairline);
}

.btn.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* sections */
.band {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.band h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.12;
  font-weight: 720;
}

.section-intro {
  font-size: 1.2rem;
  max-width: 60ch;
  margin: 16px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: start;
}

.split>h2 {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
}

.prose {
  max-width: 66ch;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose .intro {
  font-size: 1.2rem;
}

.prose .pull {
  font-weight: 650;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent);
  max-width: 22ch;
  margin: 1.1em 0;
}

/* plan */
.pillars {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}

.pillar {
  counter-increment: step;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.pillar::before {
  content: counter(step);
  display: block;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.pillar h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar p {
  margin: 0 0 0.9em;
}

/* how to help */
.tint {
  background: var(--tint);
  border-bottom: 1px solid var(--hairline);
}

.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.way {
  padding: 28px 32px 8px 0;
}

.way+.way {
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
}

.way h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.way p {
  margin: 0;
}

.tint .cta-row {
  margin-top: 36px;
}

/* footer */
footer {
  padding-bottom: 56px;
}

footer .plaid {
  margin-bottom: 40px;
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

footer .links a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

footer .links a:hover {
  text-decoration: underline;
}

footer .note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

/* terminal block (unused while commented out in index.html) */
.term {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  max-width: 620px;
}

.term .bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.term .bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(241, 240, 234, 0.25);
}

.term pre {
  margin: 0;
  padding: 20px 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.term .prompt {
  color: #8FB89F;
}

.term .comment {
  color: rgba(241, 240, 234, 0.45);
}

/* responsive */
@media (min-width: 901px) {
  .pillar h3 {
    min-height: 2.3em;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split>h2 {
    position: static;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ways {
    grid-template-columns: 1fr;
  }

  .way,
  .way+.way {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .way:first-child {
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .hero-art {
    order: -1;
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .band {
    padding: 56px 0;
  }

  :root {
    --header-h: 92px;
  }

  .topbar nav {
    gap: 2px 18px;
  }

  .topbar nav a {
    padding: 3px 0;
  }

  footer .row {
    flex-direction: column;
  }
}