:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171814;
  background: #f5f2ea;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171814;
  --muted: #696a63;
  --paper: #fffefa;
  --line: #d9d5ca;
  --accent: #c7ff4a;
  --violet: #6f5cff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 255, 74, 0.17), transparent 22rem),
    radial-gradient(circle at 91% 8%, rgba(111, 92, 255, 0.09), transparent 25rem),
    #f5f2ea;
}

a:focus-visible {
  outline: 3px solid rgba(111, 92, 255, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
}

.site-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 24, 20, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--ink);
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: currentColor;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(3) {
  height: 10px;
}

.brand-mark i:nth-child(2) {
  height: 18px;
}

.header-link,
.text-link {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.content-page {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 104px 0 120px;
}

.eyebrow {
  margin-bottom: 20px;
  color: #55574f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.content-page > h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.content-page__intro {
  max-width: 720px;
  margin-bottom: 76px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.content-page > section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.content-page > section h2,
.content-callout h2 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.content-page > section p,
.content-list li,
.content-callout p {
  color: #55574f;
  font-size: 0.96rem;
  line-height: 1.75;
}

.content-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.content-list strong {
  color: var(--ink);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.definition-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.58);
}

.definition-grid h3 {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.definition-grid p {
  margin: 0;
  color: #55574f;
  font-size: 0.82rem;
  line-height: 1.6;
}

.content-callout {
  margin-top: 48px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(111, 92, 255, 0.25);
  border-radius: 24px;
  background: rgba(111, 92, 255, 0.06);
}

.content-callout p {
  max-width: 680px;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(23, 24, 20, 0.13);
  color: #6d6e67;
  font-size: 0.72rem;
}

footer > span:first-child {
  color: var(--ink);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}

footer nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 600px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .content-page {
    padding: 72px 0 88px;
  }

  .content-page > h1 {
    font-size: 3.1rem;
  }

  .content-page__intro {
    margin-bottom: 56px;
  }

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

  footer {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  footer nav {
    margin-left: 0;
  }
}

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