:root {
  --ink: #172b29;
  --muted: #455b57;
  --paper: #f8f9f6;
  --white: #fff;
  --tint: #eaf0eb;
  --rule: #c7d2cc;
  --link: #12564a;
  --gold: #f2c16b;
  --green: #205642;
  --green-tint: #dcefe3;
  --red: #7b3040;
  --red-tint: #f7e8ec;
  --amber: #725016;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
button, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:is(a, button, summary, textarea):focus-visible { outline: 3px solid #92580b; outline-offset: 4px; }
code { overflow-wrap: anywhere; }
.wrap { width: min(calc(100% - 3rem), 1120px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; padding: .5rem .8rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; z-index: 2; }

.masthead { border-bottom: 1px solid var(--rule); }
.header-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; }
.wordmark { color: var(--ink); font-size: 1.32rem; font-weight: 650; text-decoration: none; }
.wordmark span { color: var(--link); }
.header-row nav, .footer-row nav { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; }
.header-row nav a { text-decoration: none; padding-block: .55rem; }
.header-row nav a:hover { text-decoration: underline; }

.hero, .section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.hero { padding-block: clamp(3rem, 7.5vw, 7rem); }
h1 { max-width: 12ch; font-size: clamp(2.6rem, 5.25vw, 5rem); font-weight: 620; line-height: 1.02; letter-spacing: -.012em; }
h2 { font-weight: 570; font-size: clamp(1.65rem, 3.1vw, 2.55rem); line-height: 1.15; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 620; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.25rem); max-width: 38ch; margin-top: 1.25rem; }
.independent { color: var(--muted); margin-top: 1.25rem; font-size: .9rem; }
.get-started { min-width: 0; padding: clamp(1.2rem, 3.4vw, 2.6rem); background: var(--tint); }
.get-started > p, .section-intro p, .setup-content p { color: var(--muted); margin-top: .8rem; }
.copy-action { margin-top: 1.3rem; }
.copy-button {
  min-height: 50px;
  min-width: min(100%, 13rem);
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .65rem .95rem;
  border: 0;
  border-radius: 4px;
  font-weight: 620;
  color: var(--white);
  background: var(--link);
}
.copy-button:hover { background: #0d4038; }
.copy-button:active { background: #092e28; }
.copy-button.copied { background: var(--gold); color: #30220c; }
.copy-button.copied:hover { background: #edb454; }
.copy-icon { display: inline-block; position: relative; width: 20px; height: 20px; flex: none; }
.copy-icon::before, .copy-icon::after { content: ''; display: block; position: absolute; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.copy-icon::before { left: 3px; top: 2px; }
.copy-icon::after { left: 7px; top: 6px; background: var(--link); }
.copy-button:hover .copy-icon::after { background: #0d4038; }
.copied .copy-icon::before { display: none; }
.copied .copy-icon::after {
  width: 12px;
  height: 7px;
  left: 4px;
  top: 4px;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
}
.copy-button.copied:hover .copy-icon::after { background: transparent; }
.copy-rays { display: none; position: absolute; width: 32px; height: 32px; right: -21px; top: -19px; pointer-events: none; }
.copy-rays i { position: absolute; width: 3px; height: 10px; left: 4px; top: 0; background: #94610b; border-radius: 1px; }
.copy-rays i:nth-child(2) { top: 4px; left: 15px; transform: rotate(43deg); }
.copy-rays i:nth-child(3) { top: 15px; left: 22px; transform: rotate(76deg); }
.copied .copy-rays { display: block; animation: copy-rays .46s ease-out both; }
@keyframes copy-rays { 0% { opacity: 0; transform: scale(.42); } 45% { opacity: 1; transform: scale(1.17); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .copied .copy-rays { animation: none; } }
.copy-help { min-height: 1.6em; font-size: .94rem; }
.copy-help[role=status] { margin-bottom: .55rem; }
.get-started details { margin-top: .65rem; }
summary { color: var(--link); padding-block: .45rem; }
.prompt-label { display: block; font-size: .875rem; margin-block: .45rem .2rem; }
.agent-help { font-size: .93rem; }
textarea {
  width: 100%;
  min-height: 9rem;
  padding: .75rem;
  resize: vertical;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: .95rem;
}

.why-section { padding-block: clamp(1.8rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem); }
.why-section p { max-width: 63ch; }
.why-section p:first-child { margin-top: 0; }
.release-note { font-size: .9rem; }
.example-section { background: var(--tint); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.why-section .section-grid, .example-section .section-grid, .copilot-section, .setup { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
.copilot-section { padding-block: 0 clamp(2.5rem, 6vw, 5rem); }
.copilot-options { margin: 0; }
.copilot-options dt { font-weight: 620; color: var(--ink); }
.copilot-options dd { margin: .2rem 0 0; max-width: 63ch; color: var(--muted); }
.copilot-options dd + dt { margin-top: 1rem; }
.section-intro p { max-width: 37ch; }
.example { background: var(--white); padding: clamp(1rem, 3vw, 1.7rem); }
.example-heading, .check-row { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; }
.switch { display: flex; gap: .18rem; }
.switch button {
  border: 0;
  border-radius: 3px;
  background: transparent;
  min-height: 44px;
  padding: .3rem .55rem;
  font-size: .9rem;
}
.switch button:hover, .switch button[aria-pressed="true"] { background: var(--tint); }
.switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .22em; }
.example-content { margin-top: .6rem; min-height: 8.8rem; }
.excerpt { margin-bottom: .5rem; }
del { color: var(--red); background: var(--red-tint); }
ins { color: var(--green); background: var(--green-tint); text-underline-offset: .18em; }
.check-row { padding: .35rem 0; border-top: 1px solid var(--rule); font-size: .925rem; }
.pass { color: var(--green); }
.fail { color: var(--red); }
.pending { color: var(--amber); }
figcaption { margin-top: .65rem; font-size: .875rem; color: var(--muted); }
.setup { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.setup-content details { border-bottom: 1px solid var(--rule); }
.setup-content details:first-child { border-top: 1px solid var(--rule); }
.setup-content summary { padding-block: .85rem; }
.setup-content p, .setup-content ul { margin: 0 0 1rem; }
.setup-content li + li { margin-top: .5rem; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.35rem; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; gap: .65rem 1rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .section-grid, .why-section .section-grid, .example-section .section-grid, .copilot-section, .setup { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero { padding-block: 2.5rem; }
  h1 { max-width: 15ch; font-size: clamp(2.5rem, 9vw, 3.8rem); }
  .independent { margin-top: .8rem; }
}
@media (max-width: 500px) {
  .header-row { justify-content: flex-start; flex-wrap: wrap; padding-block: .65rem; }
  .header-row nav { flex-basis: 100%; gap: .3rem 1.1rem; }
  .header-row nav a { font-size: .9rem; }
}
