:root {
  color-scheme: light;
  --ink: #302033;
  --ink-soft: #69556c;
  --paper: #fff7ee;
  --paper-warm: #f8ead7;
  --paper-bright: #ffffff;
  --mist: #edfff5;
  --teal: #4fb5a5;
  --teal-dark: #287d72;
  --coral: #f16f8f;
  --gold: #e6b54c;
  --blue: #80b9ef;
  --peony: #c84679;
  --lilac: #a77bd8;
  --leaf: #78a85a;
  --tape: rgba(255, 230, 151, 0.72);
  --line: rgba(117, 83, 91, 0.18);
  --shadow: 0 24px 70px rgba(97, 62, 70, 0.15);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(248, 176, 198, 0.34), transparent 32%),
    linear-gradient(225deg, rgba(167, 215, 182, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 238, 0.98), rgba(255, 240, 248, 0.94)),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(199, 130, 96, 0.18) 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(161, 113, 87, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(161, 113, 87, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 48%, rgba(230, 181, 76, 0.15) 48%, rgba(230, 181, 76, 0.15) 52%, transparent 52%);
  background-position:
    0 0,
    0 0,
    0 0,
    10px 10px;
  background-size:
    18px 18px,
    68px 68px,
    68px 68px,
    74px 74px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.72), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  right: max(18px, 5vw);
  bottom: 28px;
  z-index: -1;
  width: 160px;
  height: 220px;
  opacity: 0.32;
  background:
    linear-gradient(100deg, transparent 48%, rgba(40, 125, 114, 0.48) 49%, rgba(40, 125, 114, 0.48) 51%, transparent 52%),
    linear-gradient(35deg, transparent 45%, rgba(120, 168, 90, 0.5) 46%, rgba(120, 168, 90, 0.5) 49%, transparent 50%),
    linear-gradient(150deg, transparent 45%, rgba(200, 70, 121, 0.42) 46%, rgba(200, 70, 121, 0.42) 49%, transparent 50%);
  transform: rotate(-8deg);
  pointer-events: none;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 221, 0.86)),
    var(--paper-bright);
  box-shadow: 0 10px 26px rgba(116, 55, 108, 0.1);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--peony), var(--lilac), var(--teal));
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 238, 0.9)),
    var(--paper-bright);
  box-shadow: 0 10px 30px rgba(116, 55, 108, 0.12);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--peony);
  color: #fff;
  outline: 0;
}

.section-band {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 86px 0;
  scroll-margin-top: 96px;
}

.section-band.light,
.split-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - var(--max-width)) / 2));
}

.section-band.light {
  background:
    linear-gradient(135deg, rgba(248, 176, 198, 0.34), transparent 38%),
    linear-gradient(225deg, rgba(173, 223, 193, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(237, 255, 245, 0.9));
  border-block: 1px solid var(--line);
}

.split-band {
  background:
    linear-gradient(90deg, rgba(200, 70, 121, 0.2), transparent 34%),
    linear-gradient(270deg, rgba(167, 123, 216, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(230, 181, 76, 0.22), transparent 58%),
    #fff;
  border-block: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 46px;
  width: min(240px, 28vw);
  height: 92px;
  z-index: -1;
  border: 1px solid rgba(230, 181, 76, 0.28);
  background:
    repeating-linear-gradient(
      -6deg,
      rgba(255, 255, 255, 0.38) 0 10px,
      rgba(230, 181, 76, 0.12) 10px 18px
    );
  transform: rotate(-2deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--peony);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  position: relative;
  display: inline-block;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 7.6rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

h1::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: 0.1em;
  z-index: -1;
  height: 0.22em;
  background: linear-gradient(90deg, rgba(230, 181, 76, 0.5), rgba(241, 111, 143, 0.34));
  transform: rotate(-1deg);
}

h2 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.hero-intro {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.button.primary {
  background: linear-gradient(135deg, var(--peony), var(--lilac));
  color: #fff;
  box-shadow:
    0 16px 38px rgba(200, 70, 121, 0.26),
    inset 0 -3px 0 rgba(48, 32, 51, 0.12);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(135deg, #c02074, #7443de);
}

.button.secondary {
  border-color: rgba(24, 169, 153, 0.34);
  background:
    linear-gradient(90deg, rgba(237, 255, 245, 0.9), rgba(255, 247, 238, 0.9)),
    var(--mist);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(214, 51, 132, 0.38);
  box-shadow: 0 12px 28px rgba(116, 55, 108, 0.14);
}

.profile-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 390px;
  padding: 34px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at 18% 20%, rgba(230, 181, 76, 0.15) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(237, 255, 245, 0.86)),
    linear-gradient(45deg, rgba(248, 176, 198, 0.18), rgba(230, 181, 76, 0.14)),
    var(--paper-bright);
  background-size:
    18px 18px,
    auto,
    auto;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: -15px auto auto 50%;
  width: 112px;
  height: 34px;
  border: 1px solid rgba(202, 157, 63, 0.28);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 236, 171, 0.84) 0 8px,
      rgba(255, 220, 128, 0.7) 8px 14px
    );
  box-shadow: 0 8px 20px rgba(97, 62, 70, 0.08);
  transform: translateX(-50%) rotate(-3deg);
}

.profile-panel::after {
  content: "";
  position: absolute;
  inset: 14px auto auto 14px;
  width: 76px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--peony), var(--lilac), var(--blue), var(--leaf), var(--gold));
}

.profile-photo {
  position: relative;
  width: min(236px, 70vw);
  aspect-ratio: 1;
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(117, 83, 91, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 238, 0.94)),
    #fff;
  box-shadow: 0 18px 42px rgba(116, 55, 108, 0.2);
  transform: rotate(-2.2deg);
}

.profile-photo::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 4;
  width: 96px;
  height: 28px;
  border: 1px solid rgba(200, 70, 121, 0.18);
  background: linear-gradient(90deg, rgba(255, 224, 235, 0.8), rgba(255, 244, 196, 0.74));
  transform: translateX(-50%) rotate(4deg);
}

.profile-photo img {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.profile-photo img[src=""],
.profile-photo img:not([src]) {
  display: none;
}

.profile-photo img.failed {
  display: none;
}

.photo-fallback {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: clamp(3.5rem, 9vw, 5.6rem);
  font-weight: 900;
  letter-spacing: 0;
}

.profile-meta {
  display: grid;
  gap: 6px;
  text-align: center;
  transform: rotate(-1.2deg);
}

.profile-meta p {
  margin: 0;
  color: var(--ink-soft);
}

.profile-meta .profile-name {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.signal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-grid span,
.skills-list li {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 800;
}

.signal-grid span:nth-child(1),
.skills-list li:nth-child(5n + 1) {
  border-color: rgba(214, 51, 132, 0.22);
  background: rgba(248, 176, 198, 0.28);
}

.signal-grid span:nth-child(2),
.skills-list li:nth-child(5n + 2) {
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(167, 123, 216, 0.18);
}

.signal-grid span:nth-child(3),
.skills-list li:nth-child(5n + 3) {
  border-color: rgba(24, 169, 153, 0.24);
  background: rgba(173, 223, 193, 0.24);
}

.signal-grid span:nth-child(4),
.skills-list li:nth-child(5n + 4) {
  border-color: rgba(255, 209, 102, 0.38);
  background: rgba(255, 232, 163, 0.32);
}

.skills-list li:nth-child(5n) {
  border-color: rgba(38, 168, 255, 0.24);
  background: rgba(128, 185, 239, 0.18);
}

.signal-grid span {
  padding: 12px;
  text-align: center;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 38px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 40px;
}

.about-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.about-copy p {
  margin: 0;
}

.about-highlights,
.community-layout {
  display: grid;
  gap: 16px;
}

.highlight-card,
.community-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 238, 0.86)),
    var(--paper-bright);
  box-shadow: 0 16px 42px rgba(116, 55, 108, 0.1);
}

.highlight-card {
  position: relative;
  padding: 22px;
}

.highlight-card::before,
.community-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 22px;
  width: 54px;
  height: 18px;
  background: var(--tape);
  border: 1px solid rgba(202, 157, 63, 0.24);
  transform: rotate(-3deg);
}

.highlight-card h3,
.community-card h3,
.skills-wrap h3 {
  margin-bottom: 10px;
}

.highlight-card p,
.community-card p,
.timeline-item p,
.contact p {
  margin: 0;
  color: var(--ink-soft);
}

.card-accent {
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
}

.card-accent.teal {
  background: linear-gradient(90deg, var(--teal), var(--leaf));
}

.card-accent.coral {
  background: linear-gradient(90deg, var(--peony), var(--coral));
}

.card-accent.gold {
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 238, 0.84)),
    var(--paper-bright);
  box-shadow: 0 12px 30px rgba(97, 62, 70, 0.08);
}

.timeline-marker {
  width: 16px;
  height: 16px;
  margin-top: 7px;
  border: 4px solid rgba(255, 247, 238, 0.95);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 92, 138, 0.4);
}

.timeline-item:nth-child(2) .timeline-marker {
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(24, 169, 153, 0.4);
}

.timeline-item:nth-child(3) .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.5);
}

.timeline-item:nth-child(4) .timeline-marker {
  background: var(--lilac);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.38);
}

.timeline-kicker {
  margin-bottom: 8px;
  color: var(--peony);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.skills-wrap {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(237, 255, 245, 0.72)),
    var(--paper-bright);
  box-shadow: 0 12px 30px rgba(97, 62, 70, 0.08);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-list li {
  padding: 10px 13px;
  box-shadow: 0 7px 16px rgba(97, 62, 70, 0.06);
  transform: rotate(-0.4deg);
}

.skills-list li:nth-child(even) {
  transform: rotate(0.5deg);
}

.community-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-card {
  position: relative;
  padding: 24px;
}

.about-highlights .highlight-card:nth-child(2),
.community-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.about-highlights .highlight-card:nth-child(3),
.community-card:nth-child(3) {
  transform: rotate(-0.7deg);
}

.community-card:nth-child(1) {
  border-top: 5px solid var(--peony);
}

.community-card:nth-child(2) {
  border-top: 5px solid var(--teal);
}

.community-card:nth-child(3) {
  border-top: 5px solid var(--gold);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-inline: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 235, 245, 0.74)),
    var(--paper-bright);
  box-shadow: 0 16px 42px rgba(97, 62, 70, 0.09);
}

.contact p {
  max-width: 720px;
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration-color: rgba(214, 51, 132, 0.52);
  text-underline-offset: 4px;
}

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

  .nav-links {
    max-width: 64vw;
    justify-content: flex-end;
    flex-wrap: wrap;
    border-radius: 8px;
  }

  .nav-links a {
    border-radius: 6px;
  }

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

  .hero {
    gap: 34px;
  }

  .profile-panel {
    max-width: 540px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    width: min(100% - 24px, var(--max-width));
    flex-direction: column;
    padding-top: 14px;
  }

  .nav-links {
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    min-width: 80px;
    padding-inline: 8px;
    text-align: center;
  }

  .section-band,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .section-band,
  .section-band.light,
  .split-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-band.light,
  .split-band {
    padding-inline: 12px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.1rem);
  }

  .hero-actions,
  .contact {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
