:root {
  --ink: #1a1714;
  --ink-mid: #4a4540;
  --ink-light: #857e78;
  --rule: #d6d0c8;
  --page: #f7f4ef;
  --accent: #8b3a2a;
  --accent-lt: #c4614d;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── MASTHEAD ── */
header {
  border-bottom: 2px solid var(--ink);
  padding: 2.8rem 0 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

a {
  flex-shrink: 0;
  font-size: inherit;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
  white-space: nowrap;
}

a:hover {
  color: var(--accent-lt);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.centered {
  text-align: center;
}

.masthead-eyebrow {
  font-family: 'Source Serif 4', serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tagline {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.55;
}

.tagline.small {
  font-size: 0.8rem;
}

/* ── HORIZONTAL RULE ── */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

.rule--heavy {
  border-top: 2px solid var(--ink);
  margin: 3rem 0 2.8rem;
}

/* ── PULL QUOTE / LEDE ── */
.lede {
  opacity: 0;
  animation: fadeUp 0.9s 0.15s ease forwards;
}

.lede-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin-bottom: 1.8rem;
}

.lede-body {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 680px;
  line-height: 1.75;
}

.lede-body p+p {
  margin-top: 1rem;
}

/* ── TWO-TRACK SECTION ── */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 400;
  display: block;
  margin-bottom: 1.6rem;
}

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}

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

  .track:first-child {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}

.track {
  padding: 1.8rem 2rem;
}

.track:first-child {
  border-right: 1px solid var(--rule);
}

.track-number {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}

.track h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.track p {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── DESIGN PRINCIPLES ── */
.principles {
  opacity: 0;
  animation: fadeUp 0.9s 0.45s ease forwards;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.4rem;
}

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

.principle-item {
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}

.principle-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.principle-desc {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ── DOCUMENTS ── */
.documents {
  opacity: 0;
  animation: fadeUp 0.9s 0.55s ease forwards;
}

.documents-teaser {
  color: var(--ink-mid);
  max-width: 560px;
  margin-bottom: 1rem;
}

.doc-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
}

.doc-cta:hover {
  color: var(--accent-lt);
}

.doc-desc {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
  line-height: 1.5;
}

/* ── FOOTER ── */
footer {
  border-top: 2px solid var(--ink);
  padding: 2rem 0 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s ease forwards;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

/* .founder-block {} */

.founder-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
}

.founder-role {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-top: 0.1rem;
}

.contact-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
  margin-top: 0.4rem;
  display: inline-block;
}

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

.version-note {
  font-size: 0.72rem;
  color: var(--ink-light);
  text-align: right;
  line-height: 1.6;
}

.changelog-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
}

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

/* ── SECTION SPACING ── */
section {
  padding: 3rem 0;
}

section+section {
  padding-top: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

/* ── CHANGELOG ── */
.changelog {
  max-width: 720px;
}

.changelog-header h1 {
  margin: 1rem 0;
}

.changelog-intro {
  font-style: italic;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 3rem;
}

.changelog-row {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: -2.2rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.6s ease;
  scroll-margin-top: 5rem;
}

.changelog-row:first-child {
  padding-top: 0;
  margin-top: 0;
}

.changelog-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.changelog-row.highlight {
  background-color: rgba(139, 58, 42, 0.08);
}

.changelog-row-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.changelog-row-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--ink);
}

.changelog-row-date {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-left: auto;
}

.change-type {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.15rem;
}

.change-type.addition {
  background: #e8f4e8;
  color: #2d6a2d;
}

.change-type.revision {
  background: #f4f0e8;
  color: #6a5a2d;
}

.change-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* ── VERIFY ── */
.verify-banner {
  background: #f4ede0;
  color: #6a5a2d;
  font-size: 0.78rem;
  padding: 0.7rem 1rem;
  border: 1px solid #e5d9bd;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.verify-intro {
  color: var(--ink-mid);
  font-size: 0.95rem;
  max-width: 680px;
  margin-bottom: 1rem;
}

.verify-status {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: italic;
}

.status-top {
  margin-top: 2rem;
}

.verify-howto {
  max-width: 680px;
  margin-top: 2.2rem;
  margin-bottom: 2.2rem;
}

.verify-howto summary {
  font-size: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  display: inline-block;
  transition: color 0.15s;
}

.verify-howto summary:hover {
  color: var(--accent-lt);
}

.verify-howto p {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

.verify-howto code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  background: var(--rule);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
}

.verify-doc-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.verify-doc-card {
  border: 1px solid var(--rule);
  padding: 1.6rem 1.8rem;
}

.verify-doc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.verify-doc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.verify-doc-version {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.verify-doc-unanchored {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: italic;
}

.verify-row {
  font-size: 0.82rem;
  color: var(--ink-mid);
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.verify-row-label {
  color: var(--ink-light);
  flex-shrink: 0;
}

.checksum-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.checksum-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.15s;
}

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

.checksum-link.revealed {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.70rem;
  background: var(--rule);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  border-bottom: none;
  word-break: break-all;
}

.copied-badge {
  color: var(--ink-light);
  opacity: 0;
  transition: opacity 0.4s;
}

.copied-badge.visible {
  opacity: 1;
}

.verify-links {
  margin-top: 0.6rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

