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

:root {
  --navy:       #1B2B4B;
  --navy-mid:   #2D4270;
  --bg:         #F4EFE6;
  --surface:    #FBF8F3;
  --text:       #1C1814;
  --muted:      #8B7D6B;
  --subtle:     #B5A898;
  --border:     #DDD5C5;
  --link:       #1B2B4B;
  --link-hover: #2D4270;
}

/* ── Base ────────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ──────────────────────────────────────── */

.navbar {
  background: var(--navy);
  border-bottom: none;
  box-shadow: none;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 15px;
  color: #F4EFE6;
  letter-spacing: 0.01em;
}

.navbar-title:hover {
  color: #ffffff;
}

.menu-text {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(244, 239, 230, 0.7);
  letter-spacing: 0.02em;
}

.nav-link:hover .menu-text {
  color: #F4EFE6;
}

.nav-link.active .menu-text {
  color: #F4EFE6;
  font-weight: 500;
}

/* ── Layout ──────────────────────────────────────── */

main.content {
  max-width: 760px;
  padding-top: 3rem;
}

/* ── Headings ────────────────────────────────────── */

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 0.6rem;
}

h1.title {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
  padding-top: 1.5rem;
}

h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
}

/* ── Body text ───────────────────────────────────── */

p, li {
  color: var(--text);
  line-height: 1.8;
}

li { margin-bottom: 0.3rem; }

strong { font-weight: 600; }

a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Utilities ───────────────────────────────────── */

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  display: block;
  margin-bottom: 1.5rem;
}

.quarto-title-meta { display: none; }

blockquote {
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1rem;
  padding: 0 1.25rem;
}

/* ── Table (Teaching) ────────────────────────────── */

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  text-align: left;
}

td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
}

tr:last-child td { border-bottom: none; }

/* ── Art gallery ─────────────────────────────────── */

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.art-item {
  display: flex;
  flex-direction: column;
}

.art-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  filter: brightness(0.96) saturate(0.95);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.art-item img:hover {
  filter: brightness(1.01) saturate(1.05);
  transform: translateY(-2px);
}

.art-item p {
  margin: 0.6rem 0 0;
  line-height: 1.45;
}

.art-item strong {
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  color: var(--text);
}

.art-caption {
  color: var(--muted);
  font-size: 0.8rem;
}

.art-note {
  color: var(--subtle);
  font-size: 0.83rem;
  font-style: italic;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  main.content { padding-top: 2rem; }
  h1 { font-size: 2rem; }
  h1.title { font-size: 1.7rem; }

  .art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .art-item img { height: 160px; }
}

@media (max-width: 480px) {
  .art-grid { grid-template-columns: 1fr; }
}
