/* michaelaaroncody.com — 2026 redesign
   Night sky that moves, glass panels that float over it, glowing blue type. */
:root {
  color-scheme: dark;
  --bg: #03050c;
  --ink: #FFFFFF;
  --ink-soft: #FFFFFF;
  --muted: #E1E9FF;
  --blue: #2B7FFF;
  --blue-hi: #7FB6FF;
  --glass: transparent;
  --glass-hi: transparent;
  --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;
  --su: linear-gradient(90deg, #442794 0%, #2d40be 16%, #1c8198 32%, #2b8a2e 48%, #90942f 62%, #c86e08 76%, #e0600e 88%, #dc3218 100%);
  --page: 68rem;
  --measure: 46rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; color: var(--ink-soft);
  font: 500 1.32rem/1.75 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: relative; z-index: 10; background: transparent; border-bottom: 1px solid var(--line); }
.bar { padding: 1rem 0; display: grid; grid-template-columns: minmax(max-content, calc(50% - 32.5rem)) auto auto 1fr; align-items: center; }
.mark { justify-self: end; padding: 0 1.6rem 0 1.5rem; white-space: nowrap; font: 700 1.45rem/1 var(--sans); letter-spacing: -.02em; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .65rem; }
.mark::before { content: ""; flex-shrink: 0; width: .8rem; height: .8rem; 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 { grid-column: 2; display: flex; gap: .15rem; margin-left: -.9rem; }
nav a { font: 500 1.22rem/1 var(--sans); color: #E2EAFF; text-decoration: none; padding: .65rem .9rem; border-radius: 99px; white-space: nowrap; }
nav a:hover { color: #fff; background: rgba(43, 127, 255, .16); text-shadow: none; }
nav a[aria-current] { color: #fff; background: rgba(43, 127, 255, .24); box-shadow: inset 0 0 0 1px var(--line-hi), 0 0 18px rgba(43, 127, 255, .3); }

/* link to StaticUniverse.org, dressed in that site's own colors */
.ext { grid-column: 3; justify-self: start; margin-left: 1.1rem; display: inline-block; padding: .55rem .2rem; text-decoration: none; white-space: nowrap; transition: transform .2s; }
.ext span {
  font: 800 1.65rem/1 var(--sans); color: #6f8cff;
  background: linear-gradient(90deg, #7a5cff, #4f6bff, #2fb0c8, #3fbf55, #c2c43a, #f0901a, #ff6a2a, #ff4630, #7a5cff);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 140, 90, .35));
  animation: redshift 6s linear infinite;
}
@keyframes redshift { from { background-position: 200% 0; } to { background-position: 0% 0; } }
.ext:hover { text-shadow: none; transform: translateY(-2px); }
.ext:hover span { filter: drop-shadow(0 0 12px rgba(255, 140, 90, .6)); }

/* ---------- page ---------- */
main { max-width: var(--page); margin: 0 auto; padding: 2.5rem 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.5rem; line-height: 1.25; margin: 0 0 .35rem; }
.sub { font: 500 1.2rem/1.5 var(--sans); color: var(--muted); margin: 0 0 2rem; }
.cite { font: 500 1.03rem/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; }
main p, main li, blockquote p { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 1px rgba(255, 255, 255, .75), 0 0 10px rgba(255, 255, 255, .38); }

/* 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: 0; border-radius: 18px;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.paper:hover, .essay:hover, blockquote:hover, .review:hover {
  background: var(--glass-hi); transform: translateY(-3px);
}

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; row-gap: 2.2rem; align-items: start; padding: 0 0 1.5rem; }
.hero-text { grid-column: 1; grid-row: 1; padding-top: 1.5rem; }
.hero-book { grid-column: 2; grid-row: 1 / span 2; padding-top: 1rem; }
.hero .intro { grid-column: 1; grid-row: 2; }
.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.4rem; color: var(--ink); }
.intro p:first-child { font-size: 1.48rem; }

/* 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 .45rem; font-size: 1.62rem; }
.paper h2 a { color: #fff; text-decoration: none; }
.paper h2 a:hover { color: var(--blue-hi); }
.paper p { font-size: 1.26rem; }
.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 { color: var(--ink); }
.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:not(.cite):not(.more) { font-size: 1.2rem; }

/* ---------- 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.26rem; }
.who { font: 500 .98rem/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.62rem; }
.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; }

/* open layout: hover tint extends past the text so it lines up with headings */
.paper, .review { margin-left: -2rem; margin-right: -2rem; }
.essay-grid { margin-left: -1.6rem; margin-right: -1.6rem; }

/* ---------- small screens ---------- */
@media (max-width: 1260px) {
  .bar { grid-template-columns: 1fr auto; max-width: var(--page); margin: 0 auto; padding: 1rem 1.5rem .5rem; row-gap: .4rem; }
  .mark { justify-self: start; padding: 0; }
  .ext { grid-column: 2; grid-row: 1; justify-self: end; }
  nav { grid-column: 1 / -1; grid-row: 2; margin-left: -.9rem; }
}
@media (max-width: 1150px) and (min-width: 761px) {
  .paper, .review { margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .essay-grid { margin-left: -1.5rem; margin-right: -1.5rem; }
  .essay { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1rem; }
  .hero-text, .hero-book, .hero .intro { grid-column: 1; grid-row: auto; }
  .hero-text { padding-top: 0; }
  .hero-book img { width: 10rem; margin: 0 auto; }
  main { padding: 2.5rem 1rem 4rem; }
  .bar { grid-template-columns: 1fr auto; padding: .8rem 1rem .5rem; row-gap: .5rem; }
  .mark { font-size: 1.1rem; white-space: nowrap; gap: .5rem; }
  .ext span { font-size: .85rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; margin-left: -.75rem; }
  .ext { margin-left: 0; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: .5rem .8rem; font-size: 1rem; }
  .paper { grid-template-columns: minmax(0, 1fr) 6rem; gap: 1rem; }
  .essay-grid, .quotes { grid-template-columns: minmax(0, 1fr); }
  .paper, .review { margin-left: -1rem; margin-right: -1rem; padding: 1.3rem 1rem; }
  .essay-grid { margin-left: -1rem; margin-right: -1rem; }
  .essay { padding: 1.2rem 1rem; }
  .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, .ext span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media (max-width: 430px) {
  .bar { column-gap: .5rem; }
  .mark { font-size: .98rem; gap: .45rem; }
  .mark::before { width: .6rem; height: .6rem; }
  .ext span { font-size: .78rem; }
}
@media (max-width: 380px) {
  .bar { padding-left: .75rem; padding-right: .75rem; }
  .mark { font-size: .9rem; }
  .ext span { font-size: .72rem; }
}

/* titles: on hover a light sweep runs across the title and it picks up a blue glow */
.paper h2 a, .essay h3 a, .review h2 {
  background-image: linear-gradient(100deg, #fff 0%, #fff 38%, #8fc2ff 47%, #2b7fff 50%, #8fc2ff 53%, #fff 62%, #fff 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: filter .35s;
}
.paper:hover h2 a, .essay:hover h3 a, .review:hover h2 {
  animation: title-sweep 1.1s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(127, 182, 255, .75)) drop-shadow(0 0 22px rgba(43, 127, 255, .45));
  text-shadow: none;
}
@keyframes title-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .paper:hover h2 a, .essay:hover h3 a, .review:hover h2 { animation: none; }
}

/* Static cosmology program titles carry the StaticUniverse.org redshift colors */
.paper.su h2 a, .essay.su h3 a {
  background-image: linear-gradient(90deg, #7a5cff, #4f6bff, #2fb0c8, #3fbf55, #c2c43a, #f0901a, #ff6a2a, #ff4630, #7a5cff);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 140, 90, .3));
  animation: redshift 6s linear infinite;
}
.paper.su:hover h2 a, .essay.su:hover h3 a {
  animation: redshift 2.5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 150, 100, .6)) drop-shadow(0 0 22px rgba(122, 92, 255, .4));
}
@media (prefers-reduced-motion: reduce) { .paper.su h2 a, .essay.su h3 a { animation: none; } }

.orcid { color: #39ff14; text-decoration-color: rgba(57, 255, 20, .6); text-shadow: 0 0 6px rgba(57, 255, 20, .7), 0 0 16px rgba(57, 255, 20, .4); }
.orcid:hover { color: #b6ff9e; text-shadow: 0 0 8px rgba(57, 255, 20, .9), 0 0 22px rgba(57, 255, 20, .6); }
@media (max-width: 340px) { .mark { font-size: .8rem; } .ext span { font-size: .66rem; } }

/* FLSC link in body text: same flowing redshift colors as StaticUniverse.org */
.su-link {
  font-weight: 700; color: #ff8a3d; text-decoration-color: rgba(255, 138, 61, .55);
  background: linear-gradient(90deg, #7a5cff, #4f6bff, #2fb0c8, #3fbf55, #c2c43a, #f0901a, #ff6a2a, #ff4630, #7a5cff);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 140, 90, .35));
  animation: redshift 6s linear infinite;
}
.su-link:hover { text-shadow: none; filter: drop-shadow(0 0 10px rgba(255, 150, 100, .65)); }
@media (prefers-reduced-motion: reduce) { .su-link { animation: none; } }

/* paper and essay titles: pale starlight gold */
.paper h2 a, .essay h3 a {
  background-image: linear-gradient(100deg, #ffe3a6 0%, #ffe3a6 38%, #fff4d6 47%, #ffffff 50%, #fff4d6 53%, #ffe3a6 62%, #ffe3a6 100%);
  filter: drop-shadow(0 0 6px rgba(255, 210, 120, .25));
}
.paper:hover h2 a, .essay:hover h3 a {
  filter: drop-shadow(0 0 10px rgba(255, 215, 130, .7)) drop-shadow(0 0 22px rgba(255, 180, 70, .4));
}
.paper.su h2 a, .essay.su h3 a {
  background-image: linear-gradient(90deg, #7a5cff, #4f6bff, #2fb0c8, #3fbf55, #c2c43a, #f0901a, #ff6a2a, #ff4630, #7a5cff);
  filter: drop-shadow(0 0 8px rgba(255, 140, 90, .3));
}
.paper.su:hover h2 a, .essay.su:hover h3 a {
  filter: drop-shadow(0 0 10px rgba(255, 150, 100, .6)) drop-shadow(0 0 22px rgba(122, 92, 255, .4));
}

/* everything in a paper or essay block leads to the piece */
.clickable { cursor: pointer; }
.cover { display: block; }
.cover:hover { text-shadow: none; }
p.more { margin: .9rem 0 0; }
.more a {
  font: 600 1.05rem/1.4 var(--sans); color: #ffe3a6; text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 210, 120, .35); border-bottom: 1px solid rgba(255, 227, 166, .45); padding-bottom: 1px;
  transition: color .2s, text-shadow .2s, border-color .2s;
}
.paper:hover .more a, .essay:hover .more a, .more a:hover {
  color: #fff4d6; border-color: #ffe3a6; text-shadow: 0 0 10px rgba(255, 215, 130, .8), 0 0 22px rgba(255, 180, 70, .45);
}

/* favorite quote on the homepage */
.favquote { margin: 1rem 0 0; max-width: 46rem; }
.favquote blockquote { padding: 1.8rem 2rem 1.4rem 3.2rem; }
.favquote blockquote > p:first-child { font: italic 500 1.55rem/1.45 var(--serif, "Literata", Georgia, serif); }
.favquote .cite { margin: .4rem 0 0; font-size: .98rem; }
@media (max-width: 640px) { .favquote blockquote { padding: 1.4rem 1.2rem 1.2rem 2.6rem; } .favquote blockquote > p:first-child { font-size: 1.3rem; } }

/* red commas between journal names in the intro */
.intro .sep { color: #ff4a36; font-weight: 800; text-shadow: 0 0 8px rgba(255, 74, 54, .55); padding-right: .08em; }

/* favorite quote: starlight text, gold quote marks that twinkle */
.favquote blockquote::before {
  color: #ffd27a; opacity: 1; font-size: 4.6rem; top: -.4rem; left: .6rem;
  text-shadow: 0 0 10px rgba(255, 205, 110, .85), 0 0 26px rgba(255, 170, 60, .5);
  animation: twinkle 4s ease-in-out infinite;
}
.favquote .qtext {
  background-image: linear-gradient(100deg, #fff8e6 0%, #ffe3a6 30%, #ffffff 45%, #fff4d6 50%, #ffffff 55%, #ffe3a6 70%, #fff8e6 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 6px rgba(255, 225, 160, .55)) drop-shadow(0 0 18px rgba(255, 190, 90, .25));
  animation: starlight 7s ease-in-out infinite;
}
.favquote .qclose {
  position: absolute; right: -.6rem; top: -.3rem;
  font: 700 4.6rem/1 var(--sans); -webkit-text-fill-color: #ffd27a; color: #ffd27a;
  text-shadow: 0 0 10px rgba(255, 205, 110, .85), 0 0 26px rgba(255, 170, 60, .5);
  animation: twinkle 4s ease-in-out 2s infinite;
}
@keyframes starlight { 0% { background-position: 100% 0; } 50% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: brightness(1); } 50% { opacity: .75; filter: brightness(1.35); } }
.favquote .nowrap { white-space: nowrap; position: relative; padding-right: 3.1rem; }
@media (prefers-reduced-motion: reduce) { .favquote .qtext, .favquote .qclose, .favquote blockquote::before { animation: none; } }
@media (max-width: 640px) { .favquote blockquote::before, .favquote .qclose { font-size: 3.6rem; } .favquote .nowrap { padding-right: 2.5rem; } .favquote .qclose { top: -.2rem; right: -.4rem; } }
