/* micahhallmd.com — clean & modern. Bright, spacious, bold type, one blue accent. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --ink: #0d1117;
  --ink-2: #3d4451;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2448e0;
  --accent-ink: #ffffff;
  --accent-soft: #eaefff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(13,17,23,.04), 0 8px 24px rgba(13,17,23,.06);
  --shadow-hover: 0 2px 4px rgba(13,17,23,.06), 0 16px 40px rgba(13,17,23,.10);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-soft: #12151c; --ink: #f3f4f6; --ink-2: #c4c8d0; --muted: #8b93a1;
    --line: #232834; --accent: #6b8cff; --accent-ink: #0b0d12; --accent-soft: #1a2240; --card: #12151c;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 12px 32px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-soft: #12151c; --ink: #f3f4f6; --ink-2: #c4c8d0; --muted: #8b93a1;
  --line: #232834; --accent: #6b8cff; --accent-ink: #0b0d12; --accent-soft: #1a2240; --card: #12151c;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav .mark { font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav .mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav ul a { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav ul a:hover { background: var(--bg-soft); color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav ul a.cta { background: var(--ink); color: var(--bg); margin-left: 8px; }
.nav ul a.cta:hover { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 12px 14px; font-size: 17px; }
  .nav ul a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Layout ---------- */
main { min-height: 70vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.page-head { padding: 72px 0 8px; }
.page-title { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.lede { color: var(--muted); font-size: 19px; max-width: 620px; margin: 18px 0 0; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.u { background: linear-gradient(var(--accent), var(--accent)) 0 92% / 100% .14em no-repeat; padding-bottom: .04em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero p.sub { font-size: 20px; color: var(--ink-2); max-width: 540px; margin: 26px 0 0; }
.hero .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .portrait {
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, var(--accent-soft), var(--bg-soft));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero .portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero .portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }
.hero .portrait .ph b { display: block; font-size: 72px; font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.roles li, .chips li { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .portrait { max-width: 420px; }
}

/* ---------- Quote ---------- */
.quote { max-width: 820px; }
.quote blockquote { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--font); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link { font-weight: 600; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .thumb { aspect-ratio: 16 / 9; display: block; position: relative; text-decoration: none; background: var(--bg-soft) center/cover no-repeat; border: 0; width: 100%; padding: 0; }
.card .thumb.play { cursor: pointer; }
.card .thumb.play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 54% 50%/26px no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s;
}
.card .thumb.play:hover::after { transform: scale(1.08); }
.card .thumb.icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--bg-soft)); color: var(--accent); font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.card .thumb.soon { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, var(--bg) 14px 28px); color: var(--muted); font-size: 14px; font-weight: 600; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card p { margin: 8px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; font-size: 14px; }
.card audio { width: 100%; margin: 0 0 16px; }
.card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
a.card { text-decoration: none; color: inherit; }
.card .num { font-size: 14px; font-weight: 700; color: var(--accent); }

/* Portfolio filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters button { font: 500 14px var(--font); background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.about .portrait { aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(145deg, var(--accent-soft), var(--bg-soft)) center/cover; border: 1px solid var(--line); position: sticky; top: 100px; overflow: hidden; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .text p { font-size: 18px; color: var(--ink-2); margin: 0 0 20px; }
.about .text p.hi { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.about .sign { font-weight: 700; margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } .about .portrait { position: static; max-width: 380px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; margin-top: 48px; align-items: start; }
.contact .info p { color: var(--ink-2); font-size: 18px; margin: 0 0 20px; }
.contact .email { font-size: 20px; font-weight: 700; color: var(--accent); text-decoration: none; word-break: break-all; }
.contact .email:hover { text-decoration: underline; }
.contact .services { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact .services li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.contact .services li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
form { display: grid; gap: 18px; }
label { font-size: 14px; font-weight: 600; display: grid; gap: 8px; color: var(--ink); }
input, select, textarea {
  font: 16px var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 160px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-size: 15px; font-weight: 500; min-height: 1.4em; }
.status.ok { color: #15803d; }
.status.err { color: #dc2626; }
@media (prefers-color-scheme: dark) { .status.ok { color: #4ade80; } .status.err { color: #f87171; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } .form-card { padding: 22px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--bg); }
.cta-band p { margin: 10px 0 0; opacity: .7; }
.cta-band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .mark { font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
