:root {
  color-scheme: light dark;
  --color-bg: light-dark(#fff8ed, #231425);
  --color-text: light-dark(#39223c, #fff4f7);
  --color-muted: light-dark(#67485c, #e2bcd3);
  --color-accent: light-dark(#ad1951, #ff9ac6);
  --color-surface: light-dark(#fffdf9, #362337);
  --color-border: light-dark(#ead1da, #68445d);
  --wash-pink: light-dark(#ffdbe9, #46203b);
  --wash-yellow: light-dark(#ffedbd, #422b29);
  --shadow: light-dark(#74344918, #10081160);
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page-width: 39rem;
  --gutter: clamp(1rem, 4vw, 1.75rem);
}

:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 22% 7%, var(--wash-pink), transparent 45%),
    radial-gradient(ellipse at 90% 45%, var(--wash-yellow), transparent 44%),
    var(--color-bg);
  color: var(--color-text);
  font: 1rem/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 2;
  translate: 0 -200%;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: var(--color-surface);
  font-weight: 700;
}

.skip-link:focus-visible { translate: 0 0; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 3.9rem var(--gutter) 1.6rem;
}

.toolbar {
  position: absolute;
  top: .9rem;
  right: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  display: flex;
  gap: .45rem;
}

.toolbar[hidden] { display: none; }

.toolbar__button {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent);
  cursor: pointer;
}

.toolbar__button:hover { box-shadow: 0 3px 10px var(--shadow); }
.toolbar .icon--dark { display: none; }
:root[data-theme='dark'] .toolbar .icon--dark { display: block; }
:root[data-theme='dark'] .toolbar .icon--light { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .toolbar .icon--dark { display: block; }
  :root:not([data-theme='light']) .toolbar .icon--light { display: none; }
}

.profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 2.8rem) 1rem clamp(2.1rem, 6vw, 3rem);
  border-radius: 1.8rem;
  background: linear-gradient(120deg, #9b1846 5%, #c62662 53%, #db543c 100%);
  box-shadow: 0 12px 26px var(--shadow), inset 0 0 0 1px #ffffff30;
  color: #fff7e8;
  text-align: center;
}

.profile__decoration {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.profile__sweet {
  position: absolute;
  width: clamp(5.2rem, 23vw, 9.4rem);
}

.profile__sweet--lollipop {
  bottom: -1.7rem;
  left: clamp(-1.7rem, 2.4vw - 2rem, -.45rem);
  rotate: -20deg;
  opacity: .8;
}

.profile__sweet--wrapped {
  top: 1.3rem;
  right: clamp(-1.8rem, 2vw - 1.8rem, -.35rem);
  rotate: 28deg;
  opacity: .86;
}

.sprinkle {
  position: absolute;
  width: .34rem;
  height: 1rem;
  border-radius: 1rem;
}

.sprinkle--one { top: 17%; left: 12%; rotate: -34deg; background: #ffd179; }
.sprinkle--two { top: 29%; left: 7%; rotate: 39deg; background: #ffb0c9; }
.sprinkle--three { bottom: 13%; right: 10%; rotate: 38deg; background: #ffdb86; }
.sprinkle--four { bottom: 23%; right: 5%; rotate: -25deg; background: #d7b7ff; }
.sprinkle--five { top: 9%; left: 24%; width: .4rem; height: .4rem; background: #ffe5ae; }
.sprinkle--six { bottom: 12%; right: 20%; width: .45rem; height: .45rem; background: #ffbed4; }

.profile__meta {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .32rem .7rem;
  border-radius: 3rem;
  background: #fff2ce;
  color: #7b2249;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile__meta .icon {
  width: .88rem;
  height: .88rem;
}

.profile__name {
  margin-top: .95rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4.35rem, 15vw, 6.3rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .95;
}

.profile__name span {
  display: block;
  margin-bottom: .27rem;
  font: 750 clamp(.95rem, 4vw, 1.1rem)/1.25 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.profile__tagline {
  max-width: 17rem;
  margin: .82rem auto 0;
  font-size: clamp(.89rem, 3.6vw, 1.03rem);
  font-weight: 550;
  text-wrap: balance;
}

.links {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.link {
  display: flex;
  min-height: 4.95rem;
  align-items: center;
  gap: .75rem;
  padding: .68rem .75rem;
  border: 1px solid var(--link-border);
  border-radius: 1.18rem;
  background: linear-gradient(110deg, var(--link-tint), var(--color-surface) 88%);
  color: var(--color-text);
  box-shadow: 0 3px 10px var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link--pink {
  --link-badge: #b91d54;
  --link-color: light-dark(#9f1a49, #ffb4d0);
  --link-border: light-dark(#f2bdd0, #88506b);
  --link-tint: light-dark(#ffdeea, #4e263d);
}

.link--green {
  --link-badge: #17694a;
  --link-color: light-dark(#175e44, #a2edc5);
  --link-border: light-dark(#addac4, #487961);
  --link-tint: light-dark(#d7f6e4, #243c35);
}

.link--purple {
  --link-badge: #6638a7;
  --link-color: light-dark(#5b2b98, #ddc3ff);
  --link-border: light-dark(#dac7f4, #755a97);
  --link-tint: light-dark(#edddff, #3c2b56);
}

.link__badge {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  place-items: center;
  border-radius: .9rem;
  background: var(--link-badge);
  color: white;
}

.link__badge .icon {
  width: 1.42rem;
  height: 1.42rem;
}

.link__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: .06rem;
}

.link__title {
  color: var(--link-color);
  font-size: 1.035rem;
  font-weight: 790;
}

.link__meta {
  color: var(--color-muted);
  font-size: .79rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.link__arrow {
  width: 1rem;
  height: 1rem;
  color: var(--link-color);
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow);
  }

  .link:hover .link__title { text-decoration: underline; }
}

.elsewhere {
  margin-top: 1.42rem;
  text-align: center;
}

.label {
  color: var(--color-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.elsewhere__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: .65rem;
}

.elsewhere__list a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: .28rem;
  padding: .33rem .64rem;
  border: 1px solid var(--color-border);
  border-radius: 3rem;
  background: var(--color-surface);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.elsewhere__list .icon {
  width: .9rem;
  height: .9rem;
}

.elsewhere__list a:hover { text-decoration: underline; }

.footer {
  margin-top: 1.3rem;
  color: var(--color-muted);
  font-size: .7rem;
  text-align: center;
}

.footer a { color: inherit; text-underline-offset: .15em; }

@media (max-width: 350px) {
  .profile__tagline { max-width: 12.8rem; }
  .link { gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .link:hover { transform: none; }
}
