:root {
  --color-primary: #0a8bc4;
  --color-primary-dark: #07658f;
  --color-accent: #c99f29;
  --color-bg: #020816;
  --color-bg-alt: #050d1f;
  --color-surface: #070f24;
  --color-text: #e9f5ff;
  --color-muted: #9fb3c8;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020816 60%);
  color: var(--color-text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

sup.reg {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #c99f29;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-text {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  border: none;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

main {
  padding: 2.5rem 0 3.5rem;
}

.page-title {
  font-size: clamp(2rem, 3vw + 0.9rem, 3rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
}

.page-subtitle {
  margin: 0 0 1.8rem;
  color: var(--color-muted);
  max-width: 60ch;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text);
  outline: none;
}

.select {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text);
  outline: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  display: grid;
  gap: 0.55rem;
}

.card[data-card-href] {
  cursor: pointer;
}

.card[data-card-href]:hover {
  border-color: rgba(201, 159, 41, 0.28);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 159, 41, 0.32);
  background: rgba(201, 159, 41, 0.14);
  color: #f4e5ba;
  font-size: 0.8rem;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.card-excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card-actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.link {
  color: #c99f29;
  font-weight: 600;
}

/* Post */
.post {
  max-width: 840px;
}

.breadcrumbs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-title {
  font-size: clamp(2rem, 2.2vw + 1rem, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.post-meta {
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.prose {
  font-size: 1.03rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  color: #e9f5ff;
}

.prose h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #e9f5ff;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prose th {
  text-align: left;
  color: #e9f5ff;
  background: rgba(201, 159, 41, 0.16);
  font-weight: 700;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose td {
  min-width: 280px;
}

.post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #c99f29;
  color: #0b1120;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.post-cta:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

