/* Quit Nursing, editorial redesign.
   One expressive moment (the hero photo) contrasted against a clean,
   restrained, single-font system everywhere else. */

:root {
  --paper: #FFFFFF;
  --ink: #252622;
  --ink-soft: #6E6B63;
  --blue: #71899A;
  --blue-dark: #4A7C93;
  --gold: #EDB152;
  --gold-dark: #B8860B;  /* gold for large text; the lighter gold is too pale to read */
  --sidebar-bg: #F5F9FA;

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--gold);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  padding-bottom: 4px;
}

.site-nav a.active {
  color: var(--blue-dark);
  border-bottom: 2px solid var(--blue);
}

.site-nav a:hover { color: var(--blue-dark); }

/* Hero, headline text is baked into the image itself */
.hero-image {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Two column homepage layout */
.page-columns {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 0;
  display: flex;
  gap: 2.5rem;
}

.main-column { flex: 1; min-width: 0; }

.sidebar { width: 240px; flex-shrink: 0; }

@media (max-width: 720px) {
  .page-columns { flex-direction: column; }
  .sidebar { width: 100%; order: -1; }
}

/* Article list, shared between homepage and All Posts */
.article-list { display: flex; flex-direction: column; }

.article-row {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 1.6rem;
}

.article-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  background: var(--sidebar-bg);
  border: 1px solid var(--gold);
  overflow: hidden;
}

.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-body { display: flex; flex-direction: column; gap: 0.35rem; }

.article-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.3;
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.list-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-bottom: 2rem;
}

/* Sidebar boxes */
.sidebar-box {
  border: 1px solid var(--gold);
  padding: 1.1rem 1.1rem 1.2rem;
  margin-bottom: 1rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.sidebar-text {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 0.6rem;
}

.sidebar-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
}

.sidebar-stats {
  background: var(--sidebar-bg);
  text-align: center;
}

.stat-number {
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: block;
}

.stat-divider {
  height: 1px;
  background: var(--gold);
  margin: 0.9rem 0;
}

.stat-updated {
  font-size: 0.68rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.8rem;
}

/* Simple pages (Start Here, Recs, Contact, Quit Calculator, All Posts) */
main > h1 {
  max-width: 900px;
  margin: 2rem auto 0.75rem;
  padding: 0 1.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
}

.page-lede {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.blog-index > .article-list,
main > .article-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

/* Single post */
.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.post-image { margin: 0 0 2rem; }
.post-image img { width: 100%; display: block; }

.post-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.post h1 { font-size: 2rem; margin: 0 0 1.5rem; padding: 0; max-width: none; }

.post-body { font-size: 1.05rem; }
.post-body p { margin: 0 0 1.3rem; }
.post-body h2 { font-weight: 700; font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.post-body blockquote {
  border-left: 2px solid var(--blue);
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.rule {
  max-width: 680px;
  margin: 3rem auto 2.5rem;
  border: none;
  border-top: 1px solid var(--gold);
}

.comments { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }

.comments-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-block;
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.back-link:hover { color: var(--blue-dark); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 480px) {
  .article-row { flex-direction: column; }
  .article-thumb { width: 100%; height: 160px; }
}

/* ---------------------------------------------------------------
   Quit Calculator (src/calculator.njk)
   --------------------------------------------------------------- */
.calc {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.calc > * { max-width: 640px; }

.calc-noscript { color: var(--ink-soft); }

.calc-result {
  min-height: 10.5rem;
  padding: 0.25rem 0 1rem;
  border-top: 1px solid var(--gold);
}

.calc-result p { margin: 0; }
.calc-kicker { padding-top: 0.9rem; color: var(--ink-soft); font-size: 1rem; }
.calc-big {
  font-weight: 700;
  font-size: clamp(3.25rem, 12vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold-dark);
}
.calc-unit { font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.calc-when { margin-top: 0.5rem !important; color: var(--ink-soft); font-size: 1rem; }

.calc-fields { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.75rem; }
.calc-field { display: flex; flex-direction: column; gap: 0.1rem; }
.calc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.calc-field-head label { font-weight: 500; font-size: 1rem; }
.calc-value { font-weight: 700; font-size: 1.25rem; color: var(--blue-dark); }
.calc-hint { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

.calc input[type="range"] {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  accent-color: var(--blue-dark);
}
.calc input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.calc-heading {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.calc-other {
  padding-top: 0.9rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--gold);
}
.calc-other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.calc-other-grid p { margin: 0; }
.calc-other-num { font-weight: 700; font-size: 1.9rem; line-height: 1.2; color: var(--gold-dark); }
.calc-other-label { color: var(--ink-soft); }

.calc-math {
  padding-top: 1rem;
  border-top: 1px solid var(--gold);
}
.calc-math p { margin: 0 0 0.7rem; color: var(--ink-soft); line-height: 1.5; }
.calc-math .calc-disclaimer { margin-bottom: 0; font-size: 0.875rem; }

@media (max-width: 480px) {
  .calc-other-num { font-size: 1.5rem; }
}

/* ---------------------------------------------------------------
   Recs (src/recs.njk)
   --------------------------------------------------------------- */
.recs {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.recs > * { max-width: 680px; }

.rec {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--gold);
}
.rec:last-child { border-bottom: 1px solid var(--gold); }

.rec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.rec-name { margin: 0; font-size: 1.35rem; font-weight: 700; }
.rec-tag {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.rec p { margin: 0.6rem 0 0; }
.rec a { color: var(--blue-dark); text-decoration: underline; }
.rec-name a { font-weight: 700; }
.recs-note {
  max-width: 900px;
  margin: -1rem auto 2rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
/* ---------------------------------------------------------------
   Mobile fixes: paste at the very end of site.css
   --------------------------------------------------------------- */

/* Header: stack the logo above the nav so they stop colliding */
@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
  }

  .site-nav { gap: 0.4rem 1.1rem; }
}

/* Hero: zoom in on phones so the baked-in tagline is bigger.
   17:10 crops the right side only (about 29% of the image), and the
   headline ends roughly two-thirds across, so it stays in frame.
   Use 3 / 2 for more zoom, but check that "NURSING." isn't clipped. */
@media (max-width: 600px) {
  .hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 17 / 10;
    object-fit: cover;
    object-position: left center;
  }
}
/* ---------------------------------------------------------------
   Previous / next post links (paste at the end of site.css)
   --------------------------------------------------------------- */
.post-nav {
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 48%;
}

.post-nav-next { margin-left: auto; text-align: right; }

.post-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-nav-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

.post-nav a:hover .post-nav-title { color: var(--blue-dark); }

@media (max-width: 480px) {
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .post-nav-next { margin-left: 0; text-align: left; }
}
/* ---------------------------------------------------------------
   Text pages like Disclosure (src/disclosure.njk)
   Same column as the page title, with a readable line length
   --------------------------------------------------------------- */
.page-note {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.page-note > * { max-width: 680px; }

.page-note h2 {
  font-weight: 700;
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

.page-note p { margin: 0 0 1.1rem; }
.page-note ul { margin: 0 0 1.3rem; padding-left: 1.25rem; }
.page-note li { margin-bottom: 0.5rem; }

/* Links inside writing: blue and underlined so they are obvious */
.post-body a,
.page-note a,
.page-lede a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover,
.page-note a:hover,
.page-lede a:hover {
  color: var(--ink);
}