@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #141517;
  --surface:   #1c1e21;
  --surface2:  #232629;
  --border:    #2e3135;
  --text:      #ede8df;
  --text-muted:#7d7870;
  --brass:     #c8912a;
  --brass-dim: #8a6218;
  --steel:     #4e8fb5;
  --radius:    4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER / NAV ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wordmark-icon { width: 28px; height: 28px; flex-shrink: 0; }
.wordmark span { color: var(--brass); }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  background: var(--brass) !important;
  color: #0e0d0b !important;
  font-weight: 500 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius) !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.88; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ─── SHARED SECTION STYLES ─────────────────────────────── */
section { padding: 80px 24px; }
section + section { border-top: 1px solid var(--border); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--brass);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
}

.see-all {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  align-self: flex-end;
}
.see-all:hover { color: var(--text); border-color: var(--text-muted); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brass);
  color: #0e0d0b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ─── KIT FORM OVERRIDES ─────────────────────────────────── */
.kit-override .formkit-form { background: transparent !important; padding: 0 !important; border: none !important; }
.kit-override .formkit-input { background: var(--bg) !important; border: 1px solid var(--border) !important; color: var(--text) !important; font-family: 'DM Sans', sans-serif !important; font-size: 15px !important; padding: 13px 16px !important; border-radius: 4px !important; }
.kit-override .formkit-submit { background: var(--brass) !important; color: #0e0d0b !important; font-family: 'DM Sans', sans-serif !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; border-radius: 4px !important; border: none !important; }
.kit-override .formkit-alert { color: var(--brass) !important; background: transparent !important; border: none !important; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 18px,
    rgba(200,145,42,0.04) 18px,
    rgba(200,145,42,0.04) 19px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 24px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass);
  display: block;
}

.hero-sub {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Subscribe card */
.hero-subscribe {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
}
.hero-subscribe h3 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-subscribe p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.subscribe-form input::placeholder { color: var(--text-muted); }
.subscribe-form input:focus { border-color: var(--brass); }
.subscribe-form button {
  width: 100%;
  background: var(--brass);
  color: #0e0d0b;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.subscribe-form button:hover { opacity: 0.88; }
.subscribe-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* ─── FEATURED POSTS ────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.featured-main {
  background: var(--surface);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.featured-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 30%, rgba(0,0,0,0.6) 100%);
}
.featured-main::after {
  content: '§';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 280px;
  color: rgba(200,145,42,0.06);
  pointer-events: none;
  line-height: 1;
}
.featured-main > * { position: relative; }

.post-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 16px;
}

.featured-main h2 {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.post-meta .divider { opacity: 0.4; }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 20px;
  transition: gap 0.15s;
}
.read-link:hover { gap: 10px; }

.featured-side {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-post {
  background: var(--surface2);
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.side-post:hover { background: var(--surface); border-left-color: var(--brass); }
.side-post h3 {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.side-post p { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }

/* ─── TOOLS GRID ────────────────────────────────────────── */
.tools-section { background: var(--surface); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.tool-card:hover { border-color: var(--brass-dim); transform: translateY(-2px); }
.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon svg { width: 20px; height: 20px; stroke: var(--brass); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tool-card h3 {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.tool-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }

.tool-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(78,143,181,0.3);
  border-radius: 2px;
  padding: 2px 7px;
  align-self: flex-start;
}

/* ─── RECENT POSTS LIST ─────────────────────────────────── */
.posts-list { display: flex; flex-direction: column; }

.post-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.post-row:first-child { border-top: 1px solid var(--border); }
.post-row:hover .post-row-title { color: var(--brass); }

.post-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--border);
  line-height: 1;
  text-align: right;
  letter-spacing: 0.02em;
}

.post-row-title {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.post-row-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.post-row-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── NEWSLETTER BAND ───────────────────────────────────── */
.newsletter-band {
  background: var(--surface);
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner .section-label { justify-content: center; }
.newsletter-inner .section-label::before { display: none; }
.newsletter-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 20px;
}
.newsletter-inner p {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--brass); }
.newsletter-form button {
  background: var(--brass);
  color: #0e0d0b;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.newsletter-form button:hover { opacity: 0.88; }

/* ─── ARTICLE / POST PAGE ───────────────────────────────── */
.post-hero {
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--border);
}
.post-hero-inner { max-width: 760px; margin: 0 auto; }

.post-hero .post-category { margin-bottom: 24px; }

.post-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.post-hero .post-meta { margin-top: 20px; }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.post-body p {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 28px;
}

.post-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 48px 0 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.post-body h3 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 14px;
}

.post-body ul, .post-body ol {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
  margin: 0 0 28px 24px;
}
.post-body li { margin-bottom: 8px; }

.post-body strong { color: var(--text); font-weight: 600; }

.post-body em { font-style: italic; color: var(--text-muted); }

.post-body a { color: var(--brass); text-decoration: underline; }

.post-body blockquote {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
.post-body blockquote p {
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-body code {
  font-family: monospace;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--brass);
}

/* Pro tip callout */
.post-body .tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.post-body .tip p { font-size: 15px; margin: 0; }

/* Post footer */
.post-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px 10px;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.post-nav a {
  text-decoration: none;
  padding: 20px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.post-nav a:hover { border-color: var(--brass-dim); }
.post-nav .nav-dir {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.post-nav .nav-title {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.post-nav .next { text-align: right; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.footer-wordmark span { color: var(--brass); }
.footer-tagline { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 24px;
  text-align: center;
}

/* ─── MOBILE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .featured-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .post-row { grid-template-columns: 48px 1fr; }
  .post-row-date { display: none; }
  nav { display: none; }
  .hamburger { display: flex; }
  .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 56px 16px; }
  .hero { padding: 56px 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .nav-inner { padding: 0 16px; }
  .featured-main { padding: 28px 24px; }
  .featured-main::after { font-size: 160px; }
}

/* ─── ENTRY ANIMATION ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label   { animation: fadeUp 0.5s ease both 0.05s; }
.hero h1      { animation: fadeUp 0.5s ease both 0.12s; }
.hero-sub     { animation: fadeUp 0.5s ease both 0.22s; }
.hero-links   { animation: fadeUp 0.5s ease both 0.30s; }
.hero-subscribe { animation: fadeUp 0.5s ease both 0.18s; }

/* ─── MOBILE NAV ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    gap: 4px;
    z-index: 99;
  }
  nav.nav-open a {
    padding: 10px 14px;
    border-radius: var(--radius);
  }
  nav.nav-open a:hover {
    background: var(--surface);
  }
  .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
