/* Stuart Hillston — The Mindful Entrepreneur
   One stylesheet for the whole site. Change a colour or a font here
   and every page follows. Colours match the LinkedIn banner. */

:root {
  --slate:      #22303C;
  --slate-deep: #1C2830;
  --paper:      #FBFAF8;
  --cream:      #EEE9E0;
  --copper:     #C4824A;   /* decorative: rules, accents on dark */
  --copper-ink: #8F5522;   /* text links — darker, for contrast */
  --muted:      #5A6B78;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate-deep);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 2em; }

p { margin: 0 0 1.35em; }

a { color: var(--copper-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }

/* ---------- header ---------- */

.site-head {
  background: var(--slate);
  color: var(--cream);
  padding: 1.1rem 0;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.94rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--copper); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--copper); }

/* ---------- hero ---------- */

.hero {
  background: var(--slate);
  color: var(--cream);
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.hero h1 { color: var(--cream); max-width: 18ch; margin-bottom: 0.5em; }

.hero p {
  color: var(--cream);
  opacity: 0.92;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 0;
}

.rule {
  width: 9rem;
  height: 3px;
  background: var(--copper);
  border: 0;
  margin: 2rem 0 1.75rem;
}

/* ---------- main ---------- */

main { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }

.lede { font-size: 1.18rem; }

blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--copper);
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--slate);
}

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

/* ---------- call to action ---------- */

.cta {
  margin: 3rem 0 1rem;
  padding: 2rem 1.75rem;
  background: var(--cream);
  border-left: 4px solid var(--copper);
}

.cta p { margin-bottom: 1.2rem; }
.cta > :last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  background: var(--slate);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
}

.button:hover { background: var(--slate-deep); }
.button:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

/* ---------- writing list ---------- */

.posts { list-style: none; padding: 0; margin: 2rem 0; }

.posts li {
  padding: 1.1rem 0;
  border-top: 1px solid #E3DED4;
}

.posts li:last-child { border-bottom: 1px solid #E3DED4; }

.posts a {
  font-family: "Lora", Georgia, serif;
  font-size: 1.12rem;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}

.posts span { display: block; color: var(--muted); font-size: 0.95rem; }

/* ---------- placeholders: delete these blocks as you fill them ---------- */

.todo {
  background: #FFF6E8;
  border: 1px dashed var(--copper);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #6B4415;
}

.todo strong { font-weight: 500; }
.todo > :last-child { margin-bottom: 0; }

/* ---------- embeds (Substack subscribe form) ---------- */

iframe {
  max-width: 100%;
  display: block;
  margin: 1.5rem 0;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--slate);
  color: var(--cream);
  margin-top: 4rem;
  padding: 2.5rem 0;
  font-size: 0.94rem;
}

.site-foot a { color: var(--cream); }
.site-foot p { margin-bottom: 0.6rem; opacity: 0.9; }
.site-foot p:last-child { margin-bottom: 0; opacity: 0.7; font-size: 0.88rem; }

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: -9999px;
  background: var(--cream);
  color: var(--slate-deep);
  padding: 0.75rem 1rem;
}

.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
