:root {
  color-scheme: light;
  --bg: #eef2ea;
  --ink: #0e1512;
  --muted: #5a675f;
  --line: rgba(14, 21, 18, 0.12);
  --panel: rgba(250, 253, 248, 0.9);
  --accent: #166d57;
  --accent-dark: #0e4d3d;
  --ember: #e68b2f;
  --shadow: 0 30px 84px rgba(15, 34, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 109, 87, 0.20), transparent 28%),
    radial-gradient(circle at top right, rgba(230, 139, 47, 0.16), transparent 24%),
    linear-gradient(180deg, #f7fbf5 0%, var(--bg) 100%);
}

.library-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero,
.featured-tool,
.panel,
.catalog-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 44px;
}

.kicker,
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.intro,
.workbench-note,
.tool-lede,
.fine-print,
.catalog-card p,
li,
pre {
  color: var(--muted);
}

.intro {
  max-width: 46rem;
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.workbench-note {
  max-width: 42rem;
  margin: 16px 0 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #f8fffb;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.compact {
  min-width: 120px;
}

.featured-tool {
  display: grid;
  grid-template-columns: 120px 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
}

.tool-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, var(--accent) 0%, #63c5a5 100%);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.tool-copy h2,
.catalog-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.tool-copy h2 {
  font-size: 2.4rem;
}

.tool-lede {
  margin: 12px 0 0;
  line-height: 1.7;
}

.tool-meta p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 26px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 10px 0;
  line-height: 1.6;
}

pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 18px;
  background: #f9fdf8;
  border: 1px solid rgba(14, 21, 18, 0.08);
}

code {
  font-family: "Courier New", monospace;
}

.catalog {
  margin-top: 24px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 14px;
}

.catalog-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
}

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

.catalog-card p {
  margin: 8px 0 0;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .library-shell {
    width: min(100vw - 24px, 1080px);
    padding-top: 24px;
  }

  .hero {
    padding: 28px 22px;
  }

  .featured-tool,
  .library-grid,
  .catalog-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .tool-mark {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    font-size: 2rem;
  }
}
