/* ===========================================================
   SnapShop · Custom theme (light) matching brand palette
   White base + deep forest text + adjusted mint accent.
   =========================================================== */

:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-soft:       #fafaf7;
  --bg-card:       #fdfbf6;

  /* Text */
  --text:          #0D2B24;       /* Deep forest as primary text */
  --text-dim:      #3d5751;       /* Mid forest for body */
  --text-mute:     #6e7e79;       /* Muted for meta */

  /* Brand */
  --forest:        #0D2B24;
  --forest-deep:   #061612;
  --cream:         #F5E6D3;
  --mint:          #00A87E;       /* Deeper mint, readable on white */
  --mint-strong:   #008B66;
  --mint-soft:     rgba(0, 168, 126, 0.08);

  /* Lines */
  --hairline:      rgba(13, 43, 36, 0.08);
  --hairline-2:    rgba(13, 43, 36, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============== HEADER ============== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 8px rgba(13, 43, 36, 0.15);
}
.brand-name {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--mint-strong);
}

/* ============== MAIN ============== */
.site-main {
  padding: 72px 0 96px;
}
.content {
  /* No card wrapper, content sits directly on white */
}

/* ============== TYPOGRAPHY ============== */
.content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 36px;
}
.content h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 56px 0 16px;
  padding-top: 8px;
}
.content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 32px 0 12px;
}
.content p {
  margin: 16px 0;
  color: var(--text-dim);
}
.content strong, .content b {
  color: var(--text);
  font-weight: 700;
}
.content ul, .content ol {
  margin: 16px 0;
  padding-left: 28px;
  color: var(--text-dim);
}
.content li {
  margin: 8px 0;
}
.content li::marker {
  color: var(--mint);
}
.content a {
  color: var(--mint-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: background 0.15s;
}
.content a:hover {
  background: var(--mint-soft);
}
.content hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

/* ============== TABLES ============== */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.content thead {
  background: var(--bg-soft);
}
.content th {
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--mint);
}
.content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-dim);
  vertical-align: top;
}
.content tbody tr:last-child td { border-bottom: none; }
.content tbody tr:hover {
  background: var(--mint-soft);
}

/* ============== CODE ============== */
.content code {
  background: var(--bg-soft);
  color: var(--mint-strong);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  border: 1px solid var(--hairline);
}
.content pre {
  background: var(--forest);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.55;
}
.content pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--cream);
  font-size: inherit;
}
.content blockquote {
  border-left: 3px solid var(--mint);
  background: var(--mint-soft);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  color: var(--text-dim);
}

/* ============== FOOTER ============== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  margin-top: 96px;
  background: var(--bg-soft);
}
.site-footer p {
  color: var(--text-mute);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--mint-strong);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .content h1 { font-size: 34px; }
  .content h2 { font-size: 22px; margin-top: 40px; }
  .content h3 { font-size: 18px; }
  .site-main { padding: 40px 0 56px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .brand-name { font-size: 17px; }
  .content table { font-size: 13px; }
  .content th, .content td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .site-nav a:nth-child(1),
  .site-nav a:nth-child(2) { display: none; }
}
