:root {
  --paper: #f3efe7;
  --surface: #fffdf8;
  --ink: #102119;
  --green: #174c3f;
  --deep: #102f28;
  --wine: #89364d;
  --gold: #c79b34;
  --mist: #e3ece7;
  --line: #c8c5bb;
  --muted: #56635d;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body { margin: 0; }

a { color: inherit; }

.masthead {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.masthead nav a {
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 56px;
  align-items: end;
  margin: 0 auto;
  padding: 78px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -.035em;
  line-height: 1.06;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 6.3vw, 78px);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy {
  max-width: 710px;
  margin: 0 0 28px;
  color: #405048;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 830;
  text-decoration: none;
}

.button--ghost {
  background: transparent;
  color: var(--green);
}

.hero-card {
  padding: 30px;
  border-top: 4px solid var(--gold);
  background: var(--deep);
  color: #eef4f0;
  box-shadow: 0 22px 60px rgba(16, 47, 40, .16);
}

.hero-card p {
  margin: 0 0 24px;
  color: #cfddd6;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.hero-card dl { margin: 0; }

.hero-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid #48685d;
}

.hero-card dt { color: #afc4ba; }
.hero-card dd { margin: 0; font-weight: 830; text-align: right; }

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section--tool {
  width: 100%;
  background: var(--mist);
}

.section--tool > div,
.section--tool > header {
  width: min(1160px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.62;
}

.frame-shell {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(16, 33, 25, .08);
}

.tool-frame {
  display: block;
  width: 100%;
  height: 860px;
  border: 0;
}

.method-grid,
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.method-grid article,
.facts-grid article {
  min-width: 0;
  padding: 26px;
  background: var(--surface);
}

.method-grid p,
.facts-grid p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}

.plugin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  gap: 42px;
  align-items: start;
  padding: 36px;
  border-top: 4px solid var(--gold);
  background: var(--deep);
  color: #eef4f0;
  box-shadow: 0 22px 60px rgba(16, 47, 40, .13);
}

.plugin-panel h2 { max-width: 700px; }

.plugin-panel__copy > p:not(.eyebrow):not(.integrity) {
  max-width: 730px;
  color: #cfddd6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.62;
}

.plugin-panel .button {
  border-color: #eef4f0;
  background: #eef4f0;
  color: var(--deep);
}

.plugin-panel .button--ghost {
  background: transparent;
  color: #eef4f0;
}

.integrity {
  margin: 18px 0 0;
  color: #afc4ba;
  font-size: 12px;
  line-height: 1.55;
}

.integrity code {
  overflow-wrap: anywhere;
}

.plugin-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plugin-step;
}

.plugin-steps li {
  position: relative;
  min-height: 58px;
  padding: 4px 0 17px 52px;
  border-bottom: 1px solid #48685d;
  counter-increment: plugin-step;
}

.plugin-steps li + li { padding-top: 17px; }

.plugin-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #789689;
  border-radius: 50%;
  color: var(--gold);
  content: counter(plugin-step);
  font-weight: 850;
}

.plugin-steps li + li::before { top: 13px; }

.plugin-steps strong,
.plugin-steps span { display: block; }

.plugin-steps span {
  margin-top: 4px;
  color: #afc4ba;
  font-size: 13px;
  line-height: 1.45;
}

.plugin-steps code {
  color: #eef4f0;
  overflow-wrap: anywhere;
}

.plugin-boundary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.embed-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: start;
  padding: 34px;
  border-top: 4px solid var(--wine);
  background: var(--surface);
}

.embed-panel p {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}

.embed-code label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 830;
}

.embed-code textarea {
  width: 100%;
  height: 260px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #91a199;
  border-radius: 3px;
  background: #f4f0e8;
  color: #26352e;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.embed-code button {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 830;
  cursor: pointer;
}

.copy-status {
  min-height: 21px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.source-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.source-list a { text-underline-offset: 3px; }

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    padding: 58px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .embed-panel {
    grid-template-columns: 1fr;
  }
  .plugin-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .method-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .tool-frame { height: 1120px; }
}

@media (max-width: 520px) {
  .masthead {
    width: min(100% - 26px, 1160px);
    min-height: 68px;
  }
  .masthead nav { display: none; }
  .hero,
  .section,
  .section--tool > div,
  .section--tool > header,
  .footer {
    width: min(100% - 26px, 1160px);
  }
  .hero { padding: 42px 0 48px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 17px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .hero-card,
  .embed-panel,
  .plugin-panel { padding: 22px 18px; }
  .section { padding: 55px 0; }
  .section--tool { padding: 55px 0; }
  .frame-shell { padding: 8px; }
  .tool-frame { height: 1320px; }
  .embed-code textarea { height: 310px; }
}
