:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --text: #1b1e24;
  --card: #ffffff;
  --accent: #0b7285;
  --dark-bg: #222222;
  --light-text: #cccccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff, var(--bg));
  min-height: 100vh;
  padding: 88px 0 0;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
}

.header-inner {
  width: min(1000px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #f5f5f5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: #ffffff;
}

main,
.content-card {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto 24px;
  background: var(--card);
  border: 1px solid #e8ebef;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

h1 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent);
}

p {
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.fine-print {
  margin-top: 26px;
  font-size: 0.95rem;
}

.legal-page .content-card {
  width: min(920px, calc(100% - 28px));
}

.legal-page h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page ul {
  line-height: 1.6;
}

.site-footer {
  margin-top: auto;
  background: var(--dark-bg);
  color: var(--light-text);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 740px) {
  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    gap: 8px;
  }
}

/* Long-form article styles */
.intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3f4a;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 0;
  margin-bottom: 32px;
}

h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.technique {
  border-top: 1px solid #e8ebef;
  padding-top: 24px;
  margin-top: 24px;
}

.technique-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.skill-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.skill-nocode {
  background: #e0f5e9;
  color: #1b6b30;
}

.skill-lowcode {
  background: #fff4cc;
  color: #7a5500;
}

.skill-code {
  background: #fde8e8;
  color: #8b1a1a;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f0f2f5;
  border-radius: 4px;
  padding: 1px 5px;
}

.closing-section {
  border-top: 2px solid var(--accent);
  padding-top: 24px;
  margin-top: 28px;
}

/* Detail page styles */
.back-link {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.detail-section {
  border-top: 1px solid #e8ebef;
  padding-top: 22px;
  margin-top: 22px;
}

.detail-section h2 {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.detail-section ol,
.detail-section ul {
  line-height: 1.7;
  padding-left: 22px;
}

.detail-section li {
  margin-bottom: 6px;
}

.detail-section li ul,
.detail-section li ol {
  margin-top: 6px;
}

pre {
  background: #f0f2f5;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.83rem;
}

/* Learn more button on homepage technique cards */
.learn-more {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  border: none;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(11, 114, 133, 0.35);
}

.learn-more:hover {
  background: #0a6275;
  box-shadow: 0 4px 12px rgba(11, 114, 133, 0.45);
  color: #ffffff;
}
