:root {
  --bg-sand-light: #faf9f5;
  --bg-sand-dim: #f1ecde;
  --char-core: #2b3946;
  --char-muted: #5c6e7f;
  --char-dim: #8b9baa;
  --orange: #ff8a1f;
  --orange-subtle: rgba(255, 138, 31, 0.07);
  --orange-dim: rgba(255, 138, 31, 0.22);
  --blue: #2f6f9f;
  --green: #0f9f6e;
  --border: #e2dcd0;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "DM Mono", monospace;
  --shadow: 4px 4px 0 var(--char-core);
  --shadow-sm: 2px 2px 0 var(--char-core);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--char-core);
  background-color: var(--bg-sand-light);
  background-image:
    linear-gradient(rgba(43, 57, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 57, 70, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: var(--font-body);
  line-height: 1.72;
}

a { color: inherit; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--border);
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: var(--char-core);
  border: 2px solid var(--char-core);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}

.brand-mark svg { width: 24px; height: 24px; display: block; }
.brand span span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; color: var(--char-muted); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--char-core); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  border: 2px solid var(--char-core);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn-primary { color: #fff; background: var(--orange); }
.btn-outline { color: var(--char-core); background: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before { content: "//"; opacity: 0.65; }

.hero {
  padding: 78px 0 52px;
  border-bottom: 2px solid var(--border);
  background:
    linear-gradient(90deg, rgba(255, 138, 31, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(47, 111, 159, 0.07), transparent 50%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  gap: 34px;
  align-items: end;
}

h1 {
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.6vw, 94px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span { color: var(--orange); }

.dek {
  max-width: 760px;
  margin-top: 22px;
  color: var(--char-muted);
  font-size: 18px;
}

.meta-box {
  border: 2px solid var(--char-core);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 12px;
}

.meta-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.meta-box div:last-child { border-bottom: 0; }
.meta-box span { color: var(--char-muted); }
.meta-box strong { text-align: right; }

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 38px;
  padding: 64px 0;
  align-items: start;
}

article { min-width: 0; }

article h2 {
  margin: 42px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

article h2:first-child { margin-top: 0; }

article h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

article p,
article li {
  color: var(--char-muted);
  font-size: 16px;
}

article p + p { margin-top: 16px; }
article ul,
article ol { margin: 16px 0 0 22px; }
article li + li { margin-top: 8px; }

.pullquote {
  margin: 30px 0;
  border-left: 5px solid var(--orange);
  background: var(--bg-sand-dim);
  padding: 22px;
  color: var(--char-core);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.side-panel,
.post-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-panel h2,
.side-panel h3,
.post-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.side-panel p,
.post-card p {
  margin-top: 10px;
  color: var(--char-muted);
  font-size: 14px;
}

.side-panel a:not(.btn),
.post-card a:not(.btn) {
  color: var(--char-core);
  font-weight: 800;
}

.toc { display: grid; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 800; }
.toc a { color: var(--char-muted); text-decoration: none; }
.toc a:hover { color: var(--orange); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 54px 0;
}

.post-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-meta {
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-card .btn { width: fit-content; margin-top: 18px; }

.cta-band {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--char-core);
  color: #fff;
  padding: 54px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.cta-band p {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.faq {
  padding: 64px 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg-sand-dim);
}

.faq h2 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

details {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

details + details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 900; color: var(--char-core); }
details p { margin-top: 12px; color: var(--char-muted); }

footer {
  padding: 30px 0;
  background: var(--char-core);
  color: rgba(255, 255, 255, 0.74);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .hero-layout,
  .article-wrap,
  .post-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cta-band .container { align-items: flex-start; flex-direction: column; }
}
