:root {
  color-scheme: light;
  --page: #f8faf9;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --ink: #12202b;
  --muted: #5d6b76;
  --line: #d7e0de;
  --accent: #176b7a;
  --accent-strong: #0f4650;
  --active: #2f7d57;
  --shadow: 0 20px 54px rgba(18, 32, 43, 0.14);
}

* {
  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: 700;
  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,
h3 {
  line-height: 1.08;
}

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

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

.install-panel {
  margin-top: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 10px 28px rgba(18, 32, 43, 0.07);
}

.install-panel p {
  max-width: 440px;
  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: 0;
  border-bottom: 1px solid var(--accent-strong);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18px),
    var(--accent-strong);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 70, 80, 0.22);
  cursor: grab;
}

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

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

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

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

.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);
}

.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;
}

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: 700;
  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: #101a22;
  color: #e7edf2;
  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: 40px;
  }

  .lead {
    font-size: 19px;
  }
}
