/* =========================================================
   AERS @ University of Idaho — department site
   Warm academic palette: paper white · charcoal ink · Vandal gold
   No external dependencies; system font stacks only.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --paper-2: #f3efe6;
  --ink: #221d16;
  --ink-2: #57503f;
  --ink-3: #8c8372;
  --gold: #f1b300;
  --gold-deep: #c28f0a;
  --gold-soft: #f7d679;
  --line: #e5dfd2;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(34, 29, 22, 0.05), 0 12px 32px -16px rgba(34, 29, 22, 0.18);
  --radius: 14px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Nova", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.01em; }

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: #221d16;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -6px rgba(193, 143, 10, 0.7);
}
.brand-text { line-height: 1.15; }
.brand-text .top {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
}
.brand-text .sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 13px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #241f17 0%, #2d2719 72%, #37301d 100%);
  color: #f6f1e4;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 92px 24px 258px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.nw { white-space: nowrap; }
@media (max-width: 560px) {
  .h1-br { display: none; }
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lede {
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.65;
  color: #d9d2bf;
  margin: 0 0 30px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold), #ffce3d);
  color: #241f10;
  box-shadow: 0 10px 26px -10px rgba(241, 179, 0, 0.65);
}
.btn.ghost {
  color: #f6f1e4;
  border: 1px solid rgba(246, 241, 228, 0.35);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Palouse organic scene (homepage hero) */
.palouse-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  display: block;
  width: 100%;
  height: 240px;
}
.palouse-accents,
.palouse-wheat {
  position: absolute;
  bottom: -1px;
  z-index: 1;
  height: 240px;
  width: auto;
  pointer-events: none;
}
.palouse-accents { right: 3%; }
.palouse-wheat { left: 2.5%; }
@media (max-width: 600px) {
  .palouse-hills,
  .palouse-accents,
  .palouse-wheat {
    height: 170px;
  }
  .palouse-accents { right: -56px; }
  .palouse-wheat { left: 2%; }
}

/* Art-Deco scene system.
   Each page header = a stretchable under-layer (rules, furrows, scallop edge)
   + a centered fixed-aspect motif layer, so geometry never distorts. */
.deco-field,
.deco-band-under {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  display: block;
  width: 100%;
}
.deco-field { height: 300px; }
.deco-band-under { height: 140px; }
.deco-sun,
.deco-band-motif {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  z-index: 1;
  width: auto;
  pointer-events: none;
}
.deco-sun { height: 300px; }
.deco-band-motif { height: 140px; }
/* Tall sub-page header carrying the full sunburst-field scene (graduate) */
.ph-tall .deco-field,
.ph-tall .deco-sun { height: 220px; }
.ph-tall .wrap { padding-bottom: 236px !important; }
@media (max-width: 600px) {
  .deco-field, .deco-sun { height: 205px; }
  .deco-band-under, .deco-band-motif { height: 118px; }
  .ph-tall .deco-field, .ph-tall .deco-sun { height: 150px; }
  .ph-tall .wrap { padding-bottom: 166px !important; }
}

/* ---------- stat band ---------- */

.stats {
  background: var(--paper);
  margin-top: -2px;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 34px 24px 10px;
}
.stat {
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 16px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
}
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------- sections ---------- */

.section { padding: 64px 0 20px; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
}
.section-head p { color: var(--ink-2); margin: 0; }

/* program cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard .tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: #fdf4d7;
  border-radius: 6px;
  padding: 4px 8px;
}
.pcard h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.25; }
.pcard p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* research tiles */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rcard {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.rcard .dot {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fdf0c8, var(--gold-soft));
  display: grid;
  place-items: center;
  color: #8a6508;
}
.rcard .dot svg { width: 23px; height: 23px; display: block; }
.rcard h3 { margin: 0 0 4px; font-size: 17px; }
.rcard p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- people page ---------- */

.page-head {
  background: linear-gradient(180deg, #241f17, #302a1a);
  color: #f6f1e4;
  position: relative;
  overflow: hidden;
}
.page-head .wrap { position: relative; z-index: 2; padding: 56px 24px 158px; }
.page-head h1 { margin: 10px 0 8px; font-size: clamp(30px, 4.5vw, 46px); }
.page-head p { color: #d9d2bf; max-width: 60ch; margin: 0; }
.page-head .hills { height: 70px; opacity: 0.9; }

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 6px;
}
.search {
  flex: 1 1 300px;
  max-width: 420px;
  position: relative;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(241, 179, 0, 0.18);
}
.search::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 19px;
  color: var(--ink-3);
}
.count { font-size: 13.5px; color: var(--ink-3); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 3px rgba(34, 29, 22, 0.05), 0 22px 44px -18px rgba(34, 29, 22, 0.28);
}
.pphoto {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2719, #4a3f23);
  border-bottom: 3px solid var(--gold);
}
.pphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transition: transform 0.28s ease;
}
.person:hover .pphoto img { transform: scale(1.045); }
.pmono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.pbody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.person h3 { margin: 0; font-size: 16.5px; line-height: 1.22; }
.person .title {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.meta a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.person-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.mini-btn {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.mini-btn.cv {
  background: linear-gradient(135deg, var(--gold), #ffce3d);
  color: #241f10;
}
.mini-btn.cv:hover { box-shadow: 0 8px 18px -8px rgba(193, 143, 10, 0.8); }
.mini-btn.site {
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.mini-btn.site:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.subhead {
  margin: 44px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.subhead h2 { margin: 0; font-size: 24px; }
.subhead span { font-size: 13px; color: var(--ink-3); }

.assistant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.assistant {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}

.empty-note {
  margin: 30px 0;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- graduate page: apply steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffce3d);
  color: #241f10;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 16.5px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.steps a { color: var(--gold-deep); font-weight: 600; }

/* ---------- FAQ accordion ---------- */

.faq-group { margin-top: 26px; }
.faq-group-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-deep);
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-weight: 650;
  font-size: 15px;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.18s ease;
}
.faq-item[open] summary { color: var(--gold-deep); }
.faq-item[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-a {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 75ch;
}
.faq-a a { color: var(--gold-deep); font-weight: 600; }

/* ---------- CTA box ---------- */

.cta-box {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #241f17, #3a311c);
  color: #f6f1e4;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.cta-box h3 { margin: 0 0 6px; font-size: 19px; }
.cta-box p { margin: 0; font-size: 14px; color: #d9d2bf; line-height: 1.6; }
.cta-box a { color: var(--gold-soft); }
.cta-box .btn { flex: none; }
.cta-box .btn.gold { color: #241f10; }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 72px;
  background: #241f17;
  color: #cfc8b4;
}
.site-footer .wrap {
  padding: 44px 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  color: #f6f1e4;
  font-size: 16px;
}
.site-footer p, .site-footer li { font-size: 13.5px; line-height: 1.7; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footnote {
  border-top: 1px solid rgba(246, 241, 228, 0.12);
}
.footnote .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
  font-size: 12px;
  color: #9a917c;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .people-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero .wrap { padding: 64px 24px 190px; }
  .page-head .wrap { padding: 44px 24px 134px; }
}
