:root {
  --paper: #f4efe6;
  --paper-strong: #fbf8f2;
  --ink: #162129;
  --muted: #4f5d66;
  --line: rgba(22, 33, 41, 0.12);
  --teal: #1f6d6e;
  --teal-deep: #12484d;
  --rust: #b65b2a;
  --shadow: 0 24px 64px rgba(22, 33, 41, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 109, 110, 0.12), transparent 28%),
    radial-gradient(circle at right 20%, rgba(182, 91, 42, 0.1), transparent 22%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 54%, #efe7dc 100%);
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 236, 0.88);
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 109, 110, 0.25);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(22, 33, 41, 0.08);
  color: var(--teal-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.wordmark-copy {
  display: flex;
  flex-direction: column;
}

.wordmark-title,
.hero h1,
.feature-card h2,
.profile-card h2,
.panel-label {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.wordmark-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.wordmark-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover,
.card-links a:hover,
.hero a:hover {
  color: var(--teal-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 5rem 0 2.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-card,
.profile-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 33, 41, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.4rem;
}

.eyebrow,
.card-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rust);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.lead a {
  color: var(--teal-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #f9f6ef;
}

.button-secondary {
  border: 1px solid rgba(22, 33, 41, 0.14);
  background: rgba(255, 255, 255, 0.84);
}

.hero-panel {
  padding: 2rem 1.7rem;
  align-self: start;
}

.panel-label {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.focus-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

.focus-list strong {
  color: var(--ink);
}

.focus-list-tight {
  margin: 0 0 1.2rem;
}

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

.feature-card,
.profile-card {
  padding: 1.8rem;
}

.feature-card-wide {
  min-height: 100%;
}

.feature-card h2,
.profile-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
}

.feature-card p,
.profile-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.card-links-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.card-links a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.profiles-section {
  padding-bottom: 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-title {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer-note {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

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

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

@media (max-width: 860px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .grid-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.2rem, 1100px);
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .profile-card {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .profile-card {
    padding: 1.4rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
}
