:root {
  color-scheme: light;
  --page: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #e9f3ee;
  --ink: #172126;
  --muted: #607077;
  --line: #d5dfdc;
  --accent: #2f7d57;
  --accent-strong: #1e5d41;
  --teal: #176a77;
  --graphite: #22292c;
  --shadow: 0 22px 54px rgba(23, 33, 38, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: var(--accent-strong);
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 0.92em;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 38px;
}

h1,
h2 {
  line-height: 1.08;
}

h1 {
  max-width: 580px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  max-width: 570px;
  margin: 16px 0 0;
  color: #314047;
  font-size: 20px;
  line-height: 1.45;
}

.install-panel {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 38, 0.08);
}

.install-panel p {
  max-width: 450px;
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.bookmarklet-link {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--accent-strong);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 20px),
    var(--accent-strong);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(30, 93, 65, 0.22);
  cursor: grab;
}

.bookmarklet-link::before {
  content: ":::";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: -2px;
}

.bookmarklet-link:hover {
  transform: translateY(-1px);
}

.bookmarklet-link:active {
  cursor: grabbing;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.caption,
.meta,
.microcopy {
  color: var(--muted);
  font-size: 14px;
}

.hero-media figcaption {
  max-width: 620px;
  margin-top: 12px;
}

.section {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 42px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: 0;
}

.section p {
  margin: 0 0 16px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.text-link {
  font-weight: 750;
}

details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  padding: 14px 16px;
  color: var(--accent-strong);
  font-weight: 750;
  cursor: pointer;
}

details .meta {
  margin: 0;
  padding: 0 16px 12px;
}

.source-box {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #11191d;
  color: #e7edf0;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero,
  .section {
    display: block;
  }

  .hero {
    padding: 32px 0 34px;
  }

  .hero-media {
    margin-top: 30px;
  }

  .section {
    padding: 38px 0;
  }

  .section h2 {
    margin-bottom: 16px;
  }
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 19px;
  }

  .bookmarklet-link {
    justify-content: flex-start;
    text-align: left;
  }
}
