/* OutpostLog — Field Logistics Blog */
:root {
  --olive: #5a6b3a;
  --olive-dark: #3d4a28;
  --olive-light: #7a8f52;
  --khaki: #c4b48a;
  --khaki-light: #e8dfc8;
  --sand: #f5f0e6;
  --charcoal: #2a2a28;
  --charcoal-mid: #3f3f3b;
  --muted: #6b6b63;
  --orange: #d9773a;
  --orange-hover: #c4652e;
  --white: #ffffff;
  --border: #ddd6c5;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(42, 42, 40, 0.08);
  --shadow-lg: 0 8px 32px rgba(42, 42, 40, 0.12);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --narrow: 720px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: white; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--charcoal);
  color: var(--sand);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--sand); font-weight: 700;
  font-size: 1.2rem; letter-spacing: 0.02em;
}
.logo:hover { color: var(--khaki-light); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { line-height: 1.1; }
.logo-text span { display: block; font-size: 0.65rem; font-weight: 500; color: var(--khaki); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--khaki);
  color: var(--sand); padding: 0.4rem 0.7rem; border-radius: 4px;
  cursor: pointer; font-size: 0.9rem;
}
.nav-list {
  display: flex; list-style: none; gap: 0.25rem; padding: 0; margin: 0;
  align-items: center;
}
.nav-list a {
  color: var(--khaki-light); text-decoration: none;
  padding: 0.45rem 0.85rem; border-radius: 4px; font-size: 0.95rem; font-weight: 500;
}
.nav-list a:hover, .nav-list a[aria-current="page"] {
  background: var(--olive-dark); color: white;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--charcoal-mid); flex-direction: column; padding: 0.75rem;
    border-bottom: 3px solid var(--orange); gap: 0;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: 0.75rem 1rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--olive-dark) 55%, var(--olive) 100%);
  color: var(--sand);
  padding: 3.5rem 0 3.75rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 12px,
    rgba(0,0,0,0.03) 12px, rgba(0,0,0,0.03) 24px
  );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(217,119,58,0.2);
  border: 1px solid var(--orange); color: var(--khaki-light);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 750; line-height: 1.15; max-width: 18ch;
  margin-bottom: 1rem; color: white;
}
.hero-tagline {
  font-size: 1.2rem; color: var(--khaki); max-width: 36ch;
  margin-bottom: 1.75rem; line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.35rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--orange); color: white; }
.btn--primary:hover { background: var(--orange-hover); color: white; }
.btn--ghost { background: transparent; border-color: var(--khaki); color: var(--sand); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: white; }
.btn--outline {
  background: transparent; border-color: var(--olive); color: var(--olive-dark);
}
.btn--outline:hover { background: var(--olive); color: white; }
.btn--block { width: 100%; }

/* Sections */
.section { padding: 3rem 0; }
.section--alt { background: var(--white); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: 1.55rem; font-weight: 700; color: var(--charcoal);
}
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem;
}
.link-more { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--olive); }
.link-more:hover { color: var(--orange); }

/* Cards */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.post-card__img {
  aspect-ratio: 16/10; background: var(--olive-dark); overflow: hidden;
  position: relative;
}
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.post-card__title {
  font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.post-card:hover .post-card__title { color: var(--olive); }
.post-card__excerpt {
  font-size: 0.95rem; color: var(--muted); flex: 1; line-height: 1.55;
}
.post-card__cta {
  margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--orange);
}

/* Start here */
.start-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.start-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.start-card:hover { border-color: var(--olive); box-shadow: var(--shadow); color: inherit; }
.start-card__num {
  display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  background: var(--olive); color: white; border-radius: 50%; font-weight: 700;
  font-size: 0.9rem; margin-bottom: 0.85rem;
}
.start-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--charcoal); }
.start-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Email signup */
.signup {
  background: var(--charcoal);
  color: var(--sand);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--orange);
}
.signup h2, .signup h3 { color: white; margin-bottom: 0.5rem; }
.signup p { color: var(--khaki); margin-bottom: 1.25rem; max-width: 40ch; }
.signup-form {
  display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 480px;
}
.signup-form input[type="email"] {
  flex: 1 1 200px; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--charcoal-mid); background: var(--charcoal-mid);
  color: white; font-size: 1rem; font-family: inherit;
}
.signup-form input::placeholder { color: var(--khaki); opacity: 0.7; }
.signup-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.signup-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }
.signup--inline {
  margin: 2.5rem 0; background: var(--olive-dark);
}
.signup--page {
  max-width: 560px; margin: 0 auto;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--olive-dark); color: var(--sand);
  padding: 2.25rem 0 2rem;
  border-bottom: 3px solid var(--orange);
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: white; margin-bottom: 0.4rem; }
.page-hero p { color: var(--khaki); max-width: 50ch; }

/* Prose / article */
.prose { padding: 2.5rem 0 3.5rem; }
.prose h2 {
  font-size: 1.45rem; margin: 2.25rem 0 0.85rem; color: var(--charcoal);
  padding-bottom: 0.35rem; border-bottom: 2px solid var(--khaki);
}
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; color: var(--olive-dark); }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; }
.prose strong { color: var(--charcoal); }
.prose blockquote {
  border-left: 4px solid var(--orange); padding: 0.75rem 1.25rem;
  background: var(--khaki-light); margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--charcoal-mid); font-style: italic;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem;
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.prose th, .prose td {
  padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.prose th { background: var(--olive-dark); color: white; font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
.prose .callout {
  background: white; border: 1px solid var(--border); border-left: 4px solid var(--olive);
  padding: 1.15rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.prose .callout strong { display: block; margin-bottom: 0.3rem; color: var(--olive-dark); }

.affiliate-note {
  font-size: 0.88rem; background: var(--khaki-light); border: 1px solid var(--border);
  padding: 0.85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.75rem;
  color: var(--charcoal-mid);
}
.affiliate-note a { font-weight: 600; }

.post-hero-pin {
  margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden;
  background: var(--olive-dark); aspect-ratio: 2/3; max-height: 520px;
  box-shadow: var(--shadow-lg); position: relative;
}
.post-hero-pin img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-meta-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related h2 { font-size: 1.3rem; margin-bottom: 1.25rem; border: none; padding: 0; }

/* Checklist printable */
.checklist {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0;
}
.checklist h3 { margin-top: 0; color: var(--olive-dark); }
.checklist label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.4rem 0; cursor: pointer; font-size: 0.98rem;
}
.checklist input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--olive); flex-shrink: 0;
}
.print-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }

@media print {
  .site-header, .site-footer, .signup, .related, .print-actions, .nav-toggle, .affiliate-note { display: none !important; }
  body { background: white; font-size: 11pt; }
  .post-hero-pin { max-height: 200px; }
  .checklist { break-inside: avoid; border: 1px solid #ccc; }
}

/* Footer */
.site-footer {
  background: var(--charcoal); color: var(--khaki); padding: 2.75rem 0 1.5rem;
  margin-top: auto; font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { max-width: 32ch; line-height: 1.55; }
.footer-col h4 {
  color: white; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 0.45rem; }
.footer-col a { color: var(--khaki); text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--charcoal-mid); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}

/* Utility pages */
.legal-list { margin: 1rem 0 1.5rem; }
.contact-box {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; max-width: 420px; margin: 2rem auto;
  box-shadow: var(--shadow);
}
.contact-box a {
  font-size: 1.25rem; font-weight: 700; color: var(--olive); text-decoration: none;
}
.contact-box a:hover { color: var(--orange); }

/* 404 */
.error-page {
  text-align: center; padding: 5rem 1rem 6rem;
}
.error-page .code {
  font-size: 5rem; font-weight: 800; color: var(--olive); line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { color: var(--muted); margin-bottom: 1.75rem; max-width: 36ch; margin-inline: auto; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--olive); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 0.4rem; color: var(--border); }

/* Blog index */
.blog-intro { margin-bottom: 2rem; color: var(--muted); max-width: 50ch; }
