/* andrewcmiller.org
   Modeled on the original Squarespace design. Free stand-ins for its fonts:
   Oswald (same as original), Jost (for futura-pt / europa), Figtree (for proxima-nova). */
@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #FAFAFA;
  --text: #6E6E6E;        /* original: rgba(82,82,82,.8) on #fafafa */
  --heading: #525252;
  --nav: #7A7A7A;
  --nav-active: #707070;
  --faint: #A9A7A7;       /* original tagline: rgba(94,90,90,.5) */
  --black: #000;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --geo: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --col: 766px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 18px; line-height: 1.8; letter-spacing: .01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #525252; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------------- Cover (home) ---------------- */
.cover {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: #fff; padding: 3rem 1.25rem;
  background-color: #1d1f24;
  background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("img/cover-photo.jpg");
  background-size: cover; background-position: 62% center;
  position: relative;
}
.cover-kicker {
  position: absolute; top: 2.2rem; left: 0; right: 0;
  font-family: var(--geo); font-weight: 500; font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
  margin: 0; padding-inline: 1rem;
}
.cover-kicker a { text-decoration: none; }
.cover h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.2vw, 55px);
  letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .4rem;
}
.cover .tagline {
  font-family: var(--geo); font-weight: 600; font-size: clamp(17px, 1.9vw, 22px); letter-spacing: .04em;
  margin: 0 0 2.4rem;
}
.cover nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2rem; }
.cover nav a {
  font-family: var(--geo); font-weight: 700; font-size: clamp(17px, 1.9vw, 22px); letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.cover nav a:hover { border-bottom-color: #fff; }

/* ---------------- Header (inner pages) ---------------- */
.site-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 2.2rem 3.1rem 1.6rem; gap: 1rem;
}
.site-head nav { display: flex; gap: 1.6rem; }
.site-head nav.right { justify-content: flex-end; }
.site-head nav a {
  font-family: var(--body); font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(0,0,0,.6); text-decoration: none; line-height: 1;
}
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--black); }
.brand { text-align: center; text-decoration: none; }
.brand .name {
  display: block; font-family: var(--display); font-size: 25px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--black); line-height: 1;
}
.brand .inst {
  display: block; margin-top: .55rem; font-family: var(--geo); font-weight: 600; font-size: 14px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--faint); line-height: 1;
}

/* ---------------- Content ---------------- */
main.page { width: min(var(--col), 100% - 2.5rem); margin: 0 auto; padding: 2.2rem 0 3rem; }
.banner { margin: 0 0 3.2rem; }
.banner figcaption { display: none; }
h2 {
  font-family: var(--geo); font-weight: 600; font-size: 25px; letter-spacing: -.01em;
  color: var(--heading); margin: 0 0 1.2rem; line-height: 1.2;
}
h3 {
  font-family: var(--geo); font-weight: 700; font-size: 14px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(82,82,82,.8); margin: 2rem 0 .6rem; line-height: 2;
}
p { margin: 0 0 1.1rem; }
.credit { font-style: italic; margin-top: 2.5rem; font-size: 15px; }

/* Section labels get a hairline so long lists read as groups */
.cites h3 { margin: 3rem 0 .4rem; padding-bottom: .5rem; border-bottom: 1px solid #E4E4E4; }
.cites h2 + h3 { margin-top: 1.2rem; }

/* Publication entries */
.pub { padding: 1.05rem 0; border-bottom: 1px solid #EDEDED; }
.pub:last-of-type { border-bottom: 0; }
.pub p { margin: 0; }
.cite { padding-left: 1.6em; text-indent: -1.6em; line-height: 1.7; }
.cite strong { color: var(--heading); font-weight: 600; }
.cite a { color: var(--heading); text-decoration: underline; text-decoration-color: #CDCDCD; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .15s; }
.cite a:hover, .cite a:focus-visible { text-decoration-color: currentColor; }
.pub .pub-related, .pub .pub-award, .pub details.abs { margin-left: 1.6em; }
.book .pub-award, .book details.abs { margin-left: 0; }
.book .cite { padding-left: 0; text-indent: 0; }
.pub-title { color: var(--heading); font-weight: 500; line-height: 1.5; }
.pub-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.pub-title a:hover, .pub-title a:focus-visible { background-size: 100% 1px; }
.pub-meta { font-size: 16px; line-height: 1.6; margin-top: .2rem !important; }
.pub-award { font-size: 16px; margin-top: .5rem !important; color: var(--heading); }
.pub-award::before { content: "★ "; color: #B08D3C; }
.pub-related { font-size: 15px; margin-top: .35rem !important; }
.pub-related a { color: var(--heading); }

/* Expandable abstract */
details.abs { margin-top: .45rem; }
details.abs summary {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; list-style: none;
  font-family: var(--geo); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #8A8A8A; user-select: none;
}
details.abs summary::-webkit-details-marker { display: none; }
details.abs summary::after { content: "+"; font-size: 15px; letter-spacing: 0; line-height: 1; transition: transform .2s; }
details.abs[open] summary::after { transform: rotate(45deg); }
details.abs summary:hover { color: var(--heading); }
details.abs p {
  margin: .7rem 0 .3rem; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid #DADADA;
  font-size: 16px; line-height: 1.75; color: #6A6A6A;
}

/* Book entry: cover beside the citation */
.book { display: grid; grid-template-columns: 132px 1fr; gap: 1.6rem; align-items: start; }
.book .thumb img { box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 8px 20px -8px rgba(0,0,0,.35); }
.book .pub-title { font-size: 19px; }

/* CV download */
.cv-link {
  display: inline-block; margin-top: 1rem; padding: .7rem 1.3rem; border: 1px solid #525252;
  font-family: var(--geo); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: #525252; text-decoration: none;
}
.cv-link:hover { background: #525252; color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.contact p { margin: 0; }
.contact .email { margin-top: 1.1rem; }

/* ---------------- Footer ---------------- */
.site-foot { text-align: center; padding: 2.5rem 1rem 4rem; }
.site-foot a {
  font-family: var(--geo); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(112,112,112,.6); text-decoration: none; margin: 0 .35rem;
}
.site-foot a:hover { color: #525252; }


/* Jump links at the top of Research */
.jump {
  display: flex; flex-wrap: wrap; gap: .35rem 0; margin: -.2rem 0 1.6rem;
  font-family: var(--geo); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.jump a { color: #8A8A8A; text-decoration: none; padding: .2rem 0; }
.jump a:hover, .jump a:focus-visible { color: var(--heading); }
.jump a + a::before { content: "·"; color: #C4C4C4; padding: 0 .7rem; }
.cites h3 { scroll-margin-top: 1.5rem; }

/* Profile links */
.profiles-h { margin-top: 2.2rem; }
.profiles { list-style: none; margin: 0; padding: 0; }
.profiles li { margin: 0; }
.profiles a { color: var(--heading); text-decoration-color: #CDCDCD; text-underline-offset: .22em; }
.profiles a:hover { text-decoration-color: currentColor; }
.foot-profiles { margin-top: .9rem; }
.foot-profiles a { font-size: 11px; color: rgba(112,112,112,.5); }

/* ---------------- Mobile ---------------- */
@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "left right"; padding: 1.6rem 1.25rem .8rem; row-gap: 1.1rem; column-gap: 1.2rem; }
  .brand { grid-area: brand; }
  .site-head nav.left { grid-area: left; justify-content: flex-end; }
  .site-head nav.right { grid-area: right; justify-content: flex-start; }
  .site-head nav { gap: 1.2rem; }
  .site-head nav a { font-size: 14px; }
  .brand .name { font-size: 22px; }
  .brand .inst { font-size: 12px; }
  .book { grid-template-columns: 92px 1fr; gap: 1.1rem; }
  .cover-kicker { font-size: 15px; top: 1.5rem; }
  body { font-size: 17px; }
  .jump { font-size: 12px; letter-spacing: .1em; }
  .jump { gap: .3rem 1.1rem; }
  .jump a + a::before { content: none; }
}
