/* =========================================================
   Root variables
========================================================= */
:root {
  --bg: #fafcff;
  --muted: #6b7280;
  --accent-1: #5b9cff;
  --accent-2: #6b73ff;
  --card-bg: #ffffff;
  --radius: 14px;
  --container-width: 1100px;
}

/* =========================================================
   Base styles
========================================================= */
* { box-sizing: border-box; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: var(--bg);
  color: #0f1724;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: calc(100% - 40px);
  max-width: var(--container-width);
  margin: 0 auto;
}

.section { padding: 40px 0; }
.section h2 { margin-top: 0; }
.muted { color: var(--muted); }

a.link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-1);
  text-decoration: none;
}

/* =========================================================
   Header
========================================================= */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: #0f1724;
  font-size: 1.05rem;
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 36, 0.06);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: white;
  border: none;
}

/* =========================================================
   Hero section (Homepage only)
========================================================= */
.hero { padding: 60px 0; }

.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-copy { flex: 1; }

.hero-copy h1 {
  font-size: 2.25rem;
  margin: 0 0 12px;
}

.lead {
  color: var(--muted);
  margin: 0 0 22px;
}

.hero-media {
  flex: 1;
  text-align: right;
}

.hero-media img {
  max-width: 420px;
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 25, 45, 0.08);
}

/* =========================================================
   Cards / Labels grid (Homepage)
========================================================= */
.labels-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12,18,32,0.06);
  display: flex;
  flex-direction: column;
}

.card-media {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(107,115,255,0.06), rgba(91,156,255,0.03));
  padding: 18px;
}

.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 6px; }

/* Code snippet */
.snippet {
  background: #f3f6fb;
  padding: 10px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: #0b1220;
  overflow: auto;
  margin-top: 16px;
}

/* =========================================================
   Label Detail Pages
========================================================= */
.label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.label-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.label-header .label-svg {
  max-width: 160px;
  width: 25%;
  margin-left: auto;
}

.desc {
  margin-top: 12px;
  color: var(--muted);
}

/* Dos & Don'ts blocks */
.dos-donts {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 280px;
  background: var(--card-bg);
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(12,18,32,0.04);
  border: 1px solid rgba(11,17,32,0.04);
}

.col h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon bullet list */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.icon-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  padding: 18px 0;
  background: transparent;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
  width: calc(100% - 40px);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-left a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(107,114,128,0.12);
  padding-bottom: 2px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-label {
  display: inline-block;
  width: 110px;
  height: auto;
}

/* =========================================================
   Media Queries
========================================================= */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-media { text-align: center; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================================================
   Icons (inline SVG masks)
========================================================= */
.icon-check {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
}

.icon-close {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center / contain;
}
