/* ============================================
   Kevin T. Morris — Academic Website
   Aesthetic: Editorial / Refined
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --color-text: #2d2d2d;
  --color-heading: #1a1a2e;
  --color-accent: #7a5c1e;
  --color-accent-light: #c9a84c;
  --color-bg: #fafaf8;
  --color-bg-alt: #f0eeea;
  --color-border: #d4d0c8;
  --color-muted: #6b6b6b;
  --color-link: #4a4a6a;
  --color-link-hover: #7a5c1e;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --max-width: 900px;
  --max-width-wide: 1080px;
}

/* ---- Reset & Base ---- */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-link-hover);
}

/* ---- Layout ---- */

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

.container--wide {
  max-width: var(--max-width-wide);
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: var(--max-width-wide);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:hover {
  color: var(--color-accent);
}

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

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

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-heading);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero / Home ---- */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.hero-content h1 {
  margin-bottom: 0.25rem;
}

.hero-title-line {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-links .separator {
  color: var(--color-border);
  user-select: none;
}

/* ---- Highlights (Home) ---- */

.highlights {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--color-border);
}

.highlights h2 {
  margin-bottom: 1.5rem;
}

.highlight-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.highlight-item:last-child {
  border-bottom: none;
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.highlight-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Book Section (Home) ---- */

.book-callout {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.book-callout-inner {
  background: var(--color-bg-alt);
  padding: 2.5rem;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  align-items: start;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--color-heading);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.book-cover-placeholder span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #c9c3b8;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

.book-callout h3 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.book-callout .book-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.book-callout p {
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .page-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 600px;
}

/* ---- Research Page ---- */

.research-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.research-section:last-of-type {
  border-bottom: none;
}

.research-section h2 {
  margin-bottom: 0.5rem;
}

.research-section .section-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.pub-item {
  padding: 0.85rem 0;
  border-top: 1px solid #e8e5df;
}

.pub-item:first-of-type {
  border-top: none;
}

.pub-citation {
  font-size: 0.92rem;
  line-height: 1.6;
}

.pub-citation .pub-title {
  font-weight: 600;
}

.pub-citation .pub-venue {
  font-style: italic;
}

.pub-citation .pub-links {
  margin-left: 0.25rem;
}

.pub-citation .pub-links a {
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 0.15rem;
}

.pub-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

.pub-type-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(122, 92, 30, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ---- Books Page ---- */

.book-page-section {
  padding: 3rem 0;
}

.book-feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-feature .book-cover-placeholder {
  width: 200px;
}

.book-feature h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.book-feature .book-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.book-feature .book-pub-info {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.book-feature .book-description {
  font-size: 1rem;
  line-height: 1.75;
}

.book-feature .book-links {
  margin-top: 1.25rem;
}

.book-feature .book-links a {
  font-weight: 500;
}

/* ---- Impact Page ---- */

.impact-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.impact-section:last-of-type {
  border-bottom: none;
}

.impact-item {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.impact-item + .impact-item {
  border-top: 1px solid #e8e5df;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}

.media-item {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.media-item .outlet {
  font-weight: 600;
  color: var(--color-text);
}

/* ---- CV Page ---- */

.cv-section {
  padding: 3rem 0;
  text-align: center;
}

.cv-section p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-heading);
  color: var(--color-heading);
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--color-heading);
  color: var(--color-bg);
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-heading);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-photo {
    width: 260px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-links {
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  .highlight-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .book-callout-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .book-cover-placeholder {
    width: 120px;
    margin: 0 auto;
  }

  .book-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-feature .book-cover-placeholder {
    width: 150px;
    margin: 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.75rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}
