/* Do With Claude — design tokens & base styles.
   v3 look (Paul approved 2026-09-29): a friendly personal blog, not a landing
   page. White page, soft mint touches, rounded Nunito headings, Inter body,
   18px base for a 40+ audience. No pitch blocks, no gradient CTA boxes —
   YouTube is mentioned quietly. Mockups: design/mockups/. Palette:
   docs/image-notes.md. */

:root {
  --white:    #FFFFFF;
  --heading:  #0F3B2B;  /* headings, brand */
  --ink:      #1D3B30;  /* body text */
  --muted:    #5E7169;  /* secondary text */
  --line:     #E3EEE7;  /* dividers */
  --green:    #0E6B4A;  /* links, buttons */
  --green-2:  #0B5A3E;  /* hover */
  --fresh:    #2BB673;
  --mint:     #EEF8F2;  /* panels, pills, footer */
  --mint-2:   #DDF1E5;
  --cream:    #FFF8E7;
  --gold:     #FFC94A;

  --font-round: 'Nunito', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;

  --radius:    20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-round);
  font-weight: 800;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}

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

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--heading);
  white-space: nowrap;
}

.brand img { width: 34px; height: 34px; }

nav.main-nav {
  display: flex;
  gap: 1.4rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
}

nav.main-nav a { white-space: nowrap; transition: color .15s; }
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] { color: var(--green); }

/* ---------- Shared bits ---------- */

.panel {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--mint-2);
}

.panel > * { position: relative; z-index: 1; }

.pill {
  display: inline-block;
  background: var(--mint);
  color: var(--green);
  font-weight: 600;
  font-size: .78rem;
  border-radius: 999px;
  padding: .12rem .65rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .4rem;
}

.text-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-block;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--green);
  color: var(--white);
  transition: background .15s;
}

.btn:hover { background: var(--green-2); }

.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* the one quiet YouTube mention */
.video-note {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin: 2rem 0 3rem;
  padding: 1.1rem 1.3rem;
  border: 1.5px dashed var(--mint-2);
  border-radius: 18px;
  font-size: .95rem;
  color: var(--muted);
}

.video-note .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  display: grid;
  place-items: center;
}

.video-note .icon svg { width: 20px; height: 20px; }
.video-note a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Homepage intro ---------- */

.intro { margin: .5rem 0 2.5rem; }

.intro .hi {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--green);
  font-size: .95rem;
  margin: 0 0 .5rem;
}

.intro h1 { font-size: 2.05rem; line-height: 1.22; margin-bottom: .9rem; }

.intro p { font-size: 1.05rem; margin: 0 0 .7rem; max-width: 36em; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- Article list ---------- */

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 .4rem;
}

.list-head h2 { font-size: 1.35rem; margin: 0; }
.list-head a { font-size: .88rem; font-weight: 600; color: var(--green); }

.post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.post:last-child { border-bottom: 0; }

.post .thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mint);
}

.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.post:hover .thumb img { transform: scale(1.03); }

.post .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.post .play svg { width: 40px; height: 40px; filter: drop-shadow(0 3px 8px rgba(6,48,31,.3)); }

.post h3 { font-size: 1.3rem; line-height: 1.28; margin: 0 0 .4rem; }
.post h3 a:hover { color: var(--green); }
.post p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.55; }

.empty-state {
  padding: 2rem;
  border: 1.5px dashed var(--mint-2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

/* ---------- Article page ---------- */

.article-detail { padding-top: 1.5rem; }

.article-title { font-size: 2.3rem; line-height: 1.18; margin: .3rem 0 .8rem; }

.article-featured-image,
.article-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint);
  margin: 1.4rem 0 2rem;
}

.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.article-video iframe { width: 100%; height: 100%; border: 0; }

.article-body { font-size: 1.05rem; line-height: 1.75; }

.article-body p { margin: 0 0 1.2rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.article-body img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; padding: 0; }
.article-body li { margin-bottom: .45rem; }
.article-body strong { color: var(--heading); }

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--mint);
  border-radius: var(--radius-sm);
  color: var(--heading);
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0 1.8rem;
  font-size: .9rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-body th,
.article-body td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  background: var(--mint);
  color: var(--heading);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: .85rem;
}

.article-body tbody tr:last-child td { border-bottom: 0; }

.article-body code {
  background: var(--mint);
  padding: .1rem .4rem;
  border-radius: 6px;
  font-size: .92em;
}

.more-section { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); margin-bottom: 2.5rem; }
.more-heading { font-size: 1.35rem; margin: 0 0 .4rem; }

/* ---------- Category page ---------- */

.category-head { margin: 1.5rem 0 1.5rem; }
.category-head h1 { font-size: 2.1rem; margin-bottom: .4rem; }
.category-head p { margin: 0; font-size: 1.05rem; }

/* ---------- About page ---------- */

.page-body { font-size: 1.05rem; line-height: 1.75; }
.page-body p { margin: 0 0 1.2rem; }
.page-body h2 { font-size: 1.4rem; margin-top: 2rem; }
.page-body ul { margin: 0 0 1.2rem 1.4rem; padding: 0; }
.page-body li { margin-bottom: .45rem; }
.page-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */

.contact-section { padding-top: 1.5rem; padding-bottom: 3rem; }
.contact-section h1 { font-size: 2.1rem; }
.contact-intro { color: var(--muted); margin-bottom: 1.5rem; }

.contact-flash {
  background: var(--mint);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 600px;
}

.contact-form label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; display: block; color: var(--heading); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fresh);
}

.contact-form .errorlist {
  list-style: none;
  color: #B42318;
  font-size: .85rem;
  margin: .3rem 0 0;
  padding: 0;
}

.contact-form .btn { align-self: flex-start; }

/* Honeypot — hidden from real visitors, but not via display:none/hidden
   (some bots skip those specifically). See core/forms.py. */
.contact-hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--mint);
  padding: 1.8rem 0 2.2rem;
  font-size: .84rem;
  color: var(--muted);
  margin-top: 1rem;
}

.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer strong { font-family: var(--font-round); font-weight: 800; color: var(--heading); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.site-footer a:hover { color: var(--green); }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  html { font-size: 17px; }
  nav.main-nav { gap: 1rem; font-size: .86rem; }
  nav.main-nav .hide-sm { display: none; }
  .brand { font-size: 1.08rem; }
  .panel { padding: 1.6rem 1.4rem; }
  .intro h1 { font-size: 1.65rem; }
  .article-title { font-size: 1.8rem; }
  .post { grid-template-columns: 1fr; gap: .9rem; }
  /* Wide tables scroll sideways inside themselves instead of widening the page. */
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th, .article-body td { min-width: 130px; }
}
