/* michaelkhansen.com — hand-built stylesheet. Tokens mirror the retired Avada theme's rendered values.
   Light is the default; [data-theme="dark"] overrides tokens only. */
:root {
  --site-width: 1170px;
  --narrow-width: 780px;
  --primary: #028fd6;
  --link: #00aeef;
  --link-hover: #0074db;
  --accent-pill: #00aeef;
  --btn-solid: #2176ff;
  --btn-solid-hover: #1d6ce2;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --band-light-1: #ebeced;
  --band-light-2: #e0e0e0;
  --band-dark-1: #20232c;
  --band-dark-2: #191c23;
  --header-bg: rgb(50, 54, 67);
  --header-bg-scrolled: rgba(50, 54, 67, 0.94);
  --nav-color: #ffffff;
  --nav-hover: #03a9f4;
  --text: #1a1a1a;
  --text-strong: #000000;
  --ink: #000000;
  --ink-soft: #333333;
  --label: #7d8088;        /* section labels: 4.3:1 on white (theme had #999 = 2.8:1) */
  --h4: #cccccc;
  --sep: #e0dede;
  --sep-mid: #b9bfcc;
  --form-bg: #f8f8f8;
  --form-border: #dcdde1;
  --form-text: #222222;
  --copyright: #5f6572;
  --icon-tile: #f1f2f5;
  --icon-tile-border: rgba(0, 0, 0, .05);
  --card-bg: #ffffff;
  --card-border: #e6e7ea;
  --hero-overlay: rgba(50, 54, 67, 0.55);
  --body-font: Arial, Helvetica, sans-serif;
  --display-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --nav-font: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121417;
  --surface: #1b1e24;
  --band-light-1: #1b1e24;
  --band-light-2: #23262e;
  --text: #b9bcc2;
  --text-strong: #d5d7db;
  --ink: #f2f3f5;
  --ink-soft: #d0d3d8;
  --label: #a3a7b0;
  --h4: #c2c5cb;
  --sep: #2e323a;
  --sep-mid: #3a3f49;
  --form-bg: #1b1e24;
  --form-border: #3a3f49;
  --form-text: #e4e6ea;
  --copyright: #9a9ea7;
  --icon-tile: #232730;
  --icon-tile-border: rgba(255, 255, 255, .07);
  --card-bg: #1b1e24;
  --card-border: #2e323a;
  --hero-overlay: rgba(10, 12, 16, 0.7);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 13px/2 var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
body.nav-open { overflow: hidden; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 20px; }
hr { border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.ink { color: var(--ink) !important; }
.muted { color: var(--text); }
.small { font-size: 12px; }
.container { max-width: var(--site-width); margin: 0 auto; padding: 0 30px; }
.narrow { max-width: var(--narrow-width); margin-left: auto; margin-right: auto; }

/* ---------- headings ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--body-font); font-weight: 400; color: var(--ink); }
h1 { font-size: 65px; line-height: 1; letter-spacing: 1px; }
h2 { font-size: 48px; line-height: 1.2; letter-spacing: 1px; margin-bottom: 1.5em; }
h3 { font-size: 24px; line-height: 1.6; }
h4 { font-size: 24px; line-height: 1.25; color: var(--h4); }
h5 { font-family: var(--display-font); font-weight: 200; font-size: 19px; line-height: 1.5; }
h6, .label {
  font-family: var(--display-font);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 4px;
  color: var(--label);
  margin: 2.33em 0;
  text-align: center;
}
.prose p { margin: 0 0 20px; }
.prose.center { text-align: center; }
.prose .note { font-size: 15px; color: var(--ink-soft); }
.prose strong.ink { font-weight: 700; }
.prose.light, .prose.light p { color: #d7d9de; }
.ink-prose { color: var(--ink-soft); }
.ink-prose h3 { margin-top: 1.6em; }
.ink-prose a { color: var(--link); }
.prose ul, .prose ol { padding-left: 1.4em; }
.lead { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.page-form .lead { margin: -6px auto 28px; max-width: 560px; }

/* ---------- floating glass header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 4% 0; pointer-events: none; transition: padding .3s; }
.site-header.scrolled { padding-top: 10px; }
.header-inner {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--site-width); margin: 0 auto; min-height: 64px; padding: 0 12px 0 26px; border-radius: 999px;
  background: rgba(16, 19, 27, .55); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: min-height .3s, background-color .3s, box-shadow .3s;
}
.site-header.scrolled .header-inner { min-height: 56px; background: rgba(16, 19, 27, .82); box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; padding: 6px 0; border-radius: 999px; }
/* single high-res source, height-driven so the mark can never be stretched */
.brand img { display: block; height: 18px; width: auto; max-width: none; transition: opacity .2s, height .3s; }
.site-header.scrolled .brand img { height: 16px; }
.brand:hover img { opacity: .8; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  font: 500 12.5px/1 var(--nav-font); letter-spacing: .9px; color: rgba(255, 255, 255, .82);
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.site-nav a.active { color: #7fd0ff; background: rgba(3, 169, 244, .16); }
.site-nav a:focus-visible { outline-offset: 0; }
.nav-theme { margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .12); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: rgba(255, 255, 255, .85);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, color .2s, transform .3s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: rotate(20deg); }
.theme-toggle__icon { display: inline-flex; }
.theme-toggle__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 50%; position: relative; }
.nav-toggle:hover { background: rgba(255, 255, 255, .09); }
.nav-toggle__bar { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }

/* ---------- hero band (inner pages) ---------- */
.hero-band {
  position: relative; text-align: center; padding: 210px 0 100px;
  background: #050a16 url('/assets/img/light-background.jpg') center/cover no-repeat;
}
.hero-band .container { position: relative; }
.hero-band .label { color: #c3c7cf; margin: 0 0 28px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-title { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-title { font-size: 24px; line-height: 1.25; letter-spacing: 1px; color: #fff; margin: 0; font-weight: 400; }

/* ---------- about page ---------- */
.page-about { padding-top: 50px; }
.intro { text-align: center; }
.portrait { border-radius: 50%; width: 155px; height: 155px; object-fit: cover; }
.portrait-link { display: inline-block; }
.intro-name { font-size: 32px; line-height: 1.2; color: var(--ink); margin: 26px 0 8px; }
.intro-subtitle { font-size: 12px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 40px; }
.section { margin-bottom: 24px; }
.page-about .label { margin: 2.6em 0 2.4em; }
.page-about .prose, .page-about .prose p { color: var(--text-strong); }
.page-about .button-row { margin: 34px 0 20px; }

/* proficiency checklist — geometry copied from the Avada render (16px/27.2px rows, 27.2px icon box) */
.section-proficiency { margin: 0 auto; max-width: 1216px; }
.prof-intro { text-align: center; color: var(--label); margin: -1.6em 0 1.6em; font-size: 13px; }
.prof-group { margin: 0 0 34px; }
.prof-title { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 600 11.5px/1 var(--nav-font); letter-spacing: 2.2px; text-transform: uppercase; color: var(--primary); }
.prof-title::after { content: ''; flex: 1; height: 1px; background: var(--sep); }
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 4%; margin-top: 10px; }
ul.checklist-grid { margin-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 27.2px; }
.checklist-item { display: flex; align-items: flex-start; padding: 5.5px 0; }
.checklist-item:first-child { padding-top: 0; }
/* every mark sits on a soft tile so pale brand colours stay legible in both themes */
.icon-wrapper {
  flex: 0 0 27.2px; width: 27.2px; height: 27.2px; margin-right: 11.2px; display: flex; align-items: center; justify-content: center;
  background: var(--icon-tile); border: 1px solid var(--icon-tile-border); border-radius: 7px; margin-top: 0;
}
.checklist-content { flex: 1; color: var(--ink); }
.qualifier { font-size: 9px; color: var(--ink-soft); letter-spacing: .1px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; color: var(--ink); }
.icon-wrapper .ico { width: 17px; height: 17px; }
.ico svg { width: 100%; height: 100%; fill: currentColor; }
.ico-png img { width: 25px; height: 25px; object-fit: contain; }
.icon-wrapper .ico-png img { width: 19px; height: 19px; }
/* light theme: deepen the palest brand colours so they clear the tile */
.ico[style*="#00C4CC"] { color: #00A5AC !important; }
.ico[style*="#31A8FF"] { color: #1F8FE0 !important; }
.ico[style*="#FF9A00"] { color: #E68300 !important; }
.ico[style*="#9999FF"] { color: #6F6FE6 !important; }
.ico[style*="#F06B66"] { color: #E0524C !important; }
.ico[style*="#FF7A59"] { color: #F0663F !important; }
.ico[style*="#FF6C2C"] { color: #F05A17 !important; }
/* dark theme: lift near-black marks, restore brand tones, and back raster logos with a light tile */
[data-theme="dark"] .ico[style*="#000000"], [data-theme="dark"] .ico[style*="#241C15"], [data-theme="dark"] .ico[style*="#01154D"],
[data-theme="dark"] .ico[style*="#333333"], [data-theme="dark"] .ico[style*="#535353"], [data-theme="dark"] .ico[style*="#0B34A3"], [data-theme="dark"] .ico[style*="#242424"], [data-theme="dark"] .ico[style*="#4B5563"],
[data-theme="dark"] .ico[style*="#2B579A"], [data-theme="dark"] .ico[style*="#412991"], [data-theme="dark"] .ico[style*="#2E428C"] { color: #e6e8ec !important; }
[data-theme="dark"] .ico[style*="#00C4CC"] { color: #2ED6DC !important; }
[data-theme="dark"] .ico[style*="#31A8FF"] { color: #4DB5FF !important; }
[data-theme="dark"] .ico[style*="#FF9A00"] { color: #FFA726 !important; }
[data-theme="dark"] .ico[style*="#9999FF"] { color: #A9A9FF !important; }
[data-theme="dark"] .ico[style*="#F06B66"], [data-theme="dark"] .ico[style*="#FF7A59"], [data-theme="dark"] .ico[style*="#FF6C2C"] { color: inherit; }
[data-theme="dark"] .icon-wrapper:has(.ico-png) { background: #eef0f3; border-color: transparent; }
.ico-ui { width: 1em; height: 1em; }

/* ---------- buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px 24px; margin: 10px 0 20px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--display-font); letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  min-height: 44px; padding: 14px 29px; border: 1px solid transparent; border-radius: 25px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn .ico, .btn .ico.ico-ui { width: 14px; height: 14px; flex: 0 0 14px; transition: transform .2s; }
.btn span { display: inline-block; line-height: 1; }
/* solid pill (default CTA) */
.btn-pill, .btn-solid { background: var(--btn-solid); color: #fff; border-color: var(--btn-solid); box-shadow: 0 2px 6px rgba(33,118,255,.25); }
.btn-pill:hover, .btn-solid:hover { background: var(--btn-solid-hover); border-color: var(--btn-solid-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(33,118,255,.32); }
.btn-pill:active, .btn-solid:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(33,118,255,.25); }
.btn-solid:hover .ico { transform: translateX(2px); }
/* about-page style: text + icon only, accent colour (matches the retired theme's render); underline on hover */
.btn-outline { background: transparent; color: var(--primary); border-radius: 0; padding-left: 8px; padding-right: 8px; }
.btn-outline::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.btn-outline:hover { color: var(--link-hover); }
.btn-outline:hover::after { transform: scaleX(1); }
.btn-outline:hover .ico { transform: translateY(-1px); }
/* ghost: white outline pill on dark bands */
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--band-light-2); padding: 35px 0 45px; text-align: center; margin-top: 55px; }
.cta-lead { margin-bottom: 14px; }
.cta-lead a { color: var(--ink); }
.cta-band .button-row { margin-bottom: 0; max-width: var(--narrow-width); margin-left: auto; margin-right: auto; }

/* ---------- home ---------- */
.home-hero {
  background: #050a16 url('/assets/img/light-background.jpg') center/cover no-repeat;
  position: relative; text-align: center; min-height: 600px; padding: 150px 0 60px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.home-hero .container { position: relative; }
.hero-kicker { font-family: var(--display-font); font-weight: 400; font-size: 22px; letter-spacing: 6px; color: #fff; margin: 0; line-height: 1.2; }
.hero-heading { font-size: 42px; line-height: 1.2; color: #1892da; margin: 0 0 90px; letter-spacing: 0; font-weight: 400; }
.hero-caption { font-family: var(--display-font); font-weight: 300; font-size: 24px; line-height: 1.6; letter-spacing: 3px; color: #e6e8ec; margin: 0 0 18px; }
.home-hero .button-row { max-width: 880px; margin: 0 auto; }
.band { position: relative; padding: 70px 0 90px; text-align: center; }
.band .button-row { max-width: 980px; margin-left: auto; margin-right: auto; }
.band h2 { color: #fff; margin-bottom: .5em; }
.band-dark-1 { background: var(--band-dark-1); }
.band-dark-2 { background: var(--band-dark-2); }
.band-light-1 { background: var(--band-light-1); }
.band-light-1 h2 { color: #1d2028; }
[data-theme="dark"] .band-light-1 h2 { color: var(--ink); }
.band-name { color: #fff; margin: 14px 0 0; font-size: 13px; }
.band-sub { color: var(--h4); font-size: 24px; margin: 6px 0 18px; }
.sep { width: 130px; height: 1px; margin: 0 auto 30px; }
.sep-light { background: #ffffff; }
.sep-mid { background: var(--sep-mid); }
.slant { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; pointer-events: none; }
.slant-left { background: linear-gradient(to right bottom, transparent 49.5%, var(--band-dark-2) 50%); }
.slant-right { background: linear-gradient(to left bottom, transparent 49.5%, var(--band-light-1) 50%); }
.form-wrap { max-width: 560px; margin: 0 auto; text-align: left; }

/* ---------- forms ---------- */
.form .field { margin-bottom: 20px; }
.form label, .form legend { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.form.placeholders .field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .req { color: #e7191c; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: 16px 16px; font: 16px/1.5 var(--body-font); color: var(--form-text);
  background: var(--form-bg); border: 1px solid var(--form-border); border-radius: 15px; outline: none; transition: border-color .2s;
}
.form ::placeholder { color: #9a9ca1; opacity: 1; }
.form input:focus, .form textarea:focus { border-color: var(--primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.form legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; background: var(--form-bg); border: 1px solid var(--form-border); border-radius: 15px; }
.choice { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-strong); }
.choice input { accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form .btn-solid { margin-top: 6px; }
.form-status { min-height: 1.5em; margin: 6px 0; font-size: 13px; }
.form-status.error { color: #d33; }
.form-status.success { color: #1d8a4a; }
.form-note { font-size: 12px; margin-top: 14px; }
.form.sent .field, .form.sent .btn-solid { display: none; }
altcha-widget { --altcha-color-base: var(--form-bg); --altcha-color-border: var(--form-border); --altcha-color-text: var(--form-text); --altcha-border-radius: 15px; --altcha-max-width: 100%; display: block; }
.page-form { padding: 10px 0 30px; }
.page-form h2, .page-form h3 { text-align: center; }

/* ---------- recommendations ---------- */
.page-recs { padding: 40px 30px; }
.rec { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; max-width: 900px; margin: 0 auto 50px; }
.rec-photo img, .rec-initials { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.rec-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-soft); font: 600 40px var(--display-font); }
.rec-name { font-size: 32px; margin: 0 0 4px; }
.rec-role { display: flex; align-items: center; gap: 10px; color: var(--text-strong); }
.rec-li { display: inline-flex; width: 28px; height: 28px; border-radius: 40px; background: #0077b5; color: #fff; align-items: center; justify-content: center; }
.rec-li .ico { width: 14px; height: 14px; }
.rec-li:hover { color: #fff; opacity: .85; }

/* ---------- portfolio ---------- */
.page-portfolio { padding: 40px 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-media { aspect-ratio: 16/10; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { font: 600 48px var(--display-font); color: var(--label); }
.card-body { padding: 18px 20px 22px; }
.card-title { font-size: 20px; line-height: 1.3; color: var(--ink); margin: 0 0 6px; }
.card-summary { margin: 0 0 10px; line-height: 1.6; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.tags.center { justify-content: center; }
.tags li { font: 500 11px/1 var(--nav-font); letter-spacing: 1px; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary); border-radius: 12px; padding: 5px 9px; }
.page-item { padding: 40px 30px; }
.item-cover { display: block; margin: 0 auto 30px; border-radius: 8px; }

/* ---------- blog ---------- */
.page-blog, .page-post { padding: 40px 30px; }
.post-summary { border-bottom: 1px solid var(--sep); padding: 0 0 22px; margin-bottom: 26px; }
.post-date { font: 500 12px/1 var(--nav-font); letter-spacing: 1px; text-transform: uppercase; color: var(--label); margin: 0 0 8px; }
.card-summary, .post-summary p { color: var(--text-strong); }
[data-theme="dark"] .card-summary, [data-theme="dark"] .post-summary p, [data-theme="dark"] .prose, [data-theme="dark"] .prose p { color: var(--text-strong); }
[data-theme="dark"] .form-note, [data-theme="dark"] .muted { color: var(--label); }
[data-theme="dark"] .rec-role { color: var(--text-strong); }
[data-theme="dark"] .cta-lead a { color: var(--ink); }
.post-title { font-size: 26px; line-height: 1.3; margin: 0 0 8px; letter-spacing: 0; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--link-hover); }
.page-post .prose { font-size: 15px; line-height: 1.8; color: var(--text-strong); }
.page-post .prose h2 { font-size: 28px; margin: 1.4em 0 .5em; }
.page-post .prose h3 { font-size: 22px; margin: 1.3em 0 .4em; }
.page-post .prose img { border-radius: 6px; }
.page-post .prose pre { background: var(--surface); padding: 14px 16px; border-radius: 6px; overflow: auto; font-size: 13px; }
.page-post .prose code { background: var(--surface); padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.page-post .prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--primary); color: var(--text); }

.page-privacy { padding: 30px 30px 50px; }
.page-404, .page-message { padding: 60px 30px 80px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); padding: 18px 10px 16px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 4%; max-width: none; }
.copyright { margin: 0; color: var(--copyright); font-size: 13px; }
.copyright a { color: var(--copyright); }
.copyright a:hover { color: var(--link); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: inline-flex; width: 36px; height: 36px; border-radius: 40px; background: #2176ff; color: #fff; align-items: center; justify-content: center; transition: transform .2s, background-color .2s; }
.social a:hover { background: var(--btn-solid-hover); color: #fff; transform: translateY(-2px); }
.social .ico { width: 15px; height: 15px; }
.rec-li { transition: transform .2s, opacity .2s; }
.rec-li:hover { transform: translateY(-1px); }
.tags li { transition: background-color .2s, color .2s; }
.card:hover .tags li { background: var(--primary); color: #fff; }
a.card:focus-visible { outline-offset: 0; }
/* consistent inner-page spacing */
.page-about, .page-form, .page-recs, .page-portfolio, .page-item, .page-blog, .page-post, .page-privacy, .page-404, .page-message { padding-top: 50px; padding-bottom: 20px; }
.page-404, .page-message { padding-top: 60px; padding-bottom: 40px; }
.cta-band { margin-top: 60px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .checklist-grid { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 40px; }
}
@media (max-width: 800px) {
  .container { padding: 0 20px; }
  .site-header { padding: 12px 14px 0; }
  .site-header.scrolled { padding-top: 8px; }
  .header-inner { min-height: 54px; padding: 0 6px 0 18px; background: rgba(16, 19, 27, .8); }
  .site-header.scrolled .header-inner { min-height: 54px; }
  .brand img, .site-header.scrolled .brand img { height: 14px; width: auto; }
  .hero-band { padding: 70px 0 50px; }
  .home-hero { min-height: 0; padding: 70px 0 60px; }
  .hero-heading { margin-bottom: 40px; }
  .hero-caption { font-size: 17px; letter-spacing: 2px; }
  .footer-inner { justify-content: center; }
  .nav-toggle { display: block; }
  /* floating menu card under the pill */
  .site-nav {
    position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); max-height: calc(100vh - 100px); overflow-y: auto;
    background: rgba(16, 19, 27, .94); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 8px;
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav li { display: block; }
  .site-nav a { display: flex; width: 100%; height: 48px; padding: 0 18px; border-radius: 14px; font-size: 14px; letter-spacing: .6px; justify-content: space-between; }
  .site-nav a::after { content: '›'; font-size: 20px; line-height: 1; color: rgba(255, 255, 255, .35); }
  .site-nav a.active::after { color: #7fd0ff; }
  .site-nav li.nav-theme { margin: 6px 0 0; padding: 10px 6px 4px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: space-between; }
  .nav-theme::before { content: 'Appearance'; font: 500 12px var(--nav-font); letter-spacing: .6px; color: rgba(255, 255, 255, .6); padding-left: 12px; }
  .theme-toggle { width: 44px; height: 44px; background: rgba(255, 255, 255, .06); }
  .theme-toggle:hover { transform: none; }
  .nav-open .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .hero-heading { font-size: 30px; }
  .hero-kicker { font-size: 16px; letter-spacing: 4px; }
  h1 { font-size: 40px; } h2 { font-size: 32px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .rec { grid-template-columns: 1fr; text-align: center; }
  .rec-role { justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .band { padding: 50px 0 70px; }
}
@media (max-width: 600px) {
  .button-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { justify-content: center; width: 100%; }
  .btn-outline { padding-top: 12px; padding-bottom: 12px; }
  .hero-band { padding: 100px 0 40px; }
  .hero-band .label { margin-bottom: 14px; }
  .home-hero { padding: 90px 0 50px; }
  .hero-heading { font-size: 26px; margin-bottom: 28px; }
  .hero-caption { font-size: 15px; line-height: 1.7; letter-spacing: 1.5px; }
  .hero-kicker { font-size: 15px; letter-spacing: 4px; }
  h2 { font-size: 28px; } .band-sub { font-size: 20px; }
  .intro-name { font-size: 28px; }
  .checklist { font-size: 15px; }
  .page-about, .page-form, .page-recs, .page-portfolio, .page-item, .page-blog, .page-post, .page-privacy { padding-top: 34px; }
  .cta-band { margin-top: 40px; padding: 28px 0 34px; }
  .cta-band .button-row { padding: 0 20px; }
  .site-footer { padding: 16px 10px; }
  .copyright { font-size: 12px; text-align: center; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .rec-name { font-size: 26px; }
  .post-title { font-size: 22px; }
}
@media (max-width: 360px) {
  .brand img, .site-header.scrolled .brand img { height: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn, a { transition: none; } }
