:root {
  color-scheme: light;
  --ink: #191512;
  --ink-soft: #5f5750;
  --paper: #f5f0e8;
  --paper-deep: #eae1d5;
  --card: #fffdf9;
  --line: #d6cabe;
  --line-dark: #2d2824;
  --accent: #d78c6a;
  --accent-dark: #a85235;
  --accent-pale: #f1d5c5;
  --green: #35735e;
  --white: #ffffff;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgb(25 21 18 / 8%) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand img {
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-nav a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav .nav-github {
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 78px 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #c8b7a9;
  border-radius: 999px;
  background: rgb(255 253 249 / 66%);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(53 115 94 / 13%);
}

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

.hero h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 7.6vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.84;
}

.hero h1 em {
  color: var(--accent-dark);
  font-weight: 500;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 760;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  list-style: none;
}

.trust-list li::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 530px;
  place-items: center;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgb(94 76 65 / 22%);
  border-radius: 50%;
}

.orbit-one {
  width: 510px;
  height: 510px;
}

.orbit-two {
  width: 380px;
  height: 380px;
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.visual-orbit::before {
  top: 8%;
  right: 21%;
}

.visual-orbit::after {
  bottom: 12%;
  left: 17%;
  background: var(--green);
}

.rule-preview {
  position: relative;
  z-index: 2;
  width: min(470px, 92%);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--card);
  box-shadow:
    14px 14px 0 var(--accent-pale),
    15px 15px 0 var(--line-dark);
  transform: rotate(1.5deg);
}

.preview-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #ece5dc;
  font-size: 0.8rem;
  font-weight: 750;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.status-pill {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d8eadf;
  color: #24604d;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scope-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
}

.scope-label {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.domain-chip {
  padding: 8px 11px;
  border: 1px solid #c8b7a9;
  border-radius: 4px;
  background: #f8f2eb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
}

.rule-table {
  padding: 8px 22px 12px;
}

.rule-row {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #e6ded5;
  font-size: 0.74rem;
}

.rule-heading {
  min-height: 40px;
  color: #81766e;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.direction {
  color: var(--accent-dark);
  font-weight: 760;
}

.direction.response {
  color: var(--green);
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 22px;
  background: var(--ink);
  color: #eee7df;
  font-size: 0.68rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bc2a8;
}

.manifesto {
  display: grid;
  min-height: 260px;
  padding: 56px 24px;
  background: var(--ink);
  color: #f5ede4;
  place-items: center;
  text-align: center;
}

.manifesto p {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.features-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.64fr 1.36fr;
  gap: 40px;
  margin-bottom: 66px;
}

.section-heading h2,
.product-copy h2,
.privacy-callout h2,
.page-hero h1,
.safe-report h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.feature-card {
  min-height: 318px;
  padding: 28px 28px 34px;
  border-right: 1px solid var(--line-dark);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-number {
  display: block;
  margin-bottom: 76px;
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.feature-card h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.product-copy > p,
.privacy-callout p,
.page-hero > p,
.support-card p,
.safe-report li {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.72;
}

.product-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: center;
  padding: 112px max(24px, calc((100vw - 1240px) / 2));
  background: #e7ded3;
}

.product-copy h2 {
  margin-bottom: 28px;
}

.product-copy > p {
  margin-bottom: 30px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 670;
}

.check-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  font-size: 0.68rem;
  place-items: center;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: #cfc3b7;
  box-shadow: 10px 10px 0 var(--ink);
}

.product-frame img {
  width: 100%;
  height: auto;
}

.privacy-callout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 116px 0;
}

.privacy-callout h2 {
  max-width: 620px;
}

.privacy-callout > div:last-child {
  align-self: end;
  padding-bottom: 8px;
}

.privacy-callout a,
.policy-source {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: start;
  padding: 58px max(24px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: #f5ede4;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 0;
  color: #aca39a;
  font-size: 0.76rem;
}

.site-footer nav {
  display: flex;
  gap: 28px;
  font-size: 0.8rem;
  font-weight: 650;
}

.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid #3b3530;
}

.page-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.page-hero {
  max-width: 820px;
  margin-bottom: 74px;
}

.page-hero h1 {
  margin-bottom: 28px;
}

.page-hero > p {
  max-width: 690px;
  font-size: 1.05rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-dark);
}

.support-card {
  min-height: 380px;
  padding: 36px;
}

.support-card + .support-card {
  border-left: 1px solid var(--line-dark);
}

.support-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 64px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  place-items: center;
}

.support-card h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.support-card p {
  max-width: 490px;
  margin-bottom: 30px;
}

.safe-report {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  margin-top: 36px;
  padding: 52px;
  background: var(--ink);
  color: #f5ede4;
}

.safe-report h2 {
  font-size: clamp(2rem, 3.7vw, 3.6rem);
}

.safe-report ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safe-report li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid #3b3530;
  color: #d8cfc6;
}

.safe-report li::before {
  position: absolute;
  top: 13px;
  left: 0;
  color: var(--accent);
  content: "→";
}

.policy-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 800px);
  gap: 90px;
  justify-content: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 130px;
}

.policy-aside {
  position: sticky;
  top: 40px;
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line-dark);
  background: #ece3d8;
}

.policy-aside h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.policy-aside > p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.policy-aside nav {
  display: grid;
  gap: 8px;
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
}

.policy-source {
  font-size: 0.74rem;
}

.policy-copy {
  min-width: 0;
}

.policy-copy h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.policy-copy h2 {
  margin: 58px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.policy-copy p,
.policy-copy li {
  color: #4f4842;
  font-size: 0.94rem;
  line-height: 1.78;
}

.policy-copy ul {
  padding-left: 24px;
}

.policy-copy li {
  margin-bottom: 9px;
  padding-left: 5px;
}

.policy-copy code {
  padding: 2px 5px;
  border: 1px solid #d7c7bb;
  border-radius: 3px;
  background: #eee5dc;
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82em;
}

.policy-copy a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-copy hr {
  margin: 90px 0;
  border: 0;
  border-top: 2px solid var(--line-dark);
}

.not-found-body {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.not-found {
  width: min(720px, 100%);
  padding: clamp(36px, 7vw, 82px);
  border: 1px solid var(--line-dark);
  background: var(--card);
  box-shadow: 12px 12px 0 var(--accent-pale);
}

.not-found .brand {
  margin-bottom: 90px;
}

.error-code {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.not-found h1 {
  max-width: 550px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.not-found > p:not(.error-code) {
  max-width: 460px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .section-heading,
  .privacy-callout,
  .product-section,
  .safe-report {
    grid-template-columns: 1fr;
  }

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

  .feature-card:nth-child(2) {
    border-right: 0;
  }

  .feature-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .product-section {
    gap: 54px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .policy-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    width: min(100% - 32px, 1240px);
    min-height: 0;
    padding: 18px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:first-child,
  .site-nav .nav-github {
    display: none;
  }

  .hero,
  .features-section,
  .privacy-callout,
  .page-main,
  .policy-layout {
    width: min(100% - 32px, 1240px);
  }

  .hero {
    min-height: 0;
    padding: 58px 0 42px;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 18vw, 5.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
    gap: 10px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .orbit-one {
    width: 350px;
    height: 350px;
  }

  .orbit-two {
    width: 265px;
    height: 265px;
  }

  .rule-preview {
    width: 94%;
    box-shadow:
      8px 8px 0 var(--accent-pale),
      9px 9px 0 var(--line-dark);
  }

  .rule-row {
    grid-template-columns: 0.9fr 0.7fr 1.4fr;
    font-size: 0.65rem;
  }

  .manifesto {
    min-height: 240px;
  }

  .features-section {
    padding: 82px 0;
  }

  .section-heading {
    gap: 0;
  }

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

  .feature-card,
  .feature-card:nth-child(2) {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .feature-number {
    margin-bottom: 48px;
  }

  .product-section {
    padding: 78px 16px;
  }

  .privacy-callout {
    gap: 40px;
    padding: 82px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    gap: 20px;
  }

  .site-footer .copyright {
    grid-column: 1;
  }

  .page-main {
    padding: 70px 0 90px;
  }

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

  .support-card {
    padding: 28px;
  }

  .support-card + .support-card {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .support-icon {
    margin-bottom: 42px;
  }

  .safe-report {
    gap: 34px;
    padding: 34px 28px;
  }

  .policy-layout {
    padding: 56px 0 90px;
  }

  .policy-aside {
    padding: 22px;
  }

  .policy-copy h1 {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
