/* Jordan Lab. One stylesheet, one typeface, no scripts. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --ink: #15171a;
  --ink-2: #5c636b;
  --rule: #e3e5e8;
  --accent: #782f40; /* FSU garnet */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --label: 12rem;   /* width of the section-name column */
  --measure: 39rem; /* width of the text column */
  --pad: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --ink: #eceef0;
    --ink-2: #9ba2aa;
    --rule: #2a2e33;
    --accent: #ceb888; /* FSU gold */
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
sup { font-size: 0.7em; line-height: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.wrap { max-width: 66rem; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -4rem; z-index: 20;
  padding: 0.5rem 0.75rem; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-head__in {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-block: 1rem;
}
.brand { font-weight: 600; letter-spacing: -0.012em; text-decoration: none; }
.brand:hover { color: inherit; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; font-size: 0.9375rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* ---------- Intro ---------- */

.intro { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 7rem); }
.intro__where { font-size: 0.9375rem; color: var(--ink-2); }
.intro h1 {
  margin-top: 1.1rem;
  max-width: 21ch;
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.intro__lede {
  margin-top: 1.75rem;
  max-width: 39rem;
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Sections: name on the left, text on the right ---------- */

.section {
  display: grid;
  grid-template-columns: var(--label) minmax(0, var(--measure));
  column-gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.section > h2 {
  position: sticky; top: 5rem; align-self: start;
  font-size: 1.0625rem; line-height: 1.65; letter-spacing: -0.012em;
}
.section__body > * + * { margin-top: 1.1rem; }
.section__body > h3 { margin-top: 2.75rem; }
.section__body h3 { font-size: 1.0625rem; letter-spacing: -0.012em; }
.more { margin-top: 1.5rem; }

/* ---------- Research questions ---------- */

.questions { counter-reset: q; border-top: 1px solid var(--rule); }
.questions > li {
  counter-increment: q;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.questions > li::before {
  content: counter(q);
  grid-column: 1; grid-row: 1;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.questions > li > * { grid-column: 2; }
.questions h4 { font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.012em; }
.questions p { margin-top: 0.55rem; }

/* A list that ends a section leaves the closing rule to the next section. */
.questions > li:last-child,
.section__body > .spec:last-child > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Label and value rows ---------- */

.spec { border-top: 1px solid var(--rule); }
.spec > div {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}
.spec dt { color: var(--ink-2); }
.section__body > .spec:first-child { border-top: 0; }
.section__body > .spec:first-child > div:first-child { padding-top: 0; }

/* ---------- People: everyone in the same format ---------- */

.people > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.people > li:first-child { padding-top: 0; }
.people > li:last-child { border-bottom: 0; padding-bottom: 0; }
.people__name { font-weight: 600; letter-spacing: -0.012em; }
.people__role { color: var(--ink-2); }
.people__work { grid-column: 1 / -1; margin-top: 0.3rem; }

/* ---------- Publications ---------- */

.pubs > li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr);
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.pubs > li:first-child { padding-top: 0; }
.pubs__year { color: var(--ink-2); line-height: 1.45; font-variant-numeric: tabular-nums; }
.pubs__title { font-weight: 500; line-height: 1.45; }
.pubs__title a { text-decoration-color: transparent; }
.pubs__title a:hover { text-decoration-color: currentColor; }
.pubs__meta { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.pubs__meta b { font-weight: 500; color: var(--ink); }

/* ---------- Footer ---------- */

.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem;
  padding-block: 1.75rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem; color: var(--ink-2);
}

/* ---------- Not found ---------- */

.lost { padding-block: clamp(4rem, 14vw, 9rem); }
.lost h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); letter-spacing: -0.022em; line-height: 1.15; }
.lost p { margin-top: 1rem; max-width: 34rem; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .site-head { position: static; }
  .site-nav { gap: 0.25rem 1.1rem; font-size: 0.875rem; }
  .section { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .section > h2 { position: static; }
  .spec > div { grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
  .spec dt { font-size: 0.9375rem; }
}
@media (max-width: 460px) {
  .people > li { grid-template-columns: minmax(0, 1fr); }
  .people__role { font-size: 0.9375rem; }
}

/* ---------- Print ---------- */

@media print {
  :root { --bg: #fff; --ink: #000; --ink-2: #444; --rule: #ccc; --accent: #000; }
  .site-head, .skip { display: none; }
  .section > h2 { position: static; }
  .pubs > li, .questions > li, .spec > div { break-inside: avoid; }
}
