/* Tiny Setup Lab — 2026 reset
 * Editorial, near-monochrome, type-driven. Built for solo-operator SaaS picks.
 * Reuses the original class names so existing HTML keeps rendering. */

:root {
  --ink: #0e0e10;
  --paper: #ffffff;
  --soft: #f4f4f2;
  --line: #e6e4df;
  --rule: #1b1b1d;
  --muted: #5b5d63;
  --muted-2: #8a8d93;
  --accent: #1f5546;       /* deep matcha, single accent */
  --accent-ink: #ffffff;
  --warn: #b34d2a;
  --mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: clamp(20px, 4vw, 56px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;  /* clear the sticky header on anchor jumps */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv02", "cv11";
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* ───────────────── header ───────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
  padding: 14px var(--shell);
  border-bottom: 1px solid #1b1b1d;
  /* Always dark to host the white-text wordmark logo cleanly. */
  background: #0e0e10;
  color: #ededec;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .top-nav a {
  color: #a2a4ab;
}
.site-header .top-nav a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.site-header .subscribe-button {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
.site-header .subscribe-button:hover {
  background: #ffffff;
  color: #0e0e10;
  border-color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 28px;
}

/* legacy bits — hidden so any stale markup elsewhere is harmless */
.brand-mark,
.brand-wordmark,
.brand-text,
.brand-text-dot { display: none; }

.top-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  font-size: 14px;
  font-weight: 550;
  flex-wrap: nowrap;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  min-height: 36px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.search-button { display: none; }
.subscribe-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0;
  backdrop-filter: none;
}
.subscribe-button:hover { background: var(--accent); border-color: var(--accent); }

/* ───────────────── hero ───────────────── */

.hero {
  display: block;
  padding: clamp(56px, 9vw, 112px) var(--shell) clamp(40px, 6vw, 80px);
  background: var(--paper);
  min-height: auto;
  border-bottom: 1px solid var(--rule);
}

.home-hero {
  padding-top: clamp(80px, 11vw, 160px);
  padding-bottom: clamp(60px, 7vw, 96px);
  background:
    linear-gradient(90deg, #0e0e10 0%, #0e0e10 22%, rgba(14, 14, 16, 0.55) 48%, rgba(14, 14, 16, 0.1) 78%, rgba(14, 14, 16, 0) 100%),
    url("./hero-bg.jpg") right center / cover no-repeat,
    #0e0e10;
  color: #ededec;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1b1b1d;
}

.home-hero::before {
  content: "tinysetuplab.com /";
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  left: var(--shell);
  font-family: var(--mono);
  font-size: 12px;
  color: #8a8d93;
  letter-spacing: 0.02em;
  z-index: 2;
}

.home-hero .hero-copy { position: relative; z-index: 2; }
.home-hero h1 { color: #ffffff; }
.home-hero .hero-text { color: #c0c2c8; }

/* Buttons against the dark hero, regardless of system theme */
.home-hero .hero-actions a {
  background: transparent;
  color: #ededec;
  border-color: #ededec;
}
.home-hero .hero-actions a:hover {
  background: #ededec;
  color: #0e0e10;
}
.home-hero .hero-actions .primary-action {
  background: #ededec;
  color: #0e0e10;
  border-color: #ededec;
}
.home-hero .hero-actions .primary-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.compact-hero { padding-top: clamp(56px, 7vw, 96px); }

.hero-copy {
  max-width: 880px;
  margin: 0;
}

/* Article hero: align the copy with the centered article body (.page-copy 760px). */
main > article > .hero.compact-hero {
  padding-left: 0;
  padding-right: 0;
}
main > article > .hero.compact-hero .hero-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--shell);
}

.home-page h1,
h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}

.home-page h1 br { display: inline; }

.home-page .hero-text,
.hero-text {
  max-width: 60ch;
  margin: clamp(20px, 2.4vw, 32px) 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
}
.hero-actions a:hover { background: var(--ink); color: var(--paper); }
.hero-actions .primary-action {
  background: var(--ink);
  color: var(--paper);
}
.hero-actions .primary-action:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.home-page .hero-actions {
  gap: 12px;
  margin-top: 36px;
}
.home-page .hero-actions a { min-width: 0; }

/* ───────────────── disclosure / intro band ───────────────── */

.intro-band {
  padding: 14px var(--shell);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.intro-band p {
  max-width: 90ch;
  margin: 0 auto;
}

/* ───────────────── section heading ───────────────── */

.section-heading {
  padding: clamp(48px, 6vw, 80px) var(--shell) clamp(16px, 2vw, 28px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 30ch;
}

h2 { font-family: var(--sans); }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }

/* ───────────────── browse-by-job grid (setup-board) ───────────────── */

.setup-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--shell);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* Stretch the last orphan card to fill the row instead of leaving an empty cell. */
.setup-board > article:last-child:nth-child(even) {
  grid-column: span 2;
}
.setup-card {
  padding: clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
}
.setup-card:hover { background: var(--soft); }
.setup-card.large-card { grid-column: span 2; }
.setup-card img { display: none; }    /* legacy image slot — unused */
.setup-card .tag,
.setup-card p.tag {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent);
}
.setup-card h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  max-width: 28ch;
}
.setup-card p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
.setup-card a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px solid transparent;
}
.setup-card a::after { content: " →"; }
.setup-card:hover a { border-top-color: var(--ink); }

/* ───────────────── quick fixes (numbered strip) ───────────────── */

.quick-fixes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--shell);
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: 1px solid var(--rule);
}
.quick-fixes a {
  display: block;
  padding: 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.quick-fixes a:hover { background: var(--soft); }
.quick-fixes span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.quick-fixes strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.quick-fixes small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* ───────────────── product grid (stack picks) ───────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--shell);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.product-grid.tight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card {
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background 0.15s;
}
.product-card:hover { background: var(--soft); }
.product-card > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}
.product-card .tag,
.product-card p.tag {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent);
}
.product-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.product-card a {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
}
.product-card a::after { content: " ↗"; }
.product-card:hover a { color: var(--accent); }

/* ───────────────── article cards (editorial entries) ───────────────── */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* When only two articles exist, collapse to a 2-column grid so no empty cell. */
.article-grid:has(> .article-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 36px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  transition: background 0.15s;
}
.article-card:hover { background: var(--soft); }
.article-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0;
}
.article-card h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.article-card.featured {
  gap: 14px;
}
.article-card.featured h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.article-card p.dek {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 64ch;
}
.article-card.featured p.dek { font-size: 16px; }
.article-card .meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  text-transform: lowercase;
}
.article-card .read-more {
  display: inline-flex;
  align-items: center;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-transform: lowercase;
}
.article-card .read-more::after { content: " →"; }

/* ───────────────── idea list (numbered articles) ───────────────── */

.idea-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell);
  border-top: 1px solid var(--rule);
}
.idea-list article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.idea-list article > span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.idea-list h3 { margin: 0 0 6px; font-size: 19px; }
.idea-list p { margin: 0; color: var(--muted); max-width: 70ch; }

/* ───────────────── notes / buying notes ───────────────── */

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 4vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--shell);
  border-top: 1px solid var(--rule);
}
.notes h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.notes .eyebrow { margin-bottom: 8px; }
.notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15.5px;
}
.notes li { margin-bottom: 10px; }
.notes li a { color: var(--ink); }

/* ───────────────── article body (page-copy used by legal/about) ───────────────── */

.page-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--shell) clamp(48px, 6vw, 80px);
  color: var(--ink);
}
.page-copy p { margin: 0 0 1rem; color: var(--ink); font-size: 16.5px; }
.page-copy p.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}
.page-copy h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.page-copy ul {
  padding-left: 1.1rem;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.page-copy li { margin-bottom: 0.45rem; }
.meta-line {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ───────────────── footer ───────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 36px var(--shell);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  font-size: 13.5px;
}
.site-footer p {
  margin: 0;
  max-width: 60ch;
  color: #b9bcc1;
}
.site-footer a {
  color: var(--paper);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
}
.footer-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-nav a:hover { border-bottom-color: var(--paper); }

/* ───────────────── responsive ───────────────── */

@media (max-width: 1100px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .setup-board { grid-template-columns: 1fr; }
  .setup-card.large-card { grid-column: span 1; }
  .quick-fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid,
  .product-grid.tight-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .home-hero::before { display: none; }
  .top-nav { gap: 14px; font-size: 13px; }
  .home-page .hero-actions a { width: 100%; min-width: 0; }
  .home-hero {
    background:
      linear-gradient(180deg, rgba(14, 14, 16, 0.55) 0%, rgba(14, 14, 16, 0.85) 60%, #0e0e10 100%),
      url("./hero-bg.jpg") center center / cover no-repeat,
      #0e0e10;
  }
}

@media (max-width: 560px) {
  :root { --shell: 18px; }
  .quick-fixes { grid-template-columns: 1fr; }
  .header-actions { display: none; }
  .site-header { padding: 12px var(--shell); }
  .top-nav { gap: 12px; font-size: 13px; }
  .top-nav a { padding: 4px 0; }
  .brand-logo { height: 24px; }
  .home-page h1, h1 { font-size: clamp(34px, 9vw, 44px); letter-spacing: -0.02em; }
  .section-heading h2 { font-size: 24px; }
  .home-hero { padding-top: clamp(48px, 14vw, 80px); }
  .home-hero::before { display: none; }
  .product-card { min-height: auto; }
  .setup-card { padding: 22px 18px; }
  .quick-fixes a { padding: 18px; }
  .idea-list article { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; }
  .site-footer { padding: 26px var(--shell); }
}

@media (max-width: 380px) {
  .top-nav { gap: 10px; font-size: 12px; }
  .brand-logo { height: 21px; }
}

/* ───────────────── deprecated legacy bits (kept harmless) ───────────────── */

.hero-image { display: none; }
.photo-hero { display: none; }

/* ───────────────── dark mode ───────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededec;
    --paper: #0e0e10;
    --soft: #17171a;
    --line: #24242a;
    --rule: #2d2d33;
    --muted: #a2a4ab;
    --muted-2: #6e7079;
    --accent: #6fc09f;
    --accent-ink: #0e0e10;
  }
  .subscribe-button {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .subscribe-button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .hero-actions a {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
  }
  .hero-actions a:hover { background: var(--ink); color: var(--paper); }
  .hero-actions .primary-action { background: var(--ink); color: var(--paper); }
  .hero-actions .primary-action:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }
  .site-footer {
    background: #050507;
    border-top-color: #050507;
  }
  .site-footer p { color: #8e9097; }
}

/* ───────────────── print ───────────────── */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .intro-band,
  .quick-fixes,
  .subscribe-button { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .product-card a::after,
  .setup-card a::after { content: ""; }
  .home-hero, .hero { padding: 0; min-height: 0; }
  .product-grid, .setup-board {
    grid-template-columns: 1fr;
    border: 0;
  }
  .product-card, .setup-card {
    border: 0;
    border-bottom: 1px solid #ccc;
    min-height: 0;
    page-break-inside: avoid;
  }
}
