:root {
  color: #143d35;
  background: #063d31;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #075746;
  --deep-green: #063d31;
  --ivory: #fcfbf4;
  --ink: #143d35;
  --muted: #58736e;
  --terracotta: #e8785c;
  --line: #cddbd4;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--deep-green);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--deep-green);
  background-image:
    linear-gradient(135deg, rgba(2, 37, 28, .88) 0%, rgba(4, 79, 59, .64) 50%, rgba(2, 39, 30, .9) 100%),
    url("./bio-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 31, 24, .08), rgba(2, 31, 24, .24));
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 6vw, 80px) 16px;
}

.ambient-leaf {
  position: fixed;
  z-index: -1;
  display: block;
  width: clamp(170px, 26vw, 330px);
  aspect-ratio: 1.05;
  background-image: url("./floating-leaves.webp");
  background-repeat: no-repeat;
  background-size: 270% auto;
  pointer-events: none;
  filter: saturate(.92) brightness(.86);
  opacity: .9;
}

.ambient-leaf-top {
  top: -20px;
  left: -24px;
  background-position: left top;
  transform: rotate(-8deg);
}

.ambient-leaf-bottom {
  right: -30px;
  bottom: -40px;
  background-position: right bottom;
  transform: rotate(-5deg);
}

.bio-card {
  position: relative;
  min-width: 0;
  width: min(100%, 900px);
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 70px) clamp(24px, 6vw, 72px) 36px;
  background:
    radial-gradient(ellipse at 95% 10%, rgba(224, 238, 222, .43), transparent 15rem),
    radial-gradient(ellipse at 3% 94%, rgba(221, 239, 222, .48), transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(252, 251, 244, .58));
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 58px;
  box-shadow: 0 28px 70px rgba(0, 24, 18, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
}

.bio-card::before {
  position: absolute;
  top: 0;
  right: 9%;
  left: 9%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--terracotta) 18%, #f49b83 50%, var(--terracotta) 82%, transparent);
  content: "";
}

.bio-card::after {
  position: absolute;
  right: -60px;
  bottom: 82px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(39, 97, 81, .11);
  border-radius: 50% 0 50% 50%;
  content: "";
  opacity: .8;
  transform: rotate(35deg);
  pointer-events: none;
}

.profile,
.link-list,
.benefits,
.bio-footer {
  position: relative;
  z-index: 1;
}

.profile {
  text-align: center;
}

.logo-frame {
  display: grid;
  min-height: 112px;
  place-items: center;
  margin: 0 auto 20px;
}

.brand-logo {
  display: block;
  width: min(390px, 84%);
  height: auto;
}

.profile-kicker {
  margin: 0 0 15px;
  color: var(--terracotta);
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 800;
  letter-spacing: .28em;
  line-height: 1.25;
}

.profile h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.profile-intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
}

.link-list {
  display: grid;
  gap: 14px;
  margin-top: clamp(30px, 4.5vw, 48px);
}

.bio-link {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 12px 16px 12px 14px;
  border: 2px solid transparent;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.bio-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(7, 87, 70, .18);
}

.bio-link:focus-visible {
  outline: 4px solid var(--terracotta);
  outline-offset: 4px;
}

.bio-link-primary {
  color: #fff;
  background: linear-gradient(135deg, #075b49 0%, #006049 100%);
  box-shadow: 0 10px 18px rgba(7, 87, 70, .1);
}

.bio-link-primary:hover {
  background: linear-gradient(135deg, #064c3e 0%, #00513f 100%);
}

.bio-link-secondary {
  color: var(--green);
  background: rgba(255, 255, 255, .52);
  border-color: rgba(7, 87, 70, .76);
}

.bio-link-secondary:hover {
  background: rgba(255, 255, 255, .8);
}

.link-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
}

.bio-link-primary .link-icon {
  color: var(--green);
  background: #e8f4ef;
}

.bio-link-secondary .link-icon {
  background: #e8f4ef;
}

.icon-image {
  display: block;
  object-fit: contain;
}

.link-icon .icon-image {
  width: 38px;
  height: 38px;
}

.link-arrow .icon-image {
  width: 24px;
  height: 24px;
}

.link-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.link-label {
  color: currentColor;
  font-size: clamp(11px, 1.7vw, 16px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
}

.link-subtitle {
  color: currentColor;
  font-size: clamp(15px, 2.05vw, 21px);
  line-height: 1.25;
  opacity: .95;
}

.link-copy strong {
  overflow-wrap: anywhere;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.05;
}

.bio-link-secondary .link-copy strong {
  font-size: clamp(19px, 2.6vw, 28px);
}

.link-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  padding: 34px 0 28px;
  border-top: 1px solid var(--line);
}

.benefit {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  color: var(--green);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.3;
}

.benefit + .benefit {
  border-left: 1px solid #a4c1b7;
}

.benefit-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
}

.benefit-icon .icon-image {
  width: 46px;
  height: 46px;
}

.bio-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.3;
  text-align: center;
}

.footer-dot {
  color: var(--terracotta);
}

@media (max-width: 640px) {
  body {
    background-position: 56% center;
    background-attachment: scroll;
  }

  .page-shell {
    padding: 14px 10px 22px;
  }

  .ambient-leaf {
    width: 200px;
  }

  .bio-card {
    padding: 30px 12px 21px;
    border-radius: 32px;
    background:
      radial-gradient(ellipse at 95% 10%, rgba(224, 238, 222, .36), transparent 13rem),
      radial-gradient(ellipse at 3% 94%, rgba(221, 239, 222, .4), transparent 14rem),
      linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(252, 251, 244, .5));
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
  }

  .bio-card::before {
    right: 12%;
    left: 12%;
  }

  .logo-frame {
    min-height: 76px;
    margin-bottom: 14px;
  }

  .brand-logo {
    width: min(300px, 92%);
  }

  .profile-kicker {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .23em;
  }

  .profile h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .profile-intro {
    margin-top: 15px;
    font-size: 19px;
  }

  .link-list {
    gap: 10px;
    margin-top: 26px;
  }

  .bio-link {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    gap: 9px;
    min-height: 88px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .link-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .link-icon .icon-image {
    width: 31px;
    height: 31px;
  }

  .link-arrow .icon-image {
    width: 21px;
    height: 21px;
  }

  .link-label {
    font-size: 9px;
    letter-spacing: .07em;
  }

  .link-subtitle {
    font-size: 11.5px;
  }

  .link-copy strong {
    font-size: 17px;
  }

  .bio-link-secondary .link-copy strong {
    font-size: 13px;
  }

  .link-arrow {
    width: 36px;
    height: 36px;
  }

  .benefits {
    margin-top: 37px;
    padding: 25px 0 22px;
  }

  .benefit {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 7px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }

  .benefit-icon .icon-image {
    width: 38px;
    height: 38px;
  }

  .bio-footer {
    gap: 7px;
    font-size: 11px;
    letter-spacing: .1em;
  }
}

@media (max-width: 360px) {
  .bio-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .bio-link {
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 8px;
    min-height: 84px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
  }

  .link-icon .icon-image {
    width: 29px;
    height: 29px;
  }

  .link-arrow .icon-image {
    width: 19px;
    height: 19px;
  }

  .link-copy strong {
    font-size: 16px;
  }

  .link-arrow {
    width: 34px;
    height: 34px;
  }

  .benefit {
    padding: 0 3px;
    font-size: 12px;
  }
}

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