/* Solo Ledger Co — static site styles. No build step. */
:root {
  --navy: #172e4e;
  --navy-deep: #0f1f36;
  --ink: #1c2636;
  --muted: #5c6b80;
  --line: #d5dde7;
  --paper: #f6f3ee;
  --white: #ffffff;
  --teal: #2a9d8f;
  --teal-dark: #1c6f66;
  --teal-soft: #e7f4f2;
  --shadow: 0 12px 32px rgba(15, 31, 54, 0.1);
  --radius: 16px;
  --max: 1120px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--navy);
}

.logo svg {
  width: 28px;
  height: 28px;
  display: block;
}

.wordmark em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: -0.02em;
}

#nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(42, 157, 143, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 4.5rem 0 4.75rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 1.1rem;
  max-width: 18em;
}

.hero .lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #c5d0df;
  max-width: 40rem;
  margin: 0 0 2rem;
  font-weight: 400;
}

.hero-accent {
  display: block;
  width: 3.25rem;
  height: 6px;
  background: var(--teal);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.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.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #34b3a3;
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.section .intro,
.prose p,
.muted {
  color: var(--muted);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.4rem;
}

/* Product cards */
.coupon {
  background: var(--teal-soft);
  border: 1px solid #c8e6e1;
  color: var(--navy);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.coupon strong {
  font-weight: 650;
  font-family: ui-monospace, "Geist Mono", "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
}

.card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal-dark);
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.price small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
  display: block;
}

/* Tool cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem 1.25rem;
}

.tool h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tool p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.tool .gets {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.tool .gets strong {
  color: var(--navy);
  font-weight: 600;
}

.group {
  margin: 0 0 2.5rem;
}

.group h2 {
  margin-bottom: 0.85rem;
}

.aff-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Articles */
.article-list {
  display: grid;
  gap: 0.9rem;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.article:hover {
  border-color: #b9dcd6;
  box-shadow: var(--shadow);
}

.article h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.article .meta {
  font-size: 0.82rem;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Newsletter placeholder */
#newsletter {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  text-align: center;
}

#newsletter h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

#newsletter p {
  margin: 0 auto;
  max-width: 36rem;
  color: #c5d0df;
}

/* Prose pages */
.page-hero {
  padding: 2.6rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.prose {
  max-width: 42rem;
  padding-bottom: 3.5rem;
}

.prose h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}

.prose p,
.prose li {
  color: #3a4658;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #efebe4;
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
}

.footer-nav a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.footer-disc {
  max-width: 46rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.more-link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 880px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 3.6rem;
    padding: 0.4rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.8rem;
  }

  #nav-toggle:checked ~ .site-nav,
  #nav-toggle:focus-visible ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    border-radius: 8px;
  }

  .hero {
    padding: 3rem 0 3.25rem;
  }

  .header-inner,
  .footer-inner,
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  #newsletter {
    padding: 1.8rem 1.2rem;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 .card:last-child {
    grid-column: 1 / -1;
  }
}

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