/* KyleAWebb.com — shared styles
   Palette (Midnight): near-black page, midnight-slate heroes, oxblood bands,
   cream text, with forest / olive / oxblood / midnight for the four ideas. */

:root {
  color-scheme: dark;
  --bg: #111316;
  --surface: #181B20;
  --ink: #EEE7DA;
  --muted: #A39B8F;
  --line: #2A2F37;
  --field-line: #343A44;
  --label: #C9B79A;      /* warm cream-tan for small labels and links */
  --em: #D9C3BC;         /* italic highlight in headlines */
  --accent: #9A2A32;     /* cardinal: solid buttons */
  --accent-ink: #F6F0E5;
  --quote: #C24A52;
  --hero-bg: #1C2532;    /* midnight slate */
  --hero-muted: #BAC0CB;
  --band-bg: #3B0D12;    /* oxblood */
  --band-muted: #D9C3BC;
  --forest: #22352A; --olive: #5E5C30; --oxblood: #5A1419; --midnight: #34425A;
  --error: #F09090;
  --ok: #9CC9A0;
  --measure: 680px;
  --wide: 1160px;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Faint film grain for warmth */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* Photos shot on the blue studio backdrop run in warm black & white */
.bw { filter: grayscale(1) sepia(.12) contrast(1.06) brightness(.98); }

/* ---------- Header (sits on the midnight hero) ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--wide); margin: 0 auto; padding: 24px;
  border-bottom: 1px solid rgba(243,236,223,.14);
}
.site-header .logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 15px; letter-spacing: .02em; }
.site-nav a { text-decoration: none; opacity: .78; transition: opacity .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]:not(.cta) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-nav a.cta { opacity: 1; border: 1px solid currentColor; padding: 7px 16px; border-radius: 2px; }
.site-nav a.cta:hover, .site-nav a.cta[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Page hero (midnight band at the top of every page) ---------- */
.hero { background: var(--hero-bg); overflow: hidden; }
.hero-grid {
  max-width: var(--wide); margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center;
}
.hero-grid.solo { grid-template-columns: 1fr; padding-bottom: 72px; }
.hero-grid.solo > div { max-width: 820px; }
.hero h1 {
  font-family: var(--display); font-size: clamp(40px, 5.8vw, 70px); line-height: 1.04;
  letter-spacing: -0.02em; font-weight: 500; margin: 0 0 26px; font-variation-settings: "opsz" 144;
}
.hero h1 em, .h2 em, .display em { font-style: italic; font-weight: 400; color: var(--em); }
.hero .lede { color: var(--hero-muted); }
.hero figure { margin: 0 18px 18px 0; position: relative; }
.hero figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(243,236,223,.3); }
.hero figure img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; }
.hero .site-nav.ideas-nav { margin-top: 8px; }

.stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.stripe i:nth-child(1) { background: var(--forest); } .stripe i:nth-child(2) { background: var(--olive); }
.stripe i:nth-child(3) { background: var(--oxblood); } .stripe i:nth-child(4) { background: var(--midnight); }

/* ---------- Layout ---------- */
main { display: block; }
.section { max-width: var(--wide); margin: 0 auto; padding: 96px 24px; }
.section.tight { padding-top: 0; }
.section.center { text-align: center; }
.section.center .lede, .section.center .sub { margin-left: auto; margin-right: auto; }
.prose { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Type ---------- */
.label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin: 0 0 20px; }
.display {
  font-family: var(--display); font-size: clamp(36px, 5vw, 56px); line-height: 1.06;
  letter-spacing: -0.02em; font-weight: 500; margin: 0 0 22px;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 32px; max-width: 620px; }
.h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 18px; }
.h3 { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0; }

.prose p { margin: 0 0 1.15em; font-size: 18px; }
.prose h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.015em; line-height: 1.2; font-weight: 500; margin: 2.2em 0 .8em; }
.prose h3 { font-family: var(--display); font-size: 23px; letter-spacing: -0.01em; font-weight: 500; line-height: 1.3; margin: 2em 0 .6em; }
.prose .pull { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.35; letter-spacing: -0.01em; margin: 1.4em 0 1em; color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.15em; font-size: 18px; }
.prose li { margin-bottom: .3em; }
.prose a, .section p a, .card a, .ideas-cta a { color: var(--label); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .section p a:hover, .card a:hover { color: var(--ink); }
.prose figure { margin: 2.6em 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); font-family: var(--display); font-style: italic; }
.role { color: var(--muted); font-weight: 500; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btns { justify-content: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none;
  font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 2px; border: 0; cursor: pointer; transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-wide { min-width: 220px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(243,236,223,.5); }
.btn-ghost:hover { background: rgba(243,236,223,.08); opacity: 1; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }

/* ---------- Cards / columns ---------- */
.grid { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 30px 30px 34px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.grid > .card:nth-child(3n) { border-right: 0; padding-right: 0; }
.grid > .card:not(:nth-child(3n+1)) { padding-left: 30px; }
.grid-2 > .card:nth-child(3n), .grid-2 > .card:not(:nth-child(3n+1)) { padding: 30px 30px 34px 0; border-right: 1px solid var(--line); }
.grid-2 > .card:nth-child(even) { padding-left: 30px; padding-right: 0; border-right: 0; }
.card .n { font-family: var(--display); font-style: italic; color: var(--label); font-size: 16px; margin-bottom: 14px; }
.card .h3 { font-size: 26px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.card .role { font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.card .go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; color: var(--label); text-decoration: none; }
a.card { text-decoration: none; }
a.card:hover .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Chain: systems → access → participation → outcomes */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; }
.chain > div { padding: 28px 26px 30px; color: #F3ECDF; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.chain > div:nth-child(1) { background: var(--forest); } .chain > div:nth-child(2) { background: var(--olive); }
.chain > div:nth-child(3) { background: var(--oxblood); } .chain > div:nth-child(4) { background: var(--midnight); }
.chain .n { font-family: var(--display); font-style: italic; font-size: 18px; opacity: .7; }
.chain b { display: block; font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 6px; }
.chain .t { font-size: 15px; opacity: .85; }

/* Oxblood band (speaking) */
.band { background: var(--band-bg); }
.band-grid { max-width: var(--wide); margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.band-grid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 10%; width: 100%; }
.band .label { color: #E1C9A8; }
.band .sub { color: var(--band-muted); }
.formats { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0 36px; padding: 0; list-style: none; border-top: 1px solid rgba(243,236,223,.22); }
.formats li { border-bottom: 1px solid rgba(243,236,223,.22); padding: 14px 16px 14px 0; font-family: var(--display); font-size: 20px; }

/* Four ideas */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid var(--ink); }
.pillar { padding: 26px 24px 32px 0; text-decoration: none; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 24px; }
.pillar:last-child { border-right: 0; }
.pillar .sw { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); margin-bottom: 22px; box-shadow: 0 0 0 1px rgba(243,236,223,.25); }
.pillar:nth-child(2) .sw { background: var(--olive); } .pillar:nth-child(3) .sw { background: var(--oxblood); } .pillar:nth-child(4) .sw { background: var(--midnight); }
.pillar h3 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.015em; margin: 0 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.pillar .go { font-size: 14px; font-weight: 600; color: var(--label); }
.pillar:hover h3 { font-style: italic; }

/* About strip */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pics img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.pics img:nth-child(2) { margin-top: 64px; object-position: 30% center; }
blockquote.quote { font-family: var(--display); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.22; letter-spacing: -0.015em; font-weight: 400; font-style: italic; margin: 0 0 24px; }
blockquote.quote::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--quote); font-style: normal; margin-bottom: 10px; }

/* Newsletter box */
.news { background: var(--hero-bg); padding: 64px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.news .h2 { margin: 0 0 10px; }
.news p { margin: 0; color: var(--hero-muted); font-size: 18px; }
.news .btn { justify-self: end; }

.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; margin-top: 40px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

hr.rule { border: 0; border-top: 1px solid var(--line); max-width: var(--wide); margin: 0 auto; }

/* ---------- Form ---------- */
.form { max-width: var(--measure); text-align: left; display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.field legend { margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: 2px; background: var(--surface); color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #6E6A64; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--label); outline-offset: 1px; border-color: var(--label); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 400; font-size: 15px; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--field-line); border-radius: 2px; cursor: pointer; transition: all .15s; user-select: none; }
.chips span:hover { border-color: var(--muted); }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--label); outline-offset: 2px; }
.hidden { position: absolute; left: -9999px; }
.form-status { font-size: 15px; margin: 12px 0 0; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.form-success { max-width: var(--measure); padding: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-cols { max-width: var(--wide); margin: 0 auto; padding: 56px 24px 72px; display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; }
.footer-cols .sig img { height: 40px; width: auto; opacity: .9; }
.footer-cols .sig { margin-right: auto; }
.footer-cols h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: var(--muted); text-decoration: none; line-height: 1.9; }
.footer-cols a:hover { color: var(--ink); }

/* ---------- Thinking: expandable ideas ---------- */
.ideas { padding-top: 40px; }
.ideas-toggle { text-align: right; margin: 0 0 8px; }
.ideas-toggle button, .idea-collapse {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0;
  padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.ideas-toggle button:hover, .idea-collapse:hover { color: var(--ink); }
.idea { padding: 48px 0 56px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.idea:first-of-type { border-top: 0; padding-top: 8px; }
.idea-title { display: flex; align-items: center; gap: 16px; }
.idea-title::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 1px rgba(243,236,223,.25); }
#alignment .idea-title::before { background: var(--olive); }
#incentives .idea-title::before { background: var(--oxblood); }
#parity .idea-title::before { background: var(--midnight); }
.prose h2.idea-title { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; }
.idea-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  padding: 11px 20px; border: 1px solid rgba(243,236,223,.5); border-radius: 2px;
  margin-top: 4px; transition: background .15s, color .15s;
}
.idea-more > summary::-webkit-details-marker { display: none; }
.idea-more > summary::after { content: "↓"; transition: transform .2s; }
.idea-more > summary:hover { background: var(--ink); color: var(--bg); }
.idea-more > summary:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }
.idea-more .when-open { display: none; }
.idea-more[open] > summary { border-color: transparent; padding-left: 0; color: var(--muted); }
.idea-more[open] > summary:hover { background: none; color: var(--ink); }
.idea-more[open] > summary::after { transform: rotate(180deg); }
.idea-more[open] .when-open { display: inline; }
.idea-more[open] .when-closed { display: none; }
.idea-body { padding-top: 12px; animation: idea-in .25s ease-out; }
.idea-collapse { margin-top: 8px; }
@keyframes idea-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .idea-body { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .band-grid, .split, .news { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 40px; padding-bottom: 64px; gap: 48px; }
  .hero figure { max-width: 400px; }
  .band-grid { padding: 72px 24px; gap: 48px; }
  .band-grid img { max-width: 420px; }
  .chain, .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 20px 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .grid > .card, .grid > .card:not(:nth-child(3n+1)), .grid-2 > .card:nth-child(even) { padding: 28px 0; border-right: 0; }
  .news { padding: 40px 28px; } .news .btn { justify-self: start; }
  .site-header { flex-direction: column; gap: 16px; }
  .section { padding: 72px 24px; }
  .footer-cols { gap: 36px; }
  .footer-cols .sig { flex-basis: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .chain { grid-template-columns: 1fr; } .chain > div { min-height: 0; gap: 18px; }
  .pillars { grid-template-columns: 1fr; } .pillar:nth-child(even) { padding-left: 0; border-left: 0; }
  .formats { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
  .prose p, .prose ul { font-size: 17px; }
}
