/* Doug McArthur — dougmcarthur.net
   Typography & palette carried over from the WordPress/Divi site:
   Poppins throughout; near-black header, sage-teal accent, warm paper background. */

:root {
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #23282d;
  --muted: #5d6672;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e9e3d7;
  --accent: #679c8b;
  --accent-dark: #4a7a6c;
  --accent-soft: #e6f0ec;
  --header-bg: #1b2125;
  --header-ink: #f2f5f3;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 33, 37, .06), 0 2px 8px rgba(27, 33, 37, .06);
  --shadow-md: 0 2px 4px rgba(27, 33, 37, .08), 0 8px 24px rgba(27, 33, 37, .10);
  --maxw: 1180px;
  --maxw-narrow: 860px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
}
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.25vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.25rem); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* ---------- header ---------- */
.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
  color: #dfe7e3; text-decoration: none; font-size: .93rem; font-weight: 500;
  letter-spacing: .01em; white-space: nowrap;
  padding: 10px 14px; border-radius: 8px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a.active { color: #fff; border-bottom-color: var(--accent); border-radius: 8px 8px 0 0; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer;
  font-family: var(--font);
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(72px, 12vw, 130px) 20px clamp(56px, 9vw, 100px);
  background: var(--header-bg) url("/assets/media/doug-visions-17-Large.jpeg") center 30% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18,24,22,.68), rgba(18,24,22,.55)); }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5vw + 1rem, 3.8rem); font-weight: 700; margin: 0 0 10px; letter-spacing: .02em; }
.hero .tagline { font-size: clamp(1.05rem, 1rem + .6vw, 1.3rem); font-weight: 500; color: #dfe7e2; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 11px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: none; cursor: pointer; font-family: var(--font);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 2px solid #fff; box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.14); }

/* ---------- sections & cards ---------- */
main.wrap { padding-bottom: 24px; }
section.block { padding: clamp(36px, 6vw, 60px) 0 8px; }
section.block h2.section-title {
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.85rem);
  margin: 0 0 .35em; padding-bottom: .35em;
  border-bottom: 3px solid var(--accent); display: inline-block;
}
section.block .lede { color: var(--muted); margin-top: 0; font-size: 1.02em; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px); margin: 20px 0; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: .82em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 .card { margin: 0; }
.stack { display: grid; grid-template-columns: 1fr; gap: 20px; }
.meta { color: var(--muted); font-size: .92rem; margin: -.6rem 0 1rem; }

/* bio */
.bio-block p { max-width: 68ch; }

/* ---------- embeds ---------- */
.embed { margin: 14px 0; }
.embed iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.video-grid iframe { aspect-ratio: 16/9; height: auto; }

/* ---------- quotes ---------- */
blockquote {
  margin: 1.2em 0; padding: .4em 0 .4em 1.1em;
  border-left: 3px solid var(--accent); font-style: italic; color: #3c454d;
}
blockquote cite { display: block; margin-top: .5em; font-style: normal; font-size: .88em; color: var(--muted); }

/* ---------- news / press lists ---------- */
.news-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px); margin: 18px 0; box-shadow: var(--shadow-sm);
}
.news-item h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--accent-dark); }
.post-date { color: var(--muted); font-size: .85rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 .4em; }
/* ---------- blog post readability: text and embeds share one measure ---------- */
article.post { max-width: 74ch; }
article.post .entry { margin-top: 1em; }
article.post .entry p,
article.post .entry ul,
article.post .entry ol { line-height: 1.8; margin: 0 0 1.15em; }
article.post .entry ul,
article.post .entry ol { padding-left: 1.4em; }
article.post .entry li + li { margin-top: .35em; }
article.post .entry h2 { font-size: 1.4rem; margin: 1.7em 0 .5em; line-height: 1.3; }
article.post .entry h3 { font-size: 1.18rem; margin: 1.5em 0 .4em; line-height: 1.35; }
article.post .entry iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; margin: 1.5em 0; }
article.post .entry iframe[src*="youtube"] { aspect-ratio: 16/9; height: auto; }
article.post .entry img { max-width: 100%; height: auto; border-radius: var(--radius); }
article.post .entry figure { margin: 1.5em 0; }
article.page .entry { margin-top: 1em; }
article.page .entry p { max-width: 68ch; }
.back { margin-top: 2em; }

/* ---------- newsletter band (full-bleed) ---------- */
.newsletter-band {
  background: var(--header-bg); color: var(--header-ink);
  margin-top: clamp(36px, 6vw, 64px); padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
}
.newsletter-band h2 { color: #fff; margin-top: 0; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
.newsletter-band > .wrap-narrow > p { color: #c6d2cc; font-size: 1.05rem; }

/* ---------- forms ---------- */
.newsletter {
  background: var(--header-bg); color: var(--header-ink);
  border-radius: var(--radius); padding: clamp(24px, 5vw, 44px);
  text-align: center; box-shadow: var(--shadow-md);
}
.newsletter h2 { color: #fff; margin-top: 0; }
.newsletter p { color: #c6d2cc; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.newsletter-form input[type="email"] {
  font-family: var(--font); font-size: 1rem; padding: 11px 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; min-width: min(280px, 100%);
}
.newsletter-form input[type="email"]::placeholder { color: #9fb0a8; }
.form-msg { margin: 12px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-msg.ok { color: #9fd8b4; }
.form-msg.err { color: #f0a8a8; }

.contact-form { max-width: 620px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .newsletter-form input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .form-msg.ok { color: var(--accent-dark); }
.contact-form .form-msg.err { color: #b3261e; }

/* ---------- footer ---------- */
.site-footer { background: var(--header-bg); color: #b9c6c0; margin-top: 56px; }
.footer-inner { text-align: center; padding: 44px 20px 34px; }
.footer-blurb { font-size: 1.05rem; color: #dfe7e2; margin-bottom: 14px; }
.site-footer .social { display: flex; gap: 4px 20px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; padding: 0; }
.site-footer .social a { color: #dfe7e2; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-footer .social a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.copy { font-size: .82rem; color: #8fa099; margin: 0; }

/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink);
  padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .grid-2, .video-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; padding: 8px 0 4px; }
  .main-nav a { display: block; padding: 10px 12px; border-bottom: none; border-left: 3px solid transparent; }
  .main-nav a.active { border-left-color: var(--accent); border-radius: 0 8px 8px 0; background: rgba(255,255,255,.06); }
  .header-inner { flex-wrap: wrap; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form .btn { width: 100%; }
}
