/* ContentedManager.com — clean and minimal.
   One stylesheet, no framework, no web fonts (fast, and no third-party privacy
   exposure). Colours are defined once as custom properties. */

:root {
  --bg:        #FBFAF8;
  --surface:   #FFFFFF;
  --ink:       #14161A;
  --muted:     #5C6470;
  --rule:      #E4E1DB;
  --accent:    #1D6B57;
  --accent-dk: #14503F;
  --accent-bg: #EAF2EF;
  --shadow:    0 1px 2px rgba(20,22,26,.05), 0 8px 24px rgba(20,22,26,.05);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --wrap: 68rem;
  --prose: 40rem;
  --r: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214; --surface: #16191C; --ink: #ECEDEE; --muted: #99A1AA;
    --rule: #262A2E; --accent: #58C4A4; --accent-dk: #7FD6BC; --accent-bg: #16261F;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--accent-dk); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 99; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 6px; background: var(--ink); color: var(--bg);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.brand-word { font-size: 1.0625rem; letter-spacing: -.01em; font-weight: 400; }
.brand-word strong { font-weight: 700; }
.brand-word-2 { color: var(--muted); }

.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.navtoggle, .navbtn { display: none; }
@media (max-width: 44rem) {
  .navbtn {
    display: block; width: 2.5rem; height: 2.5rem; cursor: pointer;
    border: 1px solid var(--rule); border-radius: var(--r); position: relative; background: var(--surface);
  }
  .navbtn span, .navbtn span::before, .navbtn span::after {
    content: ""; position: absolute; left: .625rem; width: 1.25rem; height: 2px; background: var(--ink);
  }
  .navbtn span { top: 1.2rem; }
  .navbtn span::before { top: -6px; left: 0; }
  .navbtn span::after  { top:  6px; left: 0; }
  .site-nav { display: none; width: 100%; order: 3; }
  .navtoggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .site-nav a { padding: .6rem 0; font-size: 1.05rem; }
  .head-inner { flex-wrap: wrap; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--surface); }
.section-head { max-width: var(--prose); margin-bottom: 2.5rem; }
.eyebrow {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--accent); margin: 0 0 .8rem;
}

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 44ch; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: var(--r);
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 1px solid var(--accent);
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }

/* ── Cards / grids ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid-tiers { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

/* Price tiers */
.tier { display: flex; flex-direction: column; }
.tier .price { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin: .2rem 0 .1rem; }
.tier .price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.tier ul { margin: 1rem 0 1.5rem; padding-left: 1.1rem; }
.tier li { margin-bottom: .4rem; }
.tier .btn { margin-top: auto; text-align: center; }
.tier-featured { border-color: var(--accent); }
.tier-featured .eyebrow { margin-bottom: .3rem; }

/* ── Prose (articles) ───────────────────────────────────────────────────── */
.prose { max-width: var(--prose); font-family: var(--serif); font-size: 1.125rem; line-height: 1.72; }
.prose h2 { font-family: var(--sans); margin-top: 2.2em; }
.prose h3 { font-family: var(--sans); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: 1.8em 0; padding: .2em 0 .2em 1.2rem;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
.prose code { font-size: .9em; background: var(--accent-bg); padding: .1em .35em; border-radius: 4px; }

.article-meta { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.article-meta span + span::before { content: " · "; }

/* Vault index */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a {
  font-size: .875rem; text-decoration: none; padding: .35rem .8rem;
  border: 1px solid var(--rule); border-radius: 100px; color: var(--muted); background: var(--surface);
}
.filters a:hover { border-color: var(--muted); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.entry { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.entry:first-child { padding-top: 0; }
.entry h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.entry .meta { font-size: .82rem; color: var(--muted); margin: 0 0 .5rem; }
.entry .meta span + span::before { content: " · "; }
.entry p { margin: 0; color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
.field input[type=text], .field input[type=email], .field textarea, .field select {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field .err { color: #B3261E; font-size: .875rem; margin: .35rem 0 0; }
@media (prefers-color-scheme: dark) { .field .err { color: #F2B8B5; } }

.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { margin-top: .3rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: .95rem; }

/* Honeypot: off-screen, not display:none — bots skip hidden fields. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--rule); margin-bottom: 1.5rem; }
.notice-ok { background: var(--accent-bg); border-color: var(--accent); }
.notice-bad { background: #FDECEA; border-color: #F2B8B5; color: #7A1E17; }
@media (prefers-color-scheme: dark) { .notice-bad { background: #2C1512; color: #F2B8B5; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 40rem) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { font-size: 1.05rem; margin-bottom: .4rem; }
.foot-brand strong { font-weight: 700; }
.foot-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .7rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; }
.foot-base p { margin: 0; font-size: .85rem; }
