/* ==========================================================================
   Bright Journal Desk - site.css
   Overrides layered on Bootstrap 5.3.3 (CDN). Mobile-first: base rules target
   a 360px screen, wider layouts arrive with min-width queries at
   480px, 768px and 1024px.
   Art direction: a personal-blog "make extra money" guide - white page, a
   single centred reading column, condensed display type, book-serif body,
   one fresh green accent.
   ========================================================================== */

:root {
  --ink: #222222;
  --head: #2b2b2b;
  --muted: #595959;
  --green: #4f9a2e;
  --green-ink: #3d7a1c;
  --green-deep: #2f6015;
  --tint: #eef5e8;
  --tint-rule: #cddcc1;
  --grey: #f4f4f2;
  --rule: #d9d9d4;
  --rail: #0f1210;
  --font-head: "Francois One", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Gelasio", Georgia, "Times New Roman", serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --radius: 4px;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-rail {
  padding-bottom: 88px;
}

.container {
  --bs-gutter-x: 2rem;
}

img,
video,
svg {
  max-width: 100%;
}

a {
  color: var(--green-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 3px solid #1c5fd4;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 2000;
  background: #111111;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Masthead ---------- */

.masthead {
  padding: 16px 0 6px;
  text-align: center;
  border-bottom: 1px solid #e8e8e4;
}

.ad-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 10px 2px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #9a9a94;
  border-radius: 2px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: var(--head);
  text-decoration: none;
}

.brand:hover {
  color: var(--head);
}

.brand__mark {
  flex: none;
  width: clamp(46px, 12vw, 68px);
  height: auto;
}

.brand__words {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 2px solid var(--head);
  text-align: left;
  line-height: 0.98;
}

.brand__name {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 1rem + 3.4vw, 2.9rem);
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.brand__bright {
  color: var(--green);
}

.brand__desk {
  color: #111111;
}

.brand-tag {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 0.7rem + 0.9vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #111111;
}

.brand-tag em {
  font-style: normal;
  color: var(--green);
}

/* Navigation (Bootstrap navbar, restyled) */

.site-nav {
  justify-content: center;
  margin-top: 6px;
  padding: 0.4rem 0 0.5rem;
}

.site-nav .navbar-toggler {
  min-height: 44px;
  padding: 6px 16px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--head);
  background: #ffffff;
  border: 2px solid var(--head);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .navbar-toggler:hover {
  background: var(--head);
  color: #ffffff;
}

.site-nav .navbar-toggler:focus {
  box-shadow: none;
}

.site-nav .navbar-toggler-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav .navbar-collapse {
  justify-content: center;
}

.site-nav .navbar-nav {
  align-items: center;
  width: 100%;
  padding-top: 8px;
}

.site-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #161616;
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--green-ink);
  box-shadow: inset 0 -3px 0 var(--green);
}

@media (min-width: 768px) {
  .site-nav {
    margin-top: 10px;
    padding: 0.5rem 0 0.9rem;
  }

  .site-nav .navbar-nav {
    flex-direction: row;
    justify-content: center;
    gap: clamp(8px, 2.6vw, 40px);
    padding-top: 0;
  }

  .site-nav .nav-link {
    padding: 8px 6px;
    font-size: clamp(1.25rem, 0.85rem + 1.1vw, 1.65rem);
  }
}

/* ---------- Article head ---------- */

.article-head {
  padding: clamp(24px, 4vw, 48px) 0 0;
  text-align: center;
}

.article-title {
  max-width: 19em;
  margin: 0 auto 18px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.85rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--head);
  text-wrap: balance;
}

.article-dek {
  max-width: 36em;
  margin: 0 auto 14px;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  color: #3a3a3a;
  text-wrap: pretty;
}

.byline {
  margin: 0 auto 26px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Layout helpers ---------- */

.measure-col {
  max-width: 832px;
}

.sec {
  padding: clamp(36px, 6vw, 68px) 0;
}

.sec--tint {
  background: var(--tint);
}

.sec--tight-top {
  padding-top: 0;
}

.sec--tight-bottom {
  padding-bottom: 8px;
}

.sec--lead {
  padding-top: clamp(16px, 3vw, 36px);
}

.sec--hero {
  padding-top: 0;
  padding-bottom: clamp(8px, 2vw, 20px);
}

main {
  counter-reset: q;
}

/* ---------- Figures, frames, captions ---------- */

figure {
  margin: 0;
}

.frame {
  position: relative;
  overflow: hidden;
  background: #e7e7e2;
  border-radius: var(--radius);
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--hero {
  aspect-ratio: 3 / 2;
}

.frame--hero img {
  object-position: 60% 35%;
}

.frame--wide {
  aspect-ratio: 3 / 2;
}

.frame--video {
  aspect-ratio: 1200 / 630;
}

.frame--side {
  aspect-ratio: 3 / 2;
}

.frame--pair {
  aspect-ratio: 3 / 2;
}

.frame--smartphone img {
  object-position: 70% 50%;
}

.frame--person img {
  object-position: 45% 50%;
}

figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

.fig-block {
  margin: 0 0 clamp(26px, 4vw, 40px);
}

.hero-figure {
  margin: 0;
}

.promo__body {
  min-width: 0;
}

@media (min-width: 768px) {
  .frame--hero {
    aspect-ratio: 16 / 9;
  }

  .frame--wide {
    aspect-ratio: 16 / 9;
  }

  .frame--side {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Prose ---------- */

.prose p {
  margin: 0 0 1.35em;
}

.prose strong {
  color: #111111;
}

.prose ul,
.prose ol.plain {
  margin: 0 0 1.5em;
  padding-left: 1.6rem;
}

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

.prose li::marker {
  color: var(--green-ink);
}

.q {
  margin: 0 0 0.7em;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--head);
  counter-increment: q;
  text-wrap: balance;
  scroll-margin-top: 16px;
}

.q::before {
  content: counter(q) ". ";
  color: var(--green-ink);
}

.list-lead {
  margin-bottom: 0.5em !important;
}

.go-line {
  font-weight: 700;
  font-style: italic;
  color: #111111;
}

/* ---------- Numbers strip ---------- */

.strip-label {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--green-deep);
}

.figures {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.figures li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--tint-rule);
}

.figure-num {
  flex: none;
  min-width: 5.4rem;
  font-family: var(--font-head);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--green-ink);
}

.figure-cap {
  font-size: 1rem;
  line-height: 1.4;
  color: #2d2d2d;
}

@media (min-width: 480px) {
  .figures {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 36px;
  }

  .figures li {
    display: block;
    padding: 18px 0;
  }

  .figure-num {
    display: block;
    margin-bottom: 6px;
    font-size: 2.7rem;
  }
}

@media (min-width: 768px) {
  .figures {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 28px;
    border-top: 3px solid var(--head);
  }

  .figures li {
    padding: 20px 0 4px;
    border-top: 0;
  }

  .figure-num {
    font-size: 3.2rem;
  }
}

/* ---------- Steps ---------- */

.steps {
  margin: 0 0 1.8em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 1.2em 3.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1;
  color: #ffffff;
  background: var(--green-ink);
  border-radius: 50%;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.8rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--tint-rule);
}

.steps strong {
  display: block;
  margin-bottom: 0.1em;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--head);
}

/* ---------- Table of contents ---------- */

.toc {
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 18px 20px 12px;
  background: var(--grey);
  border: 1px solid #cfcfca;
}

.toc__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--head);
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
}

.toc li {
  margin: 0;
  padding-left: 0.2em;
}

.toc li::marker {
  font-family: var(--font-head);
  color: var(--green-ink);
}

.toc a {
  display: inline-block;
  padding: 8px 0;
  line-height: 1.35;
}

/* ---------- Promo block + CTA buttons ---------- */

.promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 22px 20px;
  background: linear-gradient(100deg, #e0efd3 0%, #f4f9ef 55%, #ffffff 100%);
  border: 2px solid var(--green);
  border-radius: 6px;
}

.promo__icon {
  display: block;
  width: 84px;
  height: auto;
}

.promo__title {
  margin: 0 0 0.35em;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--head);
}

.promo__text {
  margin: 0 0 1em;
  font-size: 1rem;
  line-height: 1.55;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--green-ink);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--green-deep);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  color: #ffffff;
  background: var(--green-deep);
  box-shadow: 0 6px 14px rgba(47, 96, 21, 0.32);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--green-deep);
}

.prose .cta-row,
.cta-row {
  margin: 2em 0 0;
}

.prose .promo__title,
.prose .promo__text,
.prose .toc__title {
  margin-bottom: 0.35em;
}

.prose .promo__text {
  margin-bottom: 1em;
}

@media (min-width: 480px) {
  .promo {
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 26px 28px;
  }

  .promo__icon {
    width: 104px;
  }

  .cta-btn {
    width: auto;
  }
}

/* ---------- Payout list ---------- */

.payout-list {
  margin: 0;
}

.payout-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.payout-list > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.payout-list dt {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--head);
}

.payout-list dd {
  margin: 0.2em 0 0;
}

/* ---------- Sticky rail (dark bar, bright button) ---------- */

.sticky-rail {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  color: #ffffff;
  background: var(--rail);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.sticky-rail.is-hidden {
  visibility: hidden;
  transform: translateY(105%);
}

.sticky-rail__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 832px;
  margin: 0 auto;
  padding: 0 16px;
}

.sticky-rail__text {
  display: none;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.2;
  color: #ffffff;
}

.sticky-rail__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #c3d1ba;
}

.rail-btn {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #0b1209;
  background: #8ad465;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rail-btn:hover {
  color: #0b1209;
  background: #a3e283;
  transform: translateY(-1px);
}

.rail-btn:focus-visible,
.sticky-rail a:focus-visible {
  outline-color: #ffffff;
}

@media (min-width: 480px) {
  .sticky-rail__text {
    display: block;
  }

  .rail-btn {
    flex: 0 0 auto;
  }
}

/* ---------- Legal / about pages ---------- */

.legal-doc h1 {
  margin-bottom: 10px;
}

.legal-meta {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 0.9375rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 1.9em 0 0.5em;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--head);
}

.legal-doc h2:first-of-type {
  margin-top: 0.5em;
}

.legal-address {
  margin: 0 0 1.35em;
  padding-left: 1rem;
  font-style: normal;
  line-height: 1.65;
  border-left: 3px solid var(--green);
}

.legal-doc ul {
  margin: 0 0 1.5em;
  padding-left: 1.6rem;
}

.legal-main {
  padding-top: clamp(8px, 2vw, 24px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.6em;
  font-style: italic;
  font-weight: 700;
}

/* ---------- Colophon (the one footer) ---------- */

.colophon {
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: #595959;
  background: transparent;
}

.colophon .owner p {
  margin: 0 0 0.35em;
}

.colophon .owner .owner__name {
  font-weight: 700;
  color: #3d3d3d;
}

.legal_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 18px 0 10px;
}

.legal_links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #4a4a4a;
  text-decoration: underline;
}

.legal_links a:hover {
  color: var(--green-deep);
}

.credit_line {
  max-width: 62ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #595959;
}
