/* Base styles */

:root {
  --bg: #faf4ec;
  --bg-alt: #fffdf7;
  --border-subtle: #d9cbb8;
  --border-strong: #b8956f;
  --text-main: #2c1c18;
  --text-muted: #776459;
  --accent: #b3662a;
  --accent-soft: rgba(179, 102, 42, 0.12);
  --accent-strong: #7d3f15;
  --shadow-soft: 0 24px 60px rgba(54, 35, 26, 0.15);
  --radius-lg: 22px;
  --radius-sm: 999px;
  --serif: "Playfair Display", "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0;
}

/* Layout helpers */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 56px 0;
  background-color: var(--bg);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.7rem;
}

.section p {
  margin-top: 0;
}

/* Header & nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 203, 184, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
}

.brand-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.brand-subtitle {
  font-family: var(--serif);
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--accent-strong);
  border-color: var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.7);
}

/* Hero */

.hero {
  padding: 64px 0 50px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(247, 236, 221, 0.9));
  border-bottom: 1px solid rgba(217, 203, 184, 0.8);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.hero-tagline {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border-strong);
  padding-left: 12px;
}

.hero-meta strong {
  color: var(--text-main);
}

.hero-meta-prominent {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 16px;
}

.hero-meta-prominent strong {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-logo {
  position: absolute;
  top: 130px;
  right: 80px;
  opacity: 0.8;
}

.hero-logo img {
  width: 160px;
  max-width: 40vw;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.12));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-line {
  font-family: var(--serif);
  color: var(--text-main);
}

.brand-line-top {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.brand-line-small {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.brand-logo {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff7ef;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent-strong);
  border-color: rgba(179, 102, 42, 0.4);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill-muted {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.pill-link {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(179, 102, 42, 0.3);
  text-decoration: none;
}

.pill-link:hover {
  background-color: rgba(179, 102, 42, 0.15);
}

/* Lists */

.bullet-list {
  padding-left: 1.1rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.bullet-list li {
  margin-bottom: 0.25rem;
}

/* Two-column layout */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Timeline */

.timeline {
  margin-top: 20px;
  border-left: 2px solid rgba(185, 149, 111, 0.6);
  padding-left: 18px;
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
  padding-left: 6px;
}

.timeline-time {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(179, 102, 42, 0.2);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.card-grid-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 245, 0.9));
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(185, 149, 111, 0.4);
  box-shadow: 0 18px 35px rgba(60, 35, 24, 0.08);
  font-size: 0.95rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 45px rgba(60, 35, 24, 0.12);
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.card-name {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-name:hover {
  color: var(--accent-strong);
}

.card-photo {
  width: 120px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(185, 149, 111, 0.6);
  margin-bottom: 12px;
  box-shadow: 0 6px 12px rgba(60, 35, 24, 0.15);
}

.card-grid-panel .card-photo {
  width: 100px;
  height: 100px;
}

.card-affiliation {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.87rem;
}

/* Materials grid */

.materials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 28px;
}

.materials-column h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.resource-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.95rem;
}

.resource-list li:last-child {
  border-bottom: none;
}

/* Utility */

.small-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mt-lg {
  margin-top: 22px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #f6ede0;
  padding: 18px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

/* Timing grid */

.timing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.timing-item {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(185, 149, 111, 0.5);
  background-color: rgba(255, 255, 255, 0.93);
  font-size: 0.92rem;
}

.timing-item strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--serif);
}

/* Primer list */

.primer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.primer-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(185, 149, 111, 0.4);
  background-color: rgba(255, 255, 255, 0.9);
}

.primer-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.primer-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .card-grid-panel {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.65rem;
  }

  .hero-logo {
    position: static;
    align-self: flex-end;
  }
}
