:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #52606d;
  --line: #d6dde5;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.compact {
  width: min(760px, calc(100% - 32px));
}

.hero {
  padding: 28px 0 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.2rem;
}

.panel,
.target {
  margin-top: 20px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grid,
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.grid a,
.back {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefe;
  text-decoration: none;
}

.grid a:hover,
.back:hover {
  border-color: var(--accent);
}

.link-list {
  grid-template-columns: 1fr;
}

.link-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefe;
}

.link-list p {
  margin-bottom: 10px;
  color: var(--muted);
}

.path {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  text-decoration: none;
}

code {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f8;
  color: #26323f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
}

.preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 20px 0 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .shell {
    padding: 28px 0;
  }

  .split {
    grid-template-columns: 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
