:root {
  --paper: #faf8f3;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0f172a;
  --line: #ece5d8;
  --tint: #f2ecdf;
  --gold: #d6a85d;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: #1e293b; font-family: "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.65; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, .subtitle, .example-body h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; line-height: 1.4; }
h1, h2, h3, .subtitle { color: var(--ink); }
.contact h2, .contact h3 { color: var(--paper); }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #0f172a; color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.815rem; font-weight: 700; letter-spacing: -.06em; }
.brand-name { color: #e1ba53; }
.site-header a:focus-visible { outline-color: #e1ba53; }
.brand-name > span { font-weight: 400; }
.brand-symbol { display: block; width: 44px; height: auto; flex: 0 0 44px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 1rem; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 72px; padding-block: 88px 104px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin-top: 28px; font-size: clamp(3.4rem, 6.5vw, 5.7rem); line-height: 1.1; letter-spacing: -.06em; }
.subtitle { margin-top: 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.025em; }
.hero-description { margin-top: 28px; max-width: 430px; color: var(--muted); }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; margin-top: 30px; padding: 14px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 2px; text-align: center; text-decoration: none; font-size: 1rem; font-weight: 600; }
.download-button:hover { background: #1e293b; text-decoration: underline; }
.download-details { margin-top: 12px; font-size: .95rem; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 26px; min-height: 44px; margin-top: 22px; font-size: 1rem; font-weight: 600; }
.writing-example { background: #fffdf8; border: 1px solid var(--line); box-shadow: 12px 16px 0 #ece5d8; }
.example-top { display: flex; justify-content: space-between; gap: 16px; padding: 17px 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .1em; }
.example-body { padding: 30px 34px 26px; }
.example-kicker { color: var(--muted); font-size: .85rem; }
.example-body h2 { margin-top: 15px; font-size: 2.4rem; }
.example-body > p:last-of-type { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.example-step { display: flex; gap: 18px; padding-top: 21px; margin-top: 21px; border-top: 1px solid var(--line); }
.example-step > span { color: var(--accent); font-size: .8rem; padding-top: 3px; }
.example-step strong { font-size: .95rem; font-weight: 600; }
.example-step p { color: var(--muted); font-size: .85rem; }
figcaption { padding: 14px 28px; background: var(--tint); color: var(--muted); font-size: .8rem; }
.section { padding-block: 80px; }
.about { background: var(--tint); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.about h2, .section-heading h2, .contact h2 { margin-top: 20px; }
.about-copy p + p { margin-top: 20px; }
.about-copy { color: var(--muted); }
.about-copy .principles { color: var(--ink); font-weight: 600; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: end; }
.section-heading > p { color: var(--muted); font-size: 1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 44px; margin-top: 54px; }
.feature-grid article { border-top: 1px solid var(--line); padding-block: 28px 38px; }
.feature-number { color: var(--gold); font-size: .8rem; margin-bottom: 20px; }
.feature-grid h3 { margin-bottom: 12px; }
.feature-grid article > p:last-child { color: var(--muted); font-size: 1rem; }
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #e1ba53; }
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 90px; }
.contact-inner > div > p:not(.eyebrow) { margin-top: 24px; color: #cbd5e1; font-size: 1rem; }
.contact-note { border-left: 1px solid #d6a85d; padding-left: 38px; }
.contact-note .small { font-size: .9rem; }
.online-status { margin-top: 28px; padding-top: 24px; border-top: 1px solid #475569; color: #cbd5e1; font-size: .9rem; }
.online-status strong { color: var(--paper); font-weight: 600; }
.contact-note a { overflow-wrap: anywhere; }
.download-section { text-align: center; }
.download-description { margin-top: 20px; color: var(--muted); }
.download-button-secondary { background: transparent; color: var(--ink); }
.download-button-secondary:hover { background: var(--tint); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 38px; color: var(--muted); font-size: .9rem; }
.footer-brand { color: var(--ink); font-size: 1.2rem; font-weight: 650; }
.copyright { margin-top: 14px; }
.legal-placeholders p + p { margin-top: 8px; }
.legal-placeholders span { font-size: .85rem; }
@media (max-width: 900px) {
  .hero { gap: 36px; padding-block: 64px 80px; }
  .about-grid, .section-heading, .contact-inner { gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .example-body { padding-inline: 24px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px 12px; }
  nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .hero, .about-grid, .section-heading, .contact-inner { grid-template-columns: 1fr; }
  .hero { gap: 52px; padding-block: 48px 64px; }
  .hero-description { max-width: none; }
  .writing-example { margin-right: 12px; }
  .section { padding-block: 56px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .feature-grid article { padding-bottom: 28px; }
  .contact-note { border-left: 0; border-top: 1px solid #d6a85d; padding: 28px 0 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Review-only legal pages: scoped rules preserve the approved home page. */
.legal-page { max-width: 850px; padding-block: 56px; overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-block: 20px; }
.legal-page h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-bottom: 18px; }
.legal-page p + p { margin-top: 16px; }
.legal-page > p, .legal-page > aside, .legal-page > nav { margin-bottom: 28px; }
.legal-page section { padding-block: 28px; border-top: 1px solid var(--line); }
.legal-date { color: var(--muted); }
.legal-review { padding: 24px; border-left: 4px solid var(--gold); background: var(--tint); }
.legal-review p { margin-top: 12px; }
.legal-toc { display: block; }
.legal-toc ol { margin: 0; padding-left: 24px; }
.legal-toc a { display: inline-block; min-height: 44px; padding-block: 7px; }
.review-note { padding: 18px; background: var(--tint); }
.legal-references p { color: var(--muted); }

/* Desktop 1.2.0 release details and verbatim bilingual legal documents. */
.release-details { max-width: 850px; margin: 32px auto 0; text-align: left; overflow-wrap: anywhere; }
.release-details h3 { margin-top: 28px; }
.release-details p { margin-top: 18px; }
.release-details ol, .release-details ul { padding-left: 24px; }
.release-details li + li { margin-top: 12px; }
.download-checksum { overflow-wrap: anywhere; font-size: .9rem; }
.legal-document { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Checksum control follows the existing typography and colours. */
.checksum-copy { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 8px 14px; min-height: 44px; margin-top: 12px; cursor: pointer; }
.checksum-copy:hover { background: var(--tint); }
.checksum-copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
#checksum-copy-status { display: inline-block; margin-left: 12px; }
/* Six-item navigation on Home and Companion Tools only. */
.header-inner--companion .wordmark { flex-shrink: 0; }

@media (min-width: 681px) and (max-width: 1000px) {
  .header-inner--companion {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 20px 12px;
  }

  .header-inner--companion nav { width: 100%; }
}
