/* ==========================================================
   Veteran-Owned Startup Directory
   Product Hunt-Grade Modern Theme Stylesheet
   ========================================================== */
/* ---------- Tokens ---------- */
:root {
  --paper: #FAFAFC;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --ink: #0D1117;
  --muted: #57606A;
  --subtle-text: #8C959F;
  --rule: #E1E4E8;
  --rule-subtle: #EDF0F3;
  /* Tactical Palette */
  --field: #1B3B2B; /* Deep matte tactical olive */
  --field-hover: #142D21;
  --on-field: #F6F8FA;
  --accent: #CF222E; /* Precision signal red */
  --accent-muted: rgba(207, 34, 46, 0.08);
  --badge-bg: #F1F3F5;
  --khaki-tint: #F3F1E9; /* Controlled sand/khaki sub-surface */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: 24px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 1px 2px rgba(13, 17, 23, 0.04);
  --shadow-card: 0 2px 4px rgba(13, 17, 23, 0.02), 0 4px 12px rgba(13, 17, 23, 0.04);
  --shadow-card-hover: 0 4px 8px rgba(13, 17, 23, 0.04), 0 12px 24px rgba(13, 17, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #090D12;
    --surface: #0D1117;
    --surface-raised: #161B22;
    --ink: #F0F6FC;
    --muted: #8B949E;
    --subtle-text: #484F58;
    --rule: #30363D;
    --rule-subtle: #21262D;
    --field: #3FB950; /* Bright tactical green for dark mode accents */
    --field-hover: #56D364;
    --on-field: #0D1117;
    --accent: #F85149;
    --accent-muted: rgba(248, 81, 73, 0.12);
    --badge-bg: #161B22;
    --khaki-tint: #161C18;
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(0, 0, 0, 0.6);
  }
}
/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

::selection {
  background: var(--field);
  color: var(--on-field);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -50px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
}

h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.25em;
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.5;
}

.meta {
  font-size: 13px;
  color: var(--subtle-text);
  font-family: var(--font-mono);
}

/* ---------- Layout Shell ---------- */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-content {
  flex: 1;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background-color: var(--surface);
  width: 100%;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  max-width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.primary-nav a:not(.btn) {
  color: var(--muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.primary-nav a:not(.btn):hover {
  color: var(--ink);
}

.primary-nav a[aria-current=page] {
  color: var(--ink);
  font-weight: 600;
}

/* Hide mobile toggle elements on desktop */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* Mobile Viewport Transformation (< 860px) */
@media (max-width: 860px) {
  .masthead-inner {
    height: 64px;
    padding: 0 var(--gutter);
  }
  /* Show Hamburger Button */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
  }
  .nav-toggle-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  /* Turn .primary-nav into a hidden mobile drop-down drawer */
  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
  }
  /* Style individual links inside the mobile drop drawer so text never clips */
  .primary-nav a:not(.btn) {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--rule-subtle);
    display: block;
    width: 100%;
  }
  .primary-nav .btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  /* When checkbox is checked, drop down the menu */
  .nav-toggle-checkbox:checked ~ .primary-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  /* Hamburger to 'X' animation */
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--on-field);
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--rule-subtle);
  border-color: var(--muted);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule-subtle);
  background: radial-gradient(circle at 90% 10%, var(--khaki-tint) 0%, transparent 50%);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 16px;
}

.hero .lead {
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .hero {
    padding: 40px 0 32px;
  }
}
/* ---------- Search + Filters ---------- */
.search {
  display: flex;
  max-width: 520px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
}

.search input:focus-visible {
  outline: none;
}

.search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--rule-subtle);
}

.search button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search button:hover {
  background: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
}

.filters a {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.15s ease;
}

.filters a:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.filters a[aria-current=true] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Section Heading ---------- */
.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head a {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.section-head a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Directory Listings (Product Hunt Feed Cards) ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.listing,
.startup-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing:hover,
.startup-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: var(--shadow-card);
}

.listing-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--rule-subtle);
  object-fit: cover;
  border: 1px solid var(--rule);
}

.listing h3,
.startup-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.listing h3 a,
.startup-card h3 a {
  text-decoration: none;
}

.listing h3 a::after,
.startup-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.listing p,
.startup-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.listing-foot,
.startup-card .flex {
  margin-top: auto;
  position: relative;
  z-index: 2; /* Keeps buttons clickable above absolute card link */
}

.listing-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Branch / Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.badge-verified,
span.bg-blue-100 {
  background: rgba(27, 59, 43, 0.06);
  color: var(--field);
  border-color: rgba(27, 59, 43, 0.15);
}

/* ---------- Map ---------- */
#map {
  height: 440px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

/* ---------- Single Listing / Standard Pages ---------- */
.page,
.profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
}

.prose h2, .prose h3 {
  margin-top: 1.8em;
}

.prose ul, .prose ol {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--field);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.fact-sheet {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-subtle);
}

.fact-sheet dl {
  margin: 0;
}

.fact-sheet dt {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle-text);
  margin-top: 14px;
  font-weight: 600;
}

.fact-sheet dt:first-child {
  margin-top: 0;
}

.fact-sheet dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* ---------- Writing / Blog Feed ---------- */
.blog-section {
  padding-top: 0;
}

.empty-state {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.post-card-featured {
  background: var(--surface);
  border-color: var(--muted);
  padding: 32px;
}

.post-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.post-date {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--subtle-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-arrow {
  font-size: 14px;
  color: var(--muted);
}

.post-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

.post-excerpt {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Post Layout Specific Adjustments */
.post-header-section {
  padding: 48px 0 32px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-container {
  padding-top: 32px;
  padding-bottom: 80px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.featured-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.photo-caption-callout {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* ---------- Forms ---------- */
.form {
  max-width: 560px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin: 0 0 6px;
}

.form .field {
  margin-bottom: 20px;
}

.form .hint {
  font-size: 12.5px;
  color: var(--subtle-text);
  margin: 4px 0 0;
}

.form input[type=text],
.form input[type=email],
.form input[type=url],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px var(--rule-subtle);
  background: var(--surface);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-about p:last-child {
  max-width: 32ch;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 16px;
}

.socials a {
  color: var(--muted);
}

.socials a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* ---------- Reusable CTA Box Styles / _includes/cta-box.html ---------- */
.cta-banner {
  margin: 48px 0;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--field);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cta-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 48ch;
}

.cta-action {
  flex-shrink: 0;
}

.cta-form {
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
}

.cta-input-group {
  display: flex;
  gap: 8px;
}

.cta-input-group input[type=email] {
  flex: 1;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.cta-input-group input[type=email]:focus {
  border-color: var(--ink);
  outline: none;
  background: var(--surface);
}

.cta-form .hint {
  font-size: 12px;
  color: var(--subtle-text);
  margin-top: 6px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
  }
  .cta-form {
    max-width: 100%;
  }
  .cta-input-group {
    flex-direction: column;
  }
  .cta-input-group button {
    width: 100%;
  }
}

/*# sourceMappingURL=main.css.map */