/* =========================================================
   Kurt Christensen website refresh
   Lighter faculty-profile design
   ========================================================= */

:root {
  --blue: #244f7f;
  --blue-dark: #18395f;
  --blue-soft: #eef5fb;
  --gold: #b58b1b;
  --gold-soft: #f8f1dd;
  --text: #263645;
  --muted: #5f6f7e;
  --line: #d8e2ec;
  --panel: #ffffff;
  --background: #f8fafc;
  --shadow: 0 10px 28px rgba(22, 48, 82, 0.08);
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure { margin-top: 0; }
button, input, textarea, select { font: inherit; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--blue);
  font-weight: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
a:hover { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 5px; }

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 2.25rem;
  align-items: start;
}

.profile-photo {
  width: 200px;
  justify-self: end;
  align-self: start;
  margin-top: .15rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(22, 48, 82, 0.12);
  grid-column: 2;
}

.hero-text { grid-column: 1; grid-row: 1; }
.hero-text::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 3px;
  margin: 1rem 0 0;
  background: var(--gold);
  border-radius: 999px;
}


h1 {
  margin: 0 0 .85rem;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.appointment {
  margin: 0 0 .08rem;
  color: var(--blue);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-style: italic;
  font-weight: 400;
}
.appointment + .appointment { margin-top: .08rem; }
.institution { margin-top: .08rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .12rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.09em;
  text-underline-offset: .22em;
  border: 0;
}
.button:hover { color: var(--gold); transform: none; background: transparent; }
.button.secondary { color: var(--blue); }
.button.secondary:hover { color: var(--gold); background: transparent; }


/* Compact interior headers reuse the homepage alignment and spacing */
.hero-compact {
  grid-template-columns: minmax(0, 1fr);
  padding: 1.75rem 1.5rem 1.45rem;
}
.hero-compact .hero-text {
  grid-column: 1;
  grid-row: 1;
}
.hero-compact .interior-title {
  margin: .45rem 0 0;
  color: var(--blue);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-style: italic;
  font-weight: 400;
}


/* Interior page headers: use the same centered framework as the homepage */
.interior-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 1.55rem;
  text-align: center;
}
.interior-hero h1 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}
.interior-title {
  margin: .45rem 0 0;
  color: var(--blue);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-style: italic;
  font-weight: 400;
}
.breadcrumb {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .9rem;
}
.breadcrumb a {
  color: var(--blue);
  font-weight: inherit;
  font-weight: 700;
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.interior-hero::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 3px;
  margin: .95rem auto 0;
  background: var(--gold);
  border-radius: 999px;
}

.main-nav {
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.main-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: .55rem .65rem;
  border-bottom: 3px solid transparent;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.content-panel + .content-panel { margin-top: 1rem; }

h2, h3 {
  color: var(--blue-dark);
  line-height: 1.25;
}
h2 {
  margin: 0 0 .75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
}
h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.03rem; color: var(--text); }

.grid { display: grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.card p { color: var(--muted); }
.card a { font-weight: 750; }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.news-list li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-date {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.news-list p { color: var(--muted); }

.link-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.link-cards a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: .9rem 1rem;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.link-cards a:hover { background: var(--blue-soft); color: var(--gold); transform: translateY(-1px); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .25rem 0 0; list-style: none; }
.tags li { padding: .32rem .68rem; border: 1px solid var(--line); border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: .92rem; }

.project-list { display: grid; gap: 1rem; }
.project {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.project:first-child { border-top: 0; padding-top: 0; }
.project-years { color: var(--gold); font-weight: 800; }
.project-title { color: var(--blue-dark); font-weight: 800; margin-bottom: .25rem; }
.project-meta { color: var(--muted); margin-bottom: .4rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.68;
  color: var(--text);
}
.contact-list li { font: inherit; color: inherit; }
.contact-list strong { color: var(--blue-dark); font-weight: 700; }
.contact-list a {
  font: inherit !important;
  color: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}


.photo-grid { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin: 1rem 0 1.5rem; }
.photo-grid img, .scrapbook-image {
  max-height: 245px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(22, 48, 82, 0.10);
}
.float-right { float: right; max-width: 210px; margin: 0 0 1rem 1rem; }

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .25rem; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.1rem; }
  .profile-photo { grid-column: 1; grid-row: 2; justify-self: center; width: 175px; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-text::after { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .grid.three, .grid.two, .link-cards { grid-template-columns: 1fr; }
  .project, .news-list li { grid-template-columns: 1fr; gap: .2rem; }
  .float-right { float: none; display: block; margin: 1rem 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero, .page { padding-left: 1rem; padding-right: 1rem; }
  .main-nav ul { padding-left: 1rem; padding-right: 1rem; }
  .main-nav a { padding: .5rem .55rem; }
  .button { width: 100%; }
}


/* Publication/article pages */
.publication-page .content-panel {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.notice-box {
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
}
.notice-box strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--blue-dark);
}
.publication-list {
  margin-top: 1.25rem;
}
.pub-year {
  margin: 1.6rem 0 .55rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}
.pub-year:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.publication-item {
  padding: .75rem 0;
  border-top: 1px solid rgba(216, 226, 236, .75);
}
.publication-item:first-of-type {
  border-top: 0;
}
.publication-item p {
  margin: 0;
}
.author-self,
.styleAuthor {
  color: var(--blue-dark);
  font-weight: 700;
}
.publication-item a {
  font-weight: 600;
}

.pub-section-heading {
  margin: 2rem 0 1rem;
  color: var(--blue-dark);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.pub-section-heading + .pub-year {
  margin-top: .75rem;
}

/* Presentation pages */
.presentation-title {
  color: var(--blue-dark);
  font-weight: 700;
}
.presentation-detail {
  color: var(--muted);
}
.presentation-list .pub-section-heading {
  margin-top: 2.3rem;
}
.presentation-list .pub-section-heading:first-child {
  margin-top: 0;
}


/* Homepage current-program links */
.program-list {
  display: grid;
  gap: .85rem;
}
.program-card {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: .75rem 1rem;
  align-items: baseline;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}
.program-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}
.program-name {
  color: var(--blue-dark);
  font-weight: 700;
}
.program-focus {
  color: var(--text);
}

/* Presentation page spacing */
.presentation-section + .presentation-section {
  margin-top: 2.25rem;
}
.presentation-year {
  margin: 1.3rem 0 .55rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.presentation-entry {
  padding: .7rem 0 .9rem;
  border-bottom: 1px solid var(--line);
}
.presentation-entry p {
  margin: 0;
  line-height: 1.65;
}
.presentation-entry em {
  color: var(--blue-dark);
}
@media (max-width: 720px) {
  .program-card {
    grid-template-columns: 1fr;
  }
}


/* Final homepage news and presentation refinements */
.news-list a { font-weight: 600; }
.presentation-list { margin-top: 1.25rem; }
.presentation-entry { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.presentation-entry:first-child { border-top: 1px solid var(--line); }
.presentation-entry-year { color: var(--blue-dark); font-weight: 700; }


/* Enhanced footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.55;
}
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--blue-dark); font-weight: 600; }
.footer-inner a { color: inherit; font: inherit; text-decoration: none; }
.footer-inner a:hover { color: var(--blue-dark); text-decoration: underline; }

/* Searchable publications */
.publication-search {
  margin: 1.4rem 0 1.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-soft);
}
.publication-search label {
  display: block;
  margin-bottom: .45rem;
  color: var(--blue-dark);
  font-weight: 600;
}
.publication-search input {
  width: 100%;
  max-width: 42rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  background: #fff;
}
.publication-search input:focus {
  outline: 3px solid rgba(196, 160, 82, .25);
  border-color: var(--gold);
}
.publication-search p {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: .75rem; }
}


/* Homepage news prominence */
.news-list li {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.news-list li:first-child {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.news-list li:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
