:root {
  --bg: #f5eee5;
  --bg-strong: #efe3d2;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf3;
  --text: #2d241d;
  --muted: #64554a;
  --line: rgba(92, 70, 52, 0.14);
  --accent: #b34f2e;
  --accent-strong: #943c1f;
  --accent-soft: rgba(179, 79, 46, 0.12);
  --shadow: 0 18px 48px rgba(63, 42, 24, 0.12);
  --radius: 22px;
  --radius-sm: 16px;
  --max-width: 640px;
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-title: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #f8f1e9 0%, var(--bg) 48%, #eadccc 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

.bio-page {
  padding: 24px 16px 40px;
}

.bio-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.bio-header,
.highlight-card,
.link-group,
.bio-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.bio-header {
  padding: 28px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 246, 236, 0.82));
}

.brand-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(179, 79, 46, 0.16), rgba(99, 61, 34, 0.08)),
    var(--surface-strong);
  border: 1px solid rgba(179, 79, 46, 0.18);
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  overflow: hidden;
}

.brand-mark__logo,
.brand-mark__fallback {
  width: 100%;
  height: 100%;
}

.brand-mark__logo {
  display: block;
  object-fit: contain;
}

.brand-mark__fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.is-hidden {
  display: none !important;
}

.brand-kicker,
.section-kicker,
.highlight-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.bio-header h1,
.highlight-card h2,
.section-head h2 {
  margin: 0;
  font-family: var(--font-title);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.bio-header h1 {
  font-size: clamp(2.2rem, 7vw, 3.25rem);
}

.brand-subtitle {
  margin: 0.85rem auto 0;
  max-width: 28ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}

.highlight-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(179, 79, 46, 0.08), rgba(255, 250, 243, 0.96)),
    var(--surface-strong);
}

.highlight-card h2 {
  font-size: clamp(1.65rem, 5.2vw, 2.2rem);
}

.highlight-copy {
  margin: 0.85rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.58;
}

.link-group {
  padding: 22px 18px 18px;
  background: var(--surface);
}

.link-group--secondary {
  background: rgba(255, 249, 240, 0.7);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: 1.4rem;
}

.primary-links,
.secondary-links {
  display: grid;
  gap: 12px;
}

.button,
.secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:focus-visible,
.secondary-link:focus-visible {
  outline: 3px solid rgba(179, 79, 46, 0.32);
  outline-offset: 3px;
}

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

.button--featured {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff8f2;
  box-shadow: 0 14px 28px rgba(148, 60, 31, 0.2);
}

.button--primary {
  background: var(--surface-strong);
  border: 1px solid rgba(179, 79, 46, 0.18);
  color: var(--text);
}

.button--primary:hover {
  background: #fff;
  border-color: rgba(179, 79, 46, 0.32);
}

.secondary-link {
  justify-content: flex-start;
  min-height: 54px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.secondary-link::after {
  content: "↗";
  margin-left: auto;
  color: var(--accent-strong);
}

.bio-footer {
  padding: 16px 20px;
  background: rgba(255, 251, 246, 0.78);
  text-align: center;
}

.bio-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .bio-page {
    padding-inline: 12px;
    padding-top: 16px;
  }

  .bio-header,
  .highlight-card,
  .link-group {
    padding-inline: 18px;
  }

  .button,
  .secondary-link {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
