:root {
  color-scheme: light;
  --bubblegum-pink: #ef476f;
  --royal-gold: #ffd166;
  --emerald: #06d6a0;
  --ocean-blue: #118ab2;
  --dark-teal: #073b4c;

  --bg: #f4fbfd;
  --surface: #ffffff;
  --surface-soft: #e8f6fa;
  --text: #073b4c;
  --muted: #365d6c;
  --link: #0b6f90;
  --link-hover: #ef476f;
  --line: #9dcad8;
  --focus: #ffd166;
  --max: 860px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgb(255 209 102 / 30%), transparent 40%),
    radial-gradient(circle at top left, rgb(6 214 160 / 18%), transparent 38%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex: 0 0 auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem;
}

header {
  background: linear-gradient(95deg, var(--dark-teal), var(--ocean-blue));
  color: #ffffff;
  border-bottom: 1px solid var(--line);
}

header a {
  color: #ffffff;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

header .lead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(255 255 255 / 88%);
}

main.container {
  flex: 1 0 auto;
  width: 100%;
}

footer {
  margin-top: auto;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--dark-teal);
}

.article-content h1 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--ocean-blue);
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  padding-left: 0.6rem;
  border-left: 4px solid var(--emerald);
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: #0a5a73;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.lead {
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: #5f8997;
}

.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.breadcrumb span[aria-current='page'] {
  color: var(--dark-teal);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgb(7 59 76 / 8%);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  background: var(--dark-teal);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
}

.pager a:hover {
  background: var(--bubblegum-pink);
  color: #ffffff;
}

.pager a:focus-visible {
  outline: none;
  border-color: var(--royal-gold);
  box-shadow: 0 0 0 3px rgb(255 209 102 / 35%);
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

code {
  background: rgb(17 138 178 / 12%);
  color: var(--dark-teal);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

pre {
  position: relative;
  background: var(--surface);
  color: var(--text);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ocean-blue);
  border-radius: 8px;
  padding: 2.3rem 1rem 1rem;
  line-height: 1.55;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.code-copy-button {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--dark-teal);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.code-copy-button:hover {
  background: rgb(17 138 178 / 18%);
}

.code-copy-button[data-state="copied"] {
  background: rgb(6 214 160 / 22%);
  border-color: var(--emerald);
}

.code-copy-button[data-state="error"] {
  background: rgb(239 71 111 / 18%);
  border-color: var(--bubblegum-pink);
}

.code-copy-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(255 209 102 / 45%);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #667f8a;
}

.token.punctuation,
.token.operator {
  color: #456874;
}

.token.keyword,
.token.boolean,
.token.atrule {
  color: #7f2db3;
}

.token.string,
.token.attr-value,
.token.char,
.token.inserted {
  color: #007d5e;
}

.token.function,
.token.class-name,
.token.property,
.token.constant,
.token.symbol {
  color: #0f6f95;
}

.token.number,
.token.deleted {
  color: #c73759;
}

