@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Patrick+Hand&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ============================================
   PALETTE — pulled directly from Gus image
   bg:        #f5edd8  warm parchment (lightened wall)
   bg-alt:    #ede3cc  slightly darker section bg
   ink:       #2c2416  dark shirt tone = body text
   ink-soft:  #5c4e38  mid brown = secondary text
   ink-faint: #9a8a72  lightest usable text
   accent:    #8a9ba8  dusty blue kitchen wall
   accent-dk: #5a7080  darker blue for links
   rule:      #d4c9b0  faint divider lines
   ============================================ */

:root {
  --bg:         #f5edd8;
  --bg-alt:     #ede3cc;
  --bg-dark:    #2c2416;
  --ink:        #2c2416;
  --ink-soft:   #5c4e38;
  --ink-faint:  #9a8a72;
  --accent:     #8a9ba8;
  --accent-dk:  #5a7080;
  --rule:       #d4c9b0;
  --font-logo:  'Permanent Marker', cursive;
  --font-body:  'Lora', Georgia, serif;
  --font-hand:  'Patrick Hand', cursive;
  --max:        740px;
  --max-wide:   1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 400;
}

a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }

/* ============================================
   TYPE
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; font-size: 1.05rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-soft);
}
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--ink);
  padding: 0.25rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.container      { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.5rem; }
.container-blog { max-width: var(--max);      margin: 0 auto; padding: 0 1.5rem; }

.section    { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt {
  background: var(--bg-alt);
  padding: 3.5rem 0;
}

/* ============================================
   HOMEPAGE HERO — blog header, not landing page
   ============================================ */
.home-hero {
  padding: 3rem 0 0;
  border-bottom: 1px solid var(--rule);
}

.home-hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: end;
}

.home-hero-text {
  padding-bottom: 2.5rem;
}

.home-byline {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  display: block;
}

.home-hero h1 {
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.home-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.home-hero-disclosure {
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.6;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* Gus image area — no frame, blends into bg */
.home-hero-gus {
  align-self: end;
  position: relative;
}

.home-hero-gus img {
  width: 100%;
  display: block;
  /* watercolor blends into parchment bg */
  mix-blend-mode: multiply;
  filter: saturate(0.9);
}

/* placeholder when no image yet */
.gus-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}

/* ============================================
   ARTICLE ILLUSTRATION — inline, no frame
   ============================================ */
.article-gus {
  margin: 2rem 0;
  text-align: center;
}

.article-gus img {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: block;
  mix-blend-mode: multiply;
  filter: saturate(0.9);
}

.article-gus .gus-placeholder {
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 4/3;
}

.gus-caption {
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================
   BLOG POST LIST — homepage
   ============================================ */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.post-item:last-child { border-bottom: none; }

.post-tag {
  font-family: var(--font-hand);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.post-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.4rem;
}
.post-title:hover { color: var(--accent-dk); }

.post-excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.post-arrow {
  font-family: var(--font-hand);
  color: var(--ink-faint);
  font-size: 1.2rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.article-breadcrumb {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.article-breadcrumb a { color: var(--ink-faint); }
.article-breadcrumb a:hover { color: var(--ink-soft); }

.article-tag {
  font-family: var(--font-hand);
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.article-header h1 {
  font-style: italic;
  max-width: 680px;
}

.article-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
}
.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* quick answer box */
.quick-answer {
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.quick-answer h4 {
  font-family: var(--font-hand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dk);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.quick-answer p { font-size: 0.98rem; margin: 0; color: var(--ink-soft); }

/* system box */
.system-box {
  background: var(--bg-dark);
  color: #e8dfc8;
  padding: 1.75rem;
  margin: 2.5rem 0;
  border-radius: 4px;
}
.system-box h4 {
  font-family: var(--font-hand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.system-box p, .system-box li { color: #c8bfa8; font-size: 0.95rem; }

/* educational note */
.edu-note {
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 2.5rem;
  line-height: 1.6;
}

/* related guides */
.related-guides {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.related-guides h4 {
  font-family: var(--font-hand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  font-weight: 400;
}
.related-guides ul { list-style: none; padding: 0; margin: 0; }
.related-guides li { margin-bottom: 0.6rem; }
.related-guides a { font-size: 0.98rem; color: var(--accent-dk); }

/* ============================================
   INTERIOR PAGE HEADER
   ============================================ */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { font-style: italic; }
.page-header .page-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.page-body h2 {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
}
.page-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* principles list */
.principles-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.principles-list li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-soft);
}
.principles-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-hand);
}

/* ============================================
   TOOLS PAGE
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.tool-card {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1.5rem;
}
.tool-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.tool-card p  { font-size: 0.9rem; margin-bottom: 0.75rem; }
.tag-soon {
  font-family: var(--font-hand);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-hand);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--bg-dark);
  color: var(--bg);
}
.btn-primary:hover {
  background: #1a160d;
  color: var(--bg);
  text-decoration: none;
}
.btn-soft {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.btn-soft:hover {
  border-color: var(--ink-soft);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  color: var(--bg);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: #6a5a48;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #3a2f22;
}

.footer-col h4 {
  font-family: var(--font-hand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a5a48;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  font-family: var(--font-hand);
  font-size: 0.92rem;
  color: #4a3c2e;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #8a7a68; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: var(--font-hand);
  font-size: 0.82rem;
  color: #3a2f22;
  margin: 0;
}

/* ============================================
   GUS IMAGE PROMPT REFERENCE (comments only)
   Prompt template for generating article images:
   "Gus, cartoon watercolor illustration, middle-aged
   man, round cartoonish face, heavy-lidded skeptical
   expression, thick black rectangular glasses, spiky
   salt-and-pepper hair, black t-shirt, kitchen setting,
   warm tan walls, dusty blue-gray background,
   realistic kitchen detail, [SITUATION], mug text:
   [MUG TEXT], wide format 4:3"
   ============================================ */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
    z-index: 99;
  }
  .site-nav { position: relative; }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .home-hero-gus {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .home-hero-text { padding-bottom: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
  }

  .post-item {
    grid-template-columns: 1fr;
  }
  .post-arrow { display: none; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .container, .container-blog { padding: 0 1rem; }
  .article-body, .page-body { padding: 2rem 1rem 3rem; }
}
