/* D082: keep the supplied link-in-bio layout; borrow only the main site's styles. */
@font-face { font-family: Sentient; src: url('/fonts/sentient-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
body[data-page="bio"] { --bio-card: #141414; min-height: 100vh; background: var(--paper); }
:root[data-theme="light"] body[data-page="bio"] { --bio-card: #fff; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body[data-page="bio"] { --bio-card: #fff; }
}
body[data-page="bio"]::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(to right, var(--yellow) 0 16.666%, var(--coral) 16.666% 33.333%, var(--green) 33.333% 50%, var(--blue) 50% 66.666%, var(--pink) 66.666% 83.333%, var(--purple) 83.333% 100%);
}
.container { max-width: 672px; margin: 0 auto; padding: 32px 16px; }
.profile-section { margin-bottom: 48px; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; border: 4px solid var(--yellow); object-fit: cover; }
.name { font-size: 36px; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-bottom: 8px; color: var(--ink); }
.name a, .name a:visited, .name a:hover, .name a:active { color: inherit; font: inherit; text-decoration: none; }
.bio { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.contactme { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.contactme a { color: var(--link); text-decoration: none; font-weight: 500; }
.contactme a:hover { text-decoration: underline; }
.social-icons { display: flex; justify-content: center; gap: 16px; }
.social-icons .social-icon { position: relative; width: 24px; height: 24px; border: 0; color: var(--ink); transition: color .2s; }
/* Keep the original icon dimensions and spacing, with a larger vertical hit area. */
.social-icons .social-icon::before { content: ""; position: absolute; inset: -10px -8px; }
.social-icons .social-icon svg { width: 24px; height: 24px; fill: currentColor; }
.social-icons .social-icon:hover { color: var(--link); }
.links-section { margin-bottom: 48px; }
.link-card { display: block; background: var(--bio-card); color: var(--ink); border: 1px solid var(--rule); border-radius: 0; padding: 20px; margin-bottom: 16px; text-decoration: none; transition: border-color .2s; }
a.link-card:hover { border-color: var(--ink); }
a.link-card:hover .link-title { text-decoration: underline; text-underline-offset: 4px; }
.link-title { font: 400 18px/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 4px; text-wrap: pretty; }
.link-description, .lead-description { font-size: 16px; line-height: 1.5; color: var(--muted); }
.link-details { margin-top: 14px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.link-details > span { white-space: nowrap; }
.featured-card { position: relative; border: 2px solid var(--purple); background: var(--purple); color: #fff; }
.featured-card .link-description { color: #fff; }
.link-benefits { margin: 14px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.link-benefits li + li { margin-top: 6px; }
.link-benefits li::marker { color: var(--yellow); }
.recent-builds-title { margin: 0 0 16px; font: 400 24px/1.25 var(--display); letter-spacing: -.02em; }
a.featured-card:hover { border-color: var(--yellow); }
.featured-badge { position: absolute; top: -12px; right: 12px; padding: 4px 10px; border: 1px solid #111; background: var(--yellow); color: #111; font: 700 10px/1.3 var(--body); letter-spacing: .05em; }
.cta-button { display: inline-block; width: 100%; margin-top: 16px; padding: 14px 28px; background: var(--yellow); color: #111; font: 600 16px/1.5 var(--body); text-align: center; transition: background .2s, color .2s; }
.featured-card:hover .cta-button { background: #fff; color: #111; }
.toolkit-card { margin-bottom: 48px; background: var(--yellow); color: #111; border-color: var(--yellow); }
.toolkit-card .link-title { margin-bottom: 8px; }
.toolkit-card .lead-description { color: #111; }
/* Let the native embed and its notices determine the height, without centring
   them inside an oversized reserved area. Beehiiv handles iframe resizing. */
.bio-signup { padding: 20px 0 0; display: flex; flex-direction: column; gap: 12px; color-scheme: light; }
.beehiiv-resource-form { min-width: 0; }
.beehiiv-resource-form .beehiiv-embed { display: block; width: 100%; max-width: 100%; height: 240px; border: 0; margin: 0; background: transparent; }
.bio-signup fieldset { min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bio-signup label { font-size: 13px; font-weight: 550; }
.bio-signup input, .bio-signup button { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #111; border-radius: 0; opacity: 1; }
.bio-signup input { background: #f6f4ee; color: #111; }
.bio-signup button { background: #111; color: #fff; cursor: pointer; }
.bio-signup button:hover:not(:disabled) { background: #333; }
.bio-signup button:disabled { background: #504f49; cursor: not-allowed; }
.bio-signup p { font-size: 12px; line-height: 1.5; }
.bio-signup form > p { margin-top: 12px; }
.bio-signup .lead-capture-status:empty { display: none; }
.bio-signup .sr-only, .bio-signup .lead-capture-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bio-signup [data-lead-success] > p { margin: 12px 0; }
.bio-signup [data-lead-download] { display: block; padding: 14px; margin-top: 20px; background: #111; color: #fff; font-size: 14px; font-weight: 550; text-align: center; }
.bio-signup :is(input,button,a):focus-visible { outline: 3px solid #4247c7; outline-offset: 3px; }
.bio-signup input[aria-invalid="true"] { outline: 2px solid #94241b; outline-offset: -3px; }
.toolkit-card[data-state="error"] .lead-capture-status { color: #761b14; }
.toolkit-card[data-state="success"] .bio-signup { padding-top: 0; }
body[data-page="bio"] footer { text-align: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
body[data-page="bio"] footer a { color: var(--link); }
@media (prefers-reduced-motion: reduce) { .social-icons .social-icon, .link-card, .cta-button { transition: none; } }
@media print { .link-card { break-inside: avoid; } }
