@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap');

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

:root {
  /* ── KKU Brand Colors ── */
  --navy: #1a5e38;         /* KKU primary green */
  --navy-mid: #236b43;     /* KKU hover green */
  --gold: #c49a28;         /* KKU gold accent */
  --gold-light: #e8c96a;   /* light gold */
  --cream: #f5f9f6;        /* green-tinted cream */
  --text: #1a1a1a;
  --muted: #4d6657;        /* green-tinted muted */
  --border: rgba(26,94,56,0.14);
  --accent-bg: #eaf3ed;    /* light green background */
}

body {
  background: var(--cream);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

.site {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 2px solid var(--navy);
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }
.nav-links a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.page-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.gold-rule {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 0;
}

/* ── FOOTER ── */
footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

footer p { font-size: 0.75rem; color: var(--muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--navy); }

/* ── UTILITIES ── */
.btn-primary {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--navy-mid); }

.btn-secondary {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--accent-bg); }

@media (max-width: 620px) {
  nav { padding: 1rem; flex-wrap: wrap; gap: 1rem; }
  .nav-links { gap: 1rem; }
  .page-header { padding: 2rem 1rem 1.5rem; }
}

/* ── KKU AFFILIATION STRIP ── */
.kku-strip {
  background: var(--navy);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kku-strip-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.kku-strip-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

.kku-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

/* =========================================================
   MOBILE RESPONSIVE FIX
========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe,
svg {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 768px) {

  /* University strip */
  .kku-strip {
    padding: 0.65rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.6rem;
    text-align: center;
    line-height: 1.4;
  }

  .kku-strip-text,
  .kku-strip-name {
    font-size: 0.65rem;
  }

  /* Navigation */
  nav {
    padding: 0.8rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links {
    width: max-content;
    min-width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    display: block;
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }

  .hero-left {
    min-width: 0;
  }

  .hero-name {
    font-size: 2.2rem;
    overflow-wrap: anywhere;
  }

  .hero-bio {
    max-width: none;
    font-size: 0.92rem;
  }

  .hero-photo {
    align-items: center;
    text-align: center;
  }

  .photo-frame {
    width: 150px;
    height: 180px;
  }

  .affil {
    text-align: center;
  }

  .hero-tags {
    gap: 0.4rem;
  }

  .hero-social {
    flex-wrap: wrap;
  }

  .hero-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.7rem;
  }

  .hero-links a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Main sections */
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 1.25rem;
  }

  .section:nth-child(odd) {
    border-right: none;
  }

  /* News */
  .news-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .news-date {
    min-width: 0;
  }

  /* Teaching rows */
  .course-row {
    align-items: flex-start;
    gap: 1rem;
  }

  .course-term {
    flex-shrink: 0;
    text-align: right;
  }

  /* Calendar */
  .calendar-section {
    padding: 2rem 1.25rem;
  }

  .calendar-header {
    display: block;
  }

  .calendar-open-link {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .calendar-embed-wrapper iframe {
    height: 420px;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .site {
    width: 100%;
  }

  .kku-dot {
    display: none;
  }

  .kku-strip-text,
  .kku-strip-name {
    width: 100%;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-eyebrow {
    font-size: 0.63rem;
    line-height: 1.5;
  }

  .hero-name {
    font-size: 1.85rem;
  }

  .hero-bio {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .tag {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .hero-social-label {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .section,
  .calendar-section {
    padding: 1.7rem 1rem;
  }

  .section-label {
    font-size: 0.62rem;
  }

  .course-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .course-term {
    text-align: left;
  }

  .calendar-embed-wrapper iframe {
    height: 360px;
  }
}