/* ============================================================
   PODRONES /D2C — UNIFIED DESIGN SYSTEM
   ------------------------------------------------------------
   Editorial-brutalist hybrid. Warm paper background, oxblood
   accent, forest secondary, Space Grotesk + Libre Baskerville.
   Persistent left rail on desktop, top drawer on mobile.
   ============================================================ */

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

:root {
  /* Surfaces */
  --paper:    #faf8f3;
  --paper-2:  #f4f2ed;
  --paper-3:  #ebe8e1;
  --ink:      #0e0e0e;
  --ink-2:    #2a2a2a;
  --ink-3:    #3a3a3a;
  --ink-mute: #6a6a6a;
  --ink-faint:#9a9a9a;
  --border:   #d8d4cb;
  --border-2: #c4bfb4;
  --white:    #ffffff;

  /* Brand */
  --accent:    #e84c1e;       /* burnt orange — primary accent */
  --accent-d:  #c7401a;
  --accent-l:  #fff0ec;
  --forest:    #1a5c3a;       /* secondary — affirmative */
  --forest-l:  #f0f7f3;
  --amber:     #d4820a;
  --pod-navy:  #0F1E2D;       /* host site nav */
  --pod-teal:  #4DD4AC;       /* host site logo accent */

  /* Status */
  --red:       #B91C1C;
  --green:     #15803D;

  /* Type */
  --f-display: 'Libre Baskerville', Georgia, serif;
  --f-body:    'Space Grotesk', -apple-system, sans-serif;

  /* Layout */
  --rail-w:    280px;
  --rail-w-collapsed: 0px;
  --content-max: 1080px;
}

html, body { background: var(--paper); }

body {
  font-family: var(--f-body);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }

/* ============================================================
   TOP STRIP — Podrones host nav (matches the parent site)
   ============================================================ */
.host-nav {
  background: var(--pod-navy);
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.host-logo {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.host-logo span { color: var(--pod-teal); }

.host-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.host-nav-links a {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.host-nav-links a:hover { color: #fff; }
.host-nav-links a.active { color: var(--pod-teal); }

.rail-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 36px; height: 32px;
  border-radius: 3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.rail-toggle:hover { background: rgba(255,255,255,0.06); }

/* ============================================================
   LAYOUT — left rail + content
   ============================================================ */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: calc(100vh - 52px);
}

/* ============================================================
   LEFT RAIL
   ============================================================ */
.rail {
  background: var(--paper-2);
  border-right: 1px solid var(--border);
  padding: 32px 24px 40px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.rail-section {
  margin-bottom: 28px;
}

.rail-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--ink-faint);
}

.rail-brand {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rail-brand-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
}
.rail-brand-mark .accent { color: var(--accent); }

.rail-brand-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.12s, color 0.12s;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -12px;
  padding-left: 12px;
}

.rail-list a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.rail-list a.active {
  background: var(--white);
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 600;
}

.rail-list a .arrow {
  color: var(--ink-faint);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}
.rail-list a:hover .arrow,
.rail-list a.active .arrow { opacity: 1; color: var(--accent); }

.rail-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  background: var(--paper-3);
  color: var(--ink-mute);
}
.rail-tag.new { background: var(--accent); color: #fff; }
.rail-tag.soon { background: var(--paper-3); color: var(--ink-faint); font-style: italic; }

.rail-cta {
  margin-top: 32px;
  padding: 18px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
}
.rail-cta-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.rail-cta-text {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 12px;
}
.rail-cta-btn {
  display: block;
  background: var(--accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.rail-cta-btn:hover { background: var(--accent-d); color: #fff !important; }

/* ============================================================
   MOBILE — rail becomes drawer
   ============================================================ */
.rail-backdrop {
  display: none;
  position: fixed;
  inset: 52px 0 0 0;
  background: rgba(14,14,14,0.4);
  z-index: 90;
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .rail-toggle { display: inline-flex; }
  .rail {
    position: fixed;
    top: 52px;
    left: 0;
    width: 280px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .rail.open { transform: translateX(0); }
  .rail-backdrop.open { display: block; }
}

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.content {
  padding: 56px 64px 80px;
  max-width: var(--content-max);
}

@media (max-width: 720px) {
  .content { padding: 36px 28px 56px; }
}

/* ============================================================
   TYPE SCALE
   ============================================================ */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

h1.page-title {
  font-family: var(--f-body);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
  color: var(--ink);
}

h1.page-title em {
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--accent);
}

h2.section-title {
  font-family: var(--f-body);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 640px;
}
h2.section-title em {
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--forest);
}

h3 {
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.section { margin-bottom: 72px; }
.section.tight { margin-bottom: 48px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: #134c2f; color: #fff; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  background: var(--paper);
  padding: 32px 28px;
  transition: background 0.15s;
}
.card:hover { background: var(--paper-2); }

.card-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 8px; }

.card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Resource / route cards (homepage) */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.route-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.route-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.route-card:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.route-card:hover::before { transform: scaleX(1); }

.route-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 14px;
}

.route-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.route-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.route-card .route-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Persona split: For Founders / For Ops Leads */
.persona-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .persona-split { grid-template-columns: 1fr; }
}

.persona {
  padding: 36px 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.persona.founder { background: var(--paper); }
.persona.ops { background: var(--paper-2); }

.persona-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.persona.founder .persona-tag { background: var(--accent); color: #fff; }
.persona.ops .persona-tag { background: var(--forest); color: #fff; }

.persona h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.persona p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.persona-links {
  list-style: none;
  margin-bottom: 24px;
}
.persona-links li {
  padding: 8px 0;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
}
.persona-links li:first-child { border-top: 1px solid var(--border-2); }
.persona-links a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.persona-links a:hover { color: var(--accent); }
.persona-links .pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   STATS / METRICS
   ============================================================ */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.metric {
  background: var(--paper);
  padding: 24px 22px;
}
.metric-val {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.metric-val.forest { color: var(--forest); }
.metric-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  line-height: 1.45;
}

/* ============================================================
   PROSE BLOCKS / READING
   ============================================================ */
.prose p { margin-bottom: 16px; font-size: 15px; color: var(--ink-2); line-height: 1.75; max-width: 680px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { margin: 16px 0 24px 0; padding-left: 22px; max-width: 680px; }
.prose ul li { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 6px; }

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  background: var(--accent-l);
  border: 1px solid #f5cfc4;
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout strong { color: var(--accent-d); }
.callout p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.callout.forest {
  background: var(--forest-l);
  border-color: #b8d4c5;
  border-left-color: var(--forest);
}
.callout.forest strong { color: var(--forest); }

/* ============================================================
   FOOTER (in-content)
   ============================================================ */
.page-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-faint);
}
.page-footer a { color: var(--ink-mute); margin: 0 10px; }
.page-footer a:hover { color: var(--accent); }
