:root {
  --bg: #f5f2ec;
  --surface: #fffdf9;
  --surface-2: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e4ddd3;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d9f0ed;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .75rem 1rem;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  #background: rgba(245, 242, 236, 0.82);
  background: black;
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  #color: var(--text);
  color: white;
  font-weight: 800;
}

.main-nav {
  display: flex;
  #flex-wrap: wrap;
  flex-wrap: nowrap;
  gap: .75rem;
}

.main-nav a {
  text-decoration: none;
  #color: var(--text);
  color: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem .9rem;
  #background: rgba(255,255,255,.65);
  background: #3465a4;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  #background: var(--accent-soft);
  background: #ffb66c;
  #background: var(--accent);
  border-color: #b8d9d4;
}

.hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, #fdfbf7 0%, #f5f2ec 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow,
.section-label {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  padding-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-primary:hover { background: var(--accent-dark); color: #fff; }

.button-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.hero-card,
.card,
.contact-card-BACKULP {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
}

.contact-card {
  width: 100%;
  max-width: 300px;
  justify-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
}

.hero-card ul,
.card ul {
  margin: .75rem 0 0;
  padding-left: 1.2rem;
}

.main-content {
  padding: 2rem 0 5rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.intro-section,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

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

.article-list {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.article-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .95rem 1.1rem;
}

.article-item:last-child {
  border-bottom: 0;
}

.article-text {
  min-width: 0;
}

.sep {
  white-space: nowrap;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
}


.contact-layout-BACKUP {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-section .contact-card {
  justify-self: start;
}

.contact-photo-wrap {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  justify-self: start;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-details {
  min-width: 0;
  display: grid;
  gap: .75rem;
  align-content: center;
}

.contact-details p {
  margin: 0;
}

.contact-details a {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .contact-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-photo-wrap {
    width: 160px;
    min-width: 160px;
    justify-self: center;
  }

  .contact-details {
    justify-items: center;
  }
}


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

@media (max-width: 860px) {
  .hero-grid,
  .intro-section,
  .contact-section,
  .cards,
  .article-item {
    grid-template-columns: 1fr;
  }

  .article-item {
    gap: .35rem;
  }
}

@media (max-width: 700px) {
  .nav-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .main-nav,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a,
  .button {
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3rem 0;
  }
}
