:root {
  color-scheme: light;
  --ink: #20201d;
  --muted: #6f6d64;
  --paper: #f4f1e8;
  --paper-deep: #ebe6d9;
  --line: #cbc5b6;
  --green: #315f4b;
  --green-soft: #dce9df;
  --red-soft: #f1deda;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 10%, rgba(205, 221, 211, .7), transparent 27rem),
    var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: -.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px 6px;
  border-radius: 10px;
  background: var(--ink);
  gap: 3px;
}

.mark i { display: block; height: 4px; border-radius: 3px; background: var(--paper); }
.mark i:nth-child(2) { width: 68%; background: #89b49c; }
.mark i:nth-child(3) { width: 82%; }

.nav-link { color: var(--muted); font-size: 14px; text-underline-offset: 4px; }

.hero {
  padding: 92px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #4c9b72; box-shadow: 0 0 0 5px rgba(76, 155, 114, .13); }

h1 {
  margin: 0;
  max-width: 660px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}

h1 em { color: var(--green); font-weight: 400; }

.lede {
  max-width: 570px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.actions { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 19px;
  color: white;
  border-radius: 9px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(32, 32, 29, .18);
  transition: transform .18s ease, background .18s ease;
}

.download:hover { transform: translateY(-2px); background: var(--green); }
.download:focus-visible, a:focus-visible { outline: 3px solid #e39e57; outline-offset: 3px; }
.download svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.review-card {
  overflow: hidden;
  border: 1px solid #bdb7aa;
  border-radius: 17px;
  background: #faf9f4;
  box-shadow: 0 35px 80px rgba(67, 63, 52, .18), 0 3px 10px rgba(67, 63, 52, .09);
  transform: rotate(1deg);
}

.window-bar {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #dad6cc;
  color: #6d6b65;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.traffic { display: flex; gap: 7px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #ddd8ce; }
.traffic i:first-child { background: #e98a77; }
.traffic i:nth-child(2) { background: #e5bd5f; }
.traffic i:last-child { background: #72b77c; }
.status { justify-self: end; color: var(--green); }

.review-body { display: grid; grid-template-columns: 170px 1fr; min-height: 390px; }

aside { padding: 20px 11px; border-right: 1px solid #dedad0; background: #f1eee6; }
aside p { margin: 0 8px 14px; color: #88847b; font-size: 9px; letter-spacing: .12em; }
aside p b { float: right; }
aside a { display: flex; justify-content: space-between; gap: 5px; padding: 9px 8px; color: #625f58; border-radius: 6px; font-size: 10px; text-decoration: none; }
aside a span { color: #57836c; }
aside a.active { color: #26382f; background: #dfe8e1; font-weight: 700; }

.diff { min-width: 0; background: #fffefb; }
.file-head { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e2ded5; font-size: 11px; }
.file-head span { color: var(--green); }
pre { margin: 0; overflow: hidden; color: #504e49; font: 10px/1.75 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.line { display: block; padding: 1px 12px; white-space: pre; }
.line b { display: inline-block; width: 25px; color: #a09c93; font-weight: 400; user-select: none; }
.line.added { background: var(--green-soft); }
.line.removed { background: var(--red-soft); }

.comment { display: flex; gap: 11px; margin: 20px; padding: 13px; border: 1px solid #d8d4cb; border-left: 3px solid var(--green); border-radius: 7px; background: #fff; }
.comment > span { flex: 0 0 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 9px; font-weight: 800; }
.comment p { margin: 0; color: #77736b; font-size: 10px; line-height: 1.55; }
.comment b { color: var(--ink); }

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

.proof article { padding: 42px 38px 46px 0; }
.proof article + article { padding-left: 38px; border-left: 1px solid var(--line); }
.proof span { color: #8b887f; font: 11px ui-monospace, monospace; }
.proof h2 { margin: 32px 0 11px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.proof p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

footer { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 30px; min-height: 140px; color: var(--muted); font-size: 12px; }
footer p:first-child { color: var(--ink); font-weight: 750; }
footer p:nth-child(2) { text-align: center; }
footer a { justify-self: end; text-underline-offset: 4px; }
footer a span { color: var(--green); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .review-card { transform: none; }
}

@media (max-width: 650px) {
  main, footer { width: min(100% - 28px, 1180px); }
  nav { height: 72px; }
  .hero { padding: 58px 0 64px; }
  h1 { font-size: clamp(47px, 15vw, 67px); }
  .lede { font-size: 16px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .review-body { grid-template-columns: 1fr; min-height: 0; }
  aside { display: none; }
  .window-bar { grid-template-columns: 1fr 1fr; }
  .window-bar > span:nth-child(2) { display: none; }
  .proof { grid-template-columns: 1fr; }
  .proof article, .proof article + article { padding: 32px 0; border-left: 0; }
  .proof article + article { border-top: 1px solid var(--line); }
  .proof h2 { margin-top: 18px; }
  footer { grid-template-columns: 1fr auto; min-height: 110px; }
  footer p:nth-child(2) { display: none; }
}

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