/* michaelaaroncody.com — 2026 redesign
   Night sky that moves, glass panels that float over it, glowing blue type. */
:root {
  color-scheme: dark;
  --bg: #03050c;
  --ink: #EEF3FF;
  --ink-soft: #C3D2F0;
  --muted: #8FA6CF;
  --blue: #2B7FFF;
  --blue-hi: #7FB6FF;
  --glass: rgba(12, 20, 42, 0.55);
  --glass-hi: rgba(20, 34, 70, 0.7);
  --line: rgba(120, 160, 255, 0.16);
  --line-hi: rgba(120, 170, 255, 0.45);
  --sans: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --page: 68rem;
  --measure: 44rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; color: var(--ink-soft);
  font: 400 1.125rem/1.72 var(--serif);
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(70, 90, 200, .20), transparent),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(120, 60, 180, .16), transparent);
  background-attachment: fixed;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

a { color: var(--blue-hi); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s, text-shadow .2s; }
a:hover { color: #fff; text-shadow: 0 0 10px rgba(127, 182, 255, .9), 0 0 24px rgba(43, 127, 255, .6); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(3, 5, 12, .62);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.bar { max-width: var(--page); margin: 0 auto; padding: .7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mark { font: 700 1.2rem/1 var(--sans); letter-spacing: -.02em; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.mark::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 22px var(--blue), 0 0 40px var(--blue); }
.mark:hover { text-shadow: none; color: #fff; }
nav { display: flex; gap: .2rem; flex-wrap: wrap; }
nav a { font: 500 .96rem/1 var(--sans); color: var(--muted); text-decoration: none; padding: .5rem .8rem; border-radius: 99px; }
nav a:hover { color: #fff; background: rgba(43, 127, 255, .14); text-shadow: none; }
nav a[aria-current] { color: #fff; background: rgba(43, 127, 255, .22); box-shadow: inset 0 0 0 1px var(--line-hi), 0 0 18px rgba(43, 127, 255, .3); }
nav a.ext::after { content: " ↗"; font-size: .8em; }

/* ---------- page ---------- */
main { max-width: var(--page); margin: 0 auto; padding: 4rem 1.5rem 5rem; }
main > p, main > ol, main > ul, .sub, .cite { max-width: var(--measure); }
h1, h2, h3 { font-family: var(--sans); color: #fff; letter-spacing: -.025em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; margin: 0 0 1rem; }
h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 3.5rem 0 .6rem; clear: both; }
h3 { font-weight: 650; font-size: 1.2rem; line-height: 1.3; margin: 0 0 .3rem; }
.sub { font: 500 1.2rem/1.5 var(--sans); color: var(--muted); margin: 0 0 2rem; }
.cite { font: 500 .95rem/1.5 var(--sans); color: var(--muted); margin: 0 0 .8rem; }
.cite em { font-style: normal; color: var(--ink-soft); }
p { margin: 0 0 1rem; }

/* shimmering headline, kept from the original */
h1 {
  background: linear-gradient(100deg, #fff 0%, #cfe6ff 35%, #2b7fff 50%, #cfe6ff 65%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite; filter: drop-shadow(0 0 18px rgba(43, 127, 255, .45));
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* glass panel */
.panel, .paper, .essay, blockquote, .contact, .review {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.paper:hover, .essay:hover, blockquote:hover, .review:hover {
  border-color: var(--line-hi); background: var(--glass-hi); transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(43, 127, 255, .14);
}

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: center; padding: 2.5rem 0 3.5rem; }
.hero-book img { display: block; width: 15rem; height: auto; border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 60px rgba(43, 127, 255, .4); animation: float 7s ease-in-out infinite; }
.hero-book:hover { text-shadow: none; }
.hero .sub { font-size: 1.35rem; color: var(--blue-hi); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.hero .sub { margin-bottom: 2rem; }
.btn {
  font: 600 1rem/1 var(--sans); text-decoration: none; padding: .9rem 1.4rem; border-radius: 99px;
  border: 1px solid var(--line-hi); color: #fff; background: rgba(43, 127, 255, .12);
}
.btn.primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 26px rgba(43, 127, 255, .55); }
.btn:hover { text-shadow: none; transform: translateY(-2px); box-shadow: 0 0 32px rgba(43, 127, 255, .7); color: #fff; }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.intro { max-width: var(--measure); font-size: 1.2rem; color: var(--ink); }
.intro p:first-child { font-size: 1.28rem; }

/* contact */
.contact { padding: 2rem; margin-top: 4rem; max-width: 44rem; }
.contact h2 { margin-top: 0; }
.contact form { display: grid; gap: .7rem; margin-top: 1.2rem; }
.contact label { font: 500 .92rem/1 var(--sans); color: var(--muted); margin-top: .3rem; }
.contact input, .contact textarea {
  width: 100%; padding: .8rem .9rem; font: 1rem/1.5 var(--serif); color: #fff;
  background: rgba(3, 6, 16, .7); border: 1px solid var(--line-hi); border-radius: 10px;
}
.contact input:focus, .contact textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 127, 255, .25); outline: none; }
.contact textarea { min-height: 9rem; resize: vertical; }
.contact button {
  justify-self: start; margin-top: .4rem; padding: .85rem 1.6rem; font: 600 1rem/1 var(--sans); color: #fff;
  background: var(--blue); border: 0; border-radius: 99px; cursor: pointer; box-shadow: 0 0 24px rgba(43, 127, 255, .5);
  transition: transform .2s, box-shadow .2s;
}
.contact button:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(43, 127, 255, .75); }
.hp { position: absolute; left: -9999px; }

/* ---------- papers ---------- */
.paper {
  display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: 2rem; align-items: start;
  padding: 1.8rem 2rem; margin: 1.25rem 0;
}
.paper h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.paper h2 a { color: #fff; text-decoration: none; }
.paper h2 a:hover { color: var(--blue-hi); }
.paper p { font-size: 1.05rem; }
.paper p:last-child { margin-bottom: 0; }
.paper img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(43, 127, 255, .2); transition: transform .4s; }
.paper:hover img { transform: rotate(-2deg) scale(1.03); }

/* ---------- essays ---------- */
.synd { border: 1px solid var(--line-hi); border-radius: 14px; padding: 1rem 1.2rem; color: var(--ink); background: rgba(43, 127, 255, .08); }
.esec { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-hi); margin-top: 3.5rem; display: flex; align-items: center; gap: 1rem; }
.esec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }
.essay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.essay { padding: 1.5rem 1.6rem; margin: 0; }
.essay h3 a { color: #fff; text-decoration: none; }
.essay h3 a:hover { color: var(--blue-hi); }
.essay p:last-child { margin-bottom: 0; font-size: 1rem; }

/* ---------- book ---------- */
.bookimg { float: right; width: 15rem; height: auto; margin: 0 0 1.5rem 2.5rem; border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(43, 127, 255, .35); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 1.2rem 0 2rem; }
blockquote { margin: 0; padding: 1.5rem 1.6rem; position: relative; }
blockquote::before { content: "\201C"; position: absolute; top: -.2rem; left: 1rem; font: 700 4rem/1 var(--sans); color: var(--blue); opacity: .45; }
blockquote p { margin: 0 0 .6rem; color: var(--ink); font-size: 1.05rem; }
.who { font: 500 .9rem/1.4 var(--sans); color: var(--muted); font-style: normal; margin: 0; }

/* ---------- reviews ---------- */
.review { padding: 1.8rem 2rem; margin: 1.25rem 0; }
.review h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.review p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: rgba(3, 5, 12, .6); backdrop-filter: blur(10px); }
.foot { max-width: var(--page); margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font: 600 1rem/1.4 var(--sans); }
footer a { color: #fff; text-decoration: none; text-shadow: 0 0 8px rgba(255, 255, 255, .45); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1rem; }
  .hero-book img { width: 10rem; margin: 0 auto; }
  main { padding: 2.5rem 1rem 4rem; }
  .bar { padding: .6rem 1rem; }
  nav a { padding: .45rem .6rem; font-size: .9rem; }
  .paper { grid-template-columns: minmax(0, 1fr) 6rem; gap: 1rem; padding: 1.3rem; }
  .essay-grid, .quotes { grid-template-columns: minmax(0, 1fr); }
  .bookimg { float: none; display: block; margin: 0 auto 2rem; width: 12rem; }
  .contact { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  h1, .bookimg, .hero-book img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
