:root {
  --cream: #FBF7F0;
  --sand: #E8DFD2;
  --terracotta: #C45C3E;
  --terracotta-dark: #A34830;
  --sage: #6B8F71;
  --sage-dark: #55755A;
  --charcoal: #2C2A26;
  --muted: #5C574F;
  --white: #ffffff;
  --max: 1100px;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(44, 42, 38, 0.08);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.55;
}
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; flex-wrap: nowrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--charcoal);
  line-height: 1.1;
}
.logo:hover { text-decoration: none; color: var(--charcoal); }
.logo-mark {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.logo-text span { color: var(--terracotta); }
@media (max-width: 720px) {
  .logo-mark { width: 48px; height: 48px; }
  .logo-text { font-size: 1.05rem; }
}
.nav { display: flex; flex-wrap: nowrap; gap: 0.75rem 1rem; align-items: center; }
.nav a {
  color: var(--muted); font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--terracotta); }
.btn {
  display: inline-block; border-radius: 999px; padding: 0.65rem 1.15rem;
  background: var(--terracotta); color: var(--white) !important;
  font-weight: 700; text-decoration: none !important; border: none; cursor: pointer;
  font: inherit;
}
.btn:hover { background: var(--terracotta-dark); }
.btn-ghost {
  background: transparent; color: var(--terracotta) !important;
  border: 1.5px solid var(--terracotta);
}
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem;
  align-items: center; padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 0.75rem;
}
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.25rem; }
.hero-art {
  background: linear-gradient(145deg, var(--sand), #f3ebe0);
  border-radius: 22px; min-height: 260px; padding: 1.5rem;
  display: flex; align-items: flex-end; box-shadow: var(--shadow);
  border: 1px solid #dfd4c4;
}
.badge {
  background: var(--white); border-radius: 12px; padding: 0.9rem 1rem;
  box-shadow: var(--shadow); max-width: 17rem;
}
.badge strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.25rem; }
.section { padding: 2rem 0; }
.section h2, .page-hero h1 {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 0.4rem;
}
.sub { color: var(--muted); margin: 0 0 1.25rem; }
.pillar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.85rem;
}
.pillar-card {
  background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.4rem; color: inherit;
  text-decoration: none; min-height: 100%;
}
.pillar-card:hover { border-color: #d4b8a8; text-decoration: none; }
.pillar-card .icon {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: #edf3ee; color: var(--sage-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.pillar-card h3 { font-family: var(--font-serif); font-size: 1.02rem; margin: 0; color: var(--charcoal); }
.pillar-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.more { color: var(--terracotta); font-weight: 700; font-size: 0.88rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.story-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--sand); overflow: hidden; box-shadow: var(--shadow);
}
.story-card .thumb { height: 130px; background: linear-gradient(120deg, #d8c8b4, #c5d5c8); }
.story-card .body { padding: 1rem; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.04em;
}
.story-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0.35rem 0; }
.story-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.newsletter {
  background: var(--sage); color: var(--white);
  border-radius: 20px; padding: 1.5rem 1.75rem; margin: 1rem 0 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: center;
}
.newsletter h2 { margin: 0 0 0.35rem; font-family: var(--font-serif); color: var(--white); font-size: 1.5rem; }
.newsletter p { margin: 0; opacity: 0.92; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 180px; border: none; border-radius: 999px;
  padding: 0.75rem 1rem; font: inherit;
}
.page-hero { padding: 2rem 0 0.5rem; }
.page-hero p { color: var(--muted); max-width: 42rem; }
.hub-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.hub-list li {
  background: var(--white); border: 1px solid var(--sand);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.7rem;
}
.site-footer {
  border-top: 1px solid var(--sand); padding: 2rem 0 2.5rem;
  color: var(--muted); font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem;
}
.site-footer a { color: var(--muted); }
.site-footer h4 { margin: 0 0 0.5rem; color: var(--charcoal); font-size: 0.95rem; }
.fine { font-size: 0.82rem; color: #7a746a; margin-top: 1.25rem; }
@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .story-grid, .footer-grid, .hero, .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* Article pages */
.draft-banner {
  background: #f3ebe0;
  border-bottom: 1px solid var(--sand);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0;
  text-align: center;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--charcoal); }
.article { padding: 1.5rem 0 2.5rem; max-width: 42rem; }
.article h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.article .dek {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 1.75rem 0 0.6rem;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.45rem;
}
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.callout {
  background: var(--white);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--sage);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.callout strong { display: block; margin-bottom: 0.25rem; }
.disclosure {
  background: #f3ebe0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
}
.affiliate-box {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
}
.affiliate-box h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.affiliate-box p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.affiliate-box ul { margin: 0; padding-left: 1.15rem; }
.affiliate-box .placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  background: #f3ebe0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.internal-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.checklist li {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  margin-bottom: 0.55rem;
  padding: 0.75rem 1rem;
}
.checklist li::before {
  content: "☐ ";
  color: var(--sage-dark);
  font-weight: 700;
}

/* Mobile primary nav: single toolbar + menu panel (no multi-row wrap) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--terracotta);
  background: var(--white);
  color: var(--terracotta);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: #f8efe9;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 1rem;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--terracotta);
}

@media (max-width: 768px) {
  .header-inner {
    /* wrap only so the open panel can sit under logo+button; closed nav is display:none */
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--sand);
    margin-top: 0.15rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.7rem 0.15rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--sand);
  }
  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.55rem;
    text-align: center;
  }
  .nav a.btn {
    padding: 0.65rem 1.15rem;
  }
}

@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
  .nav {
    display: flex !important;
    flex-wrap: wrap;
  }
}

/* Article byline + editorial note */
.article .byline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: -0.45rem 0 0.65rem;
  line-height: 1.4;
}
.article .editorial-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f3ebe0;
  border-radius: 8px;
}

/* Skimmable worth-it list */
.worth-it-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.worth-it-list li { margin-bottom: 0.35rem; }
.josh-block ul { margin: 0.35rem 0 0.85rem; }
.josh-block p { margin: 0 0 0.35rem; }
.josh-block p:last-of-type { margin-top: 0.5rem; }

/* Compare / break-even tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  border: 1px solid var(--sand);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: #f3ebe0;
  font-weight: 700;
}
.compare-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.compare-table .th-sub {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}
.table-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}


/* Article figures (Graphics Designer) */
.article-figure,
.article-hero {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}
.article-figure img,
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #dfd4c4;
  background: var(--sand);
}
.article-figure figcaption,
.article-hero figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
