:root {
  --green: #1B5E45;
  --green-deep: #0F4030;
  --ink: #12211C;
  --muted: #58685F;
  --yellow: #F6D66B;
  --pink: #F4A9B8;
  --border: #D9E1DB;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  background-color: #F7F9F7;
  background-image: linear-gradient(#E7EDE8 1px, transparent 1px);
  background-size: 100% 24px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #156C81; outline-offset: 3px; }
::selection { color: var(--ink); background: var(--yellow); }

.bio {
  width: min(100% - 40px, 460px);
  margin-inline: auto;
  padding-top: max(15px, env(safe-area-inset-top));
  padding-bottom: max(21px, env(safe-area-inset-bottom));
}
.bio-toolbar { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.bio-domain { color: var(--green); font-size: 10px; font-weight: 700; padding-block: 8px; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #FFFFFF;
  transition: background-color 150ms ease;
}
.icon-button:hover { background: #E8F1EC; }
.icon-button img { width: 15px; height: 15px; }
.bio-intro { position: relative; padding: 12px 0 22px; text-align: center; }
.bio-logo { margin: 0 auto 10px; object-fit: contain; }
.bio-intro h1 { margin: 0; color: #123B68; font-family: var(--display); font-size: 33px; font-weight: 800; line-height: 1.1; }
.bio-intro h1 span { color: var(--green); }
.bio-tagline { margin: 6px 0 0; font-size: 12px; font-weight: 700; }
.bio-description { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.bio-links { display: grid; gap: 9px; }
.bio-link {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 2px 0 #E2E8E3;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.bio-link:hover { transform: translateY(-2px); border-color: #9AAFA0; box-shadow: 0 4px 0 #DCE4DD; }
.bio-link:active { transform: translateY(1px); box-shadow: 0 1px 0 #DCE4DD; }
.bio-link--green { background: var(--green); color: #FFFFFF; border-color: var(--green-deep); box-shadow: 0 2px 0 var(--green-deep); }
.bio-link--green:hover { border-color: var(--green-deep); box-shadow: 0 4px 0 var(--green-deep); }
.bio-link--yellow { background: #FBEFC4; border-color: #E7D692; box-shadow: 0 2px 0 #E7D692; }
.bio-link--yellow:hover { border-color: #CEB454; box-shadow: 0 4px 0 #E0CB7C; }
.bio-link--pink { background: #FBDDE3; border-color: #E7BDC6; box-shadow: 0 2px 0 #E7BDC6; }
.bio-link--pink:hover { border-color: #D591A1; box-shadow: 0 4px 0 #E2AEBB; }
.link-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #FFFFFF; }
.link-icon img { width: 20px; height: 20px; object-fit: contain; }
.link-icon--green { background: #E7F1EB; }
.link-icon--blue { background: #E7EFF7; }
.link-icon--yellow { background: #FBEFC4; }
.link-icon--pink { background: #FBDDE3; }
.link-copy { display: grid; gap: 3px; min-width: 0; }
.link-copy strong { font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.link-copy > span { color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.bio-link--green .link-copy > span { color: #DAE9DF; }
.link-arrow { width: 15px; height: 15px; opacity: .55; }
.bio-link--green .link-arrow { opacity: .85; filter: invert(1); }

.bio-footer { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #ADBEB1; text-align: center; }
.bio-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); }
.bio-shortcuts a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; font-size: 10px; font-weight: 600; }
.bio-shortcuts img { width: 14px; height: 14px; }
.bio-shortcuts a + a { border-left: 1px solid var(--border); }
.bio-shortcuts a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.bio-footer p { color: var(--muted); margin: 18px 0 9px; font-size: 10px; }
.footer-brand { display: inline-block; font-family: var(--display); font-size: 15px; font-weight: 800; color: #123B68; }
.footer-brand span { color: var(--green); }
.bio-footer small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }

.bio-toast {
  position: fixed;
  z-index: 2;
  bottom: max(15px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  margin: 0;
  padding: 9px 14px;
  color: #FFFFFF;
  background: var(--green-deep);
  border-radius: 8px;
  box-shadow: 0 4px 16px #12211C26;
  text-align: center;
  pointer-events: none;
}
.bio-toast:empty { display: none; }
.share-dialog { width: min(400px, calc(100% - 32px)); padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; color: var(--ink); }
.share-dialog::backdrop { background: #12211C75; }
.share-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.share-heading h2 { margin: 0; font-family: var(--display); font-size: 17px; }
.share-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.share-field { display: flex; gap: 6px; }
.share-field input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.copy-status { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.copy-status:empty { display: none; }

@media (max-width: 359px) {
  .bio { width: calc(100% - 28px); }
  .bio-link { gap: 8px; padding-inline: 9px; }
}
@media (min-width: 768px) {
  .bio { padding-top: 22px; padding-bottom: 30px; }
  .bio-intro { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
