/* ==========================================================================
   IndieFounder "Editorial Warm" skin
   Loaded LAST (after products.css / redesign.css / polish.css). Tokens live
   in theme.css; this layer re-skins components site-wide: warm paper, serif
   headlines, hairline borders, soft cards and one terracotta accent.
   ========================================================================== */

html body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */
html:root:root:root body h1,
html:root:root:root body h2,
html:root:root:root body h3,
html:root:root:root body h4,
html:root:root:root body .brand-name,
html:root:root:root body .launch-name,
html:root:root:root body .launches-cat-heading,
html:root:root:root body .section-head h2 {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.12;
  font-optical-sizing: auto;
  text-wrap: balance;
}
html:root:root:root body h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
html:root:root:root body h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
html:root:root:root body h3 { font-size: 1.2rem; }
html:root:root:root body h1 em,
html:root:root:root body h2 em,
html:root:root:root body .accent-italic { font-style: italic; font-weight: 500; color: var(--accent-text); }
html:root:root:root body a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--mark); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 3px !important; border-radius: 6px; }

/* Small uppercase labels */
html:root:root:root body .launch-cat-pill,
html:root:root:root body .launches-top20-label,
html:root:root:root body .foot-col h2,
html:root:root:root body .launch-pricing-pill,
html:root:root:root body 
html:root:root:root body .hero-kicker {
  font-family: var(--font-text) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
}

/* ---------- Cards & panels (everything except the ranked feed rows) ---------- */
html:root:root:root body .home-launch-card,
html:root:root:root body .launches-panel,
html:root:root:root body .story-card,
html:root:root:root body .maker-card,
html:root:root:root body .maker-product-card,
html:root:root:root body .topic-tile,
html:root:root:root body .cats-card,
html:root:root:root body .course-card-featured,
html:root:root:root body .docs-resource-card,
html:root:root:root body .docs-pager-card,
html:root:root:root body .author-card,
html:root:root:root body .digest-story-card,
html:root:root:root body .digest-product-card,
html:root:root:root body .digest-article-card,
html:root:root:root body .tool-card,
html:root:root:root body .tool-panel,
html:root:root:root body .stats-panel,
html:root:root:root body .stat-card,
html:root:root:root body .potw-card,
html:root:root:root body .spotlight-card,
html:root:root:root body .ft-card,
html:root:root:root body .post-card,
html:root:root:root body .callout,
html:root:root:root body .foot-news,
html:root:root:root body .launches-search-bar,
html:root:root:root body .roadmap-card,
html:root:root:root body .library-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-l) !important;
  box-shadow: var(--card-shadow) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
html:root:root:root body .home-launch-card:hover,
html:root:root:root body .story-card:hover,
html:root:root:root body .maker-card:hover,
html:root:root:root body .maker-product-card:hover,
html:root:root:root body .topic-tile:hover,
html:root:root:root body .cats-card:hover,
html:root:root:root body .course-card-featured:hover,
html:root:root:root body .docs-resource-card:hover,
html:root:root:root body .author-card:hover,
html:root:root:root body .tool-card:hover,
html:root:root:root body .potw-card:hover,
html:root:root:root body .digest-story-card:hover,
html:root:root:root body .digest-product-card:hover,
html:root:root:root body .digest-article-card:hover,
html:root:root:root body .post-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border) !important;
  box-shadow: var(--card-hover-shadow) !important;
}

/* ---------- Buttons ---------- */
html:root:root:root body .button,
html:root:root:root body .lcat-hero-submit-btn,
html:root:root:root body .launch-submit-trigger,
html:root:root:root body .hm-btn,
html:root:root:root body .hm-btn-primary,
html:root:root:root body .pg-btn,
html:root:root:root body .pg-btn-primary,
html:root:root:root body .dash-btn,
html:root:root:root body .spotlight-visit-btn,
html:root:root:root body .foot-news-row button,
html:root:root:root body button[type="submit"],
html:root:root:root body .launch-page-btn,
html:root:root:root body .maker-x-btn {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--font-text) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
html:root:root:root body .button:hover,
html:root:root:root body .lcat-hero-submit-btn:hover,
html:root:root:root body .hm-btn:hover,
html:root:root:root body .hm-btn-primary:hover,
html:root:root:root body .pg-btn:hover,
html:root:root:root body .dash-btn:hover,
html:root:root:root body .foot-news-row button:hover,
html:root:root:root body button[type="submit"]:hover {
  background: var(--accent-hover) !important; border-color: var(--accent-hover) !important;
  transform: translateY(-1px); box-shadow: var(--accent-glow) !important;
}
html:root:root:root body .hm-btn-ghost,
html:root:root:root body .pg-btn-ghost,
html:root:root:root body .cats-btn-quiet,
html:root:root:root body .button.ghost,
html:root:root:root body .palette-trigger,
html:root:root:root body .theme-toggle {
  background: transparent !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 999px !important; box-shadow: none !important;
}
html:root:root:root body .hm-btn-ghost:hover,
html:root:root:root body .pg-btn-ghost:hover,
html:root:root:root body .button.ghost:hover,
html:root:root:root body .palette-trigger:hover,
html:root:root:root body .theme-toggle:hover {
  background: var(--surface-2) !important; border-color: var(--ink) !important; transform: none; box-shadow: none !important;
}

/* ---------- Header ---------- */
html:root:root:root body .site-header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--header-border) !important;
  backdrop-filter: saturate(1.4) blur(14px) !important; -webkit-backdrop-filter: saturate(1.4) blur(14px) !important;
  box-shadow: none !important;
}
html:root:root:root body .brand { font-family: var(--font-serif) !important; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; }
html:root:root:root body .brand-name b { color: var(--accent-text); font-weight: 600; font-style: italic; }
html:root:root:root body .brand-mark .bg { fill: var(--ink); }
html:root:root:root body .brand-mark .stem,
html:root:root:root body .brand-mark .dot { fill: var(--bg); }

html:root:root:root body .main-nav a {
  font-family: var(--font-text) !important; font-size: 0.92rem !important; font-weight: 500;
  color: var(--muted); border-radius: 999px !important; background: transparent !important; letter-spacing: 0 !important;
}
html:root:root:root body .main-nav a:hover { color: var(--ink); background: var(--surface-2) !important; }
html:root:root:root body .main-nav a[aria-current="page"] { color: var(--ink) !important; background: var(--surface-2) !important; }
html:root:root:root body .main-nav a[aria-current="page"]::after {
  display: block !important; content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
html:root:root:root body .palette-trigger { background: var(--surface) !important; }
html:root:root:root body .palette-kbd { background: var(--surface-2) !important; color: var(--muted) !important; border-radius: 6px !important; }
html:root:root:root body .nav-submit { white-space: nowrap; }

@media (max-width: 1080px) {
  :root { --header-h: 92px; }
  html:root:root:root body .main-nav {
    justify-content: flex-start !important; overflow-x: auto !important; gap: 2px !important;
    scrollbar-width: none; border-top: 1px solid var(--line) !important; padding: 6px 0 2px !important;
  }
  html:root:root:root body .main-nav a { letter-spacing: 0 !important; font-size: 0.95rem !important; padding: 6px 12px !important; flex: 0 0 auto !important; }
}
@media (max-width: 720px) {
  html:root:root:root body .bar-actions > .button.nav-submit { display: inline-flex !important; min-height: 34px; padding: 0 14px; font-size: 0.85rem; }
  html:root:root:root body .bar-actions > #nav-login { display: none !important; }
}

/* ---------- Home hero ---------- */
html:root:root:root body .editorial-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
html:root:root:root body .editorial-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}
html:root:root:root body .hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent-text); }
html:root:root:root body .hero-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html:root:root:root body .editorial-hero h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 5.6vw, 4.1rem); letter-spacing: -0.03em !important; }
html:root:root:root body .editorial-hero p { max-width: 50ch; font-size: 1.1rem; line-height: 1.65; color: var(--prose); margin: 0 0 24px; }
html:root:root:root body .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
html:root:root:root body .hero-cta .button { min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center; }
html:root:root:root body .status-bar { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
html:root:root:root body .status-bar b { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); margin-right: 6px; font-weight: 600; }

html:root:root:root body .hero-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--card-hover-shadow); padding: 20px; transform: rotate(1.2deg); }
html:root:root:root body .hero-board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
html:root:root:root body .hero-board-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
html:root:root:root body .hero-board-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
html:root:root:root body .hero-board ol { list-style: none; margin: 0; padding: 0; }
html:root:root:root body .hero-board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
html:root:root:root body .hero-board li:first-child { border-top: 0; }
html:root:root:root body .hero-board .hb-rank { font-family: var(--font-serif); font-size: 1.3rem; color: var(--accent-text); font-weight: 600; }
html:root:root:root body .hero-board .hb-name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
html:root:root:root body .hero-board .hb-cat { display: block; font-size: 0.8rem; color: var(--muted); }
html:root:root:root body .hero-board .hb-votes { font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
@media (max-width: 820px) { html:root:root:root body .editorial-hero-inner { grid-template-columns: 1fr; } html:root:root:root body .hero-board { transform: none; } }

/* ---------- Category tabs, search, inputs ---------- */
html:root:root:root body .launches-cat-nav-wrap,
html:root:root:root body .launches-cat-hero { background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; }
html:root:root:root body .launches-cat-nav { gap: 8px !important; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
html:root:root:root body .lcat-pill,
html:root:root:root body .lcat-time-btn,
html:root:root:root body .launch-filter-pill,
html:root:root:root body .launch-sort-btn,
html:root:root:root body .pricing-filter-btn,
html:root:root:root body .stats-tab-btn,
html:root:root:root body .roadmap-tab-btn,
html:root:root:root body .submit-cat-btn {
  background: transparent !important; color: var(--ink-soft) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 999px !important; box-shadow: none !important;
  padding: 6px 14px; font-family: var(--font-text) !important; font-size: 0.88rem; font-weight: 500; white-space: nowrap; flex: 0 0 auto;
  transition: background-color 0.15s ease, color 0.15s ease;
}
html:root:root:root body .lcat-pill:hover,
html:root:root:root body .lcat-time-btn:hover,
html:root:root:root body .launch-filter-pill:hover { background: var(--surface-2) !important; }
html:root:root:root body .lcat-pill.is-active,
html:root:root:root body .lcat-time-btn.is-active,
html:root:root:root body .launch-filter-pill.is-active,
html:root:root:root body .stats-tab-btn.is-active,
html:root:root:root body .roadmap-tab-btn.is-active,
html:root:root:root body .submit-cat-btn.is-active {
  background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important;
}
html:root:root:root body .lcat-divider { background: var(--line) !important; }
html:root:root:root body input,
html:root:root:root body textarea,
html:root:root:root body select {
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: var(--radius-s) !important; box-shadow: none !important;
}
html:root:root:root body input:focus,
html:root:root:root body textarea:focus,
html:root:root:root body select:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; outline: none !important; }
html:root:root:root body .launches-search-input { border: 0 !important; background: transparent !important; box-shadow: none !important; }
html:root:root:root body .launches-search-bar { padding: 4px 14px !important; border-radius: 999px !important; }

/* ---------- Ranked feed: one soft card, hairline rows ---------- */
html:root:root:root body .launches-feed,
html:root:root:root body .launches-main-col .launches-feed {
  display: flex !important; flex-direction: column !important; gap: 0 !important;
  background: var(--card-bg) !important; border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-l) !important; box-shadow: var(--card-shadow) !important; overflow: hidden !important;
}
html:root:root:root body .launches-feed .launch-card,
html:root:root:root body .launches-main-col .launch-card {
  display: grid !important;
  grid-template-columns: 44px 56px minmax(0, 1fr) auto !important;
  column-gap: 16px !important; align-items: center !important;
  padding: 18px 20px !important; margin: 0 !important; width: 100% !important;
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  transition: background-color 0.15s ease;
}
html:root:root:root body .launches-feed .launch-card:last-child { border-bottom: 0 !important; }
html:root:root:root body .launches-feed .launch-card:hover { background: var(--surface-2) !important; }
html:root:root:root body .launches-feed .launch-card.is-top-rank { background: var(--accent-soft) !important; }
html:root:root:root body .launches-feed .launch-card.is-top-rank:hover { background: color-mix(in srgb, var(--accent) 16%, var(--card-bg)) !important; }
html:root:root:root body .launch-rank {
  font-family: var(--font-serif) !important; font-size: 1.35rem !important; font-weight: 600 !important;
  color: var(--muted) !important; background: transparent !important; border: 0 !important; text-align: center; padding: 0 !important; min-width: 0;
}
html:root:root:root body .launch-rank.rank-1,
html:root:root:root body .launch-rank.rank-2,
html:root:root:root body .launch-rank.rank-3 { color: var(--accent-text) !important; background: transparent !important; }
html:root:root:root body .launch-icon-box {
  border: 1px solid var(--line) !important; background: var(--surface-2) !important;
  border-radius: 14px !important; box-shadow: none !important; overflow: hidden;
}
html:root:root:root body .launch-name { font-size: 1.15rem !important; }
html:root:root:root body .launch-name-link { text-decoration: none; }
html:root:root:root body .launch-name-link:hover .launch-name { color: var(--accent-text); }
html:root:root:root body .launch-description { color: var(--prose); }
html:root:root:root body .launch-cat-pill,
html:root:root:root body .launch-pricing-pill {
  background: transparent !important; color: var(--muted) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 999px !important; padding: 2px 10px;
}
html:root:root:root body .launch-maker-avatar { border-radius: 999px !important; }
html:root:root:root body .launch-domain-link,
html:root:root:root body .launch-maker-link { color: var(--accent-text); font-weight: 500; }
html:root:root:root body .launch-upvote-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 8px 6px !important;
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 12px !important; box-shadow: none !important;
  font-family: var(--font-text) !important; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
html:root:root:root body .launch-upvote-btn:hover { border-color: var(--accent) !important; color: var(--accent-text) !important; transform: translateY(-1px); }
html:root:root:root body .launch-upvote-btn[aria-pressed="true"],
html:root:root:root body .launch-upvote-btn.is-voted {
  background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent) !important;
}
html:root:root:root body .launches-top20-bar { border: 0 !important; padding: 0 0 10px !important; }
html:root:root:root body .launches-top20-label { color: var(--muted); background: transparent !important; padding: 0 !important; }

@media (max-width: 680px) {
  html:root:root:root body .launches-feed .launch-card,
html:root:root:root body .launches-main-col .launch-card {
    grid-template-columns: 28px 52px minmax(0, 1fr) auto !important; column-gap: 10px !important; padding: 14px 12px !important;
  }
  html:root:root:root body .launches-main-col .launch-icon-box { width: 52px !important; min-width: 52px !important; height: 52px !important; }
  html:root:root:root body .launch-rank { font-size: 1.1rem !important; }
}

/* Sponsored */
html:root:root:root body .sponsored-slot,
html:root:root:root body .sponsor-inline {
  background: var(--surface-2) !important; border: 1px dashed var(--line-strong) !important;
  border-radius: var(--radius-l) !important; box-shadow: none !important;
}

/* ---------- Modals & palette ---------- */
html:root:root:root body .launch-modal-dialog,
html:root:root:root body .command-palette,
html:root:root:root body .palette-dialog {
  background: var(--card-bg) !important; border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-l) !important; box-shadow: 0 30px 80px rgba(29, 26, 22, 0.28) !important;
}
html:root:root:root body .launch-modal-backdrop,
html:root:root:root body .palette-backdrop { background: rgba(29, 26, 22, 0.5) !important; }
html:root:root:root body .palette-input { border: 0 !important; box-shadow: none !important; }
html:root:root:root body .palette-item:hover,
html:root:root:root body .palette-item.is-active,
html:root:root:root body .palette-item[aria-selected="true"] { background: var(--accent-soft) !important; }
html:root:root:root body .palette-filter-pill { border: 1px solid var(--line-strong) !important; background: transparent !important; border-radius: 999px !important; }
html:root:root:root body .palette-filter-pill.is-active { background: var(--ink) !important; color: var(--bg) !important; }

/* ---------- Prose, code, tables ---------- */
html:root:root:root body .prose a,
html:root:root:root body .post-body a,
html:root:root:root body article p a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
html:root:root:root body blockquote { border-left: 3px solid var(--accent) !important; background: transparent; padding: 4px 0 4px 18px; margin-inline: 0; font-family: var(--font-serif); font-size: 1.15em; color: var(--ink-soft); }
html:root:root:root body pre,
html:root:root:root body .code-block,
html:root:root:root body .highlight { background: var(--code-bg) !important; color: var(--code-ink) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-m) !important; }
html:root:root:root body :not(pre) > code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
html:root:root:root body table { border-collapse: collapse; }
html:root:root:root body th { font-family: var(--font-text); font-weight: 600; text-align: left; background: var(--surface-2); }
html:root:root:root body th,
html:root:root:root body td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
html:root:root:root body hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
html:root:root:root body .site-footer { background: var(--surface-2) !important; color: var(--ink) !important; border-top: 1px solid var(--line) !important; margin-top: 4rem; box-shadow: none !important; }
html:root:root:root body .site-footer a { color: var(--ink-soft) !important; text-decoration: none; }
html:root:root:root body .site-footer a:hover { color: var(--accent-text) !important; text-decoration: underline; }
html:root:root:root body .foot-col h2 { color: var(--muted); background: transparent; padding: 0; border: 0; }
html:root:root:root body .foot-news { background: var(--surface) !important; }
html:root:root:root body .foot-dots { display: none !important; }
html:root:root:root body .foot-base { border-top: 1px solid var(--line) !important; }
html:root:root:root body .foot-visitors strong { color: var(--accent-text); }
html:root:root:root body .theme-switch { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; overflow: hidden; }
html:root:root:root body .theme-switch button { color: var(--muted); }
html:root:root:root body .theme-switch button[aria-pressed="true"],
html:root:root:root body .theme-switch button.is-active { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

html:root:root:root body .bar-actions .button { white-space: nowrap; }
html:root:root:root body #nav-login { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; }
html:root:root:root body #nav-login:hover { background: var(--surface-2) !important; border-color: var(--ink) !important; box-shadow: none !important; }
