:root {
  color-scheme: light;
  --bg: #faf8f3;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: rgba(255, 255, 255, 1);
  --border: rgba(215, 203, 185, 0.4);
  --text: #2d2520;
  --muted: #6b6157;
  --accent: #2563eb;
  --accent-strong: #1e40af;
  --accent-secondary: #3d8b6e;
  --shadow: 0 8px 24px rgba(45, 37, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 2rem 1.5rem 0;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.8;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-nav a {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

.site-nav a.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
  flex: 1;
  padding-bottom: 2rem;
}

.intro-card,
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.intro-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy-block {
  min-width: 0;
}

.hero-image {
  margin: 0;
  width: min(320px, 100%);
  max-width: 320px;
  justify-self: end;
  margin-right: 1.5rem;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 720px) {
  .intro-grid {
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 2rem;
    align-items: center;
  }

  .hero-copy-block {
    max-width: 56rem;
  }

  .hero-image {
    justify-self: end;
    margin-right: 2rem;
  }
}

.intro-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  color: #faf8f3;
  border-color: transparent;
}

.link-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.75rem 0 0;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(215, 203, 185, 0.35);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(45, 37, 32, 0.06);
}

.card h3 {
  margin: 0 0 1rem;
}

.card p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.feature h2 {
  margin-top: 0;
}

.feature ul {
  margin: 0.75rem 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.feature li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.page-note {
  max-width: none;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 720px) {
  .page-note {
    white-space: nowrap;
  }
}

.site-footer {
  padding: 1.5rem 1.5rem 2.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-card,
  .feature {
    padding: 1.5rem;
  }

  .hero-image {
    width: min(170px, 54vw);
    margin: 0 0 0.25rem;
    justify-self: center;
    order: -1;
  }
}
