:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --text: #1d1d1b;
  --muted: #6b6257;
  --accent: #0db7ed;
  --accent-dark: #098db8;
  --border: #dbcdbd;
  --code-bg: #f3ede2;
  --shadow: rgba(60, 39, 13, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #efe7da 0%, #f8f4ed 100%);
  color: var(--text);
  line-height: 1.65;
  padding-bottom: 50px;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(13, 183, 237, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(17, 24, 39, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.github-link {
  position: fixed;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: #111827;
  border: 1px solid rgba(29, 29, 27, 0.12);
  box-shadow: 0 10px 30px var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.github-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(60, 39, 13, 0.18);
  color: #FF6600; /* RabbitMQ Orange */
}

main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 40px auto;
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(60, 39, 13, 0.08);
}

h1, h2, h3 {
  font-family: Cambria, Georgia, serif;
  line-height: 1.2;
  color: #14342b;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.8rem;
  margin-top: 0;
  border-bottom: 3px double var(--border);
  padding-bottom: 10px;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent-dark);
}

h3 {
  font-size: 1.4rem;
  color: #2c5547;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 30px;
}

.main-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px var(--shadow);
}

.main-image img {
  width: 100%;
  display: block;
}

.content-image {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow);
  border: 1px solid var(--border);
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fdfaf3;
  box-shadow: 0 10px 22px rgba(60, 39, 13, 0.08);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 20px 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.pill {
  border: 1px solid var(--border);
  background: #f8f2e8;
  color: #3e3224;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fdfaf3;
  box-shadow: 0 12px 28px rgba(60, 39, 13, 0.08);
  margin: 25px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

thead {
  background: #efe7da;
  color: var(--accent-dark);
}

pre {
  background: #1d2430;
  color: #f4f7fb;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.2em 0;
}

code {
  font-family: Consolas, monospace;
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #c0392b;
}

pre code {
  background: transparent;
  color: #a5d6ff;
  padding: 0;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 5px 15px var(--shadow);
}

.accordion-header {
  width: 100%;
  background: #fdfaf3;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border: 0;
  font-family: inherit;
  font-size: 1.1rem;
  color: #14342b;
}

.accordion-header i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-dark);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--paper);
}

.accordion-content-inner {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.accordion-item.active .accordion-content {
  max-height: 2000px; /* Large enough to fit content */
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 12px;
}

@media (max-width: 768px) {
  main {
    margin: 10px;
    padding: 20px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .accordion-header { padding: 15px; font-size: 1rem; }
}
