:root {
  color-scheme: dark;
  --ink: #0c1526;
  --ink-soft: #172237;
  --paper: #fffaf7;
  --paper-soft: rgba(255, 250, 247, 0.9);
  --pink: #ff2f7d;
  --pink-deep: #d91b63;
  --blue: #1b4dff;
  --blue-deep: #1038c7;
  --muted: #b8c0d2;
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 50px rgba(2, 7, 18, 0.28);
  --page-background: #111a3a;
  --page-color: var(--paper);
  --page-muted: var(--muted);
  --page-blue-glow: rgba(27, 77, 255, 0.08);
  --page-pink-glow: rgba(255, 47, 125, 0.1);
  --grid-line: rgba(255, 255, 255, 0.12);
  --control-color: var(--paper);
  --control-surface: rgba(12, 21, 38, 0.64);
  --glass-surface: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.16);
  --glass-border: var(--border);
  --eyebrow-color: #ff8ab6;
  --handle-color: #9eb1ff;
  --bio-color: #e7eaf1;
  --section-color: rgba(255, 255, 255, 0.88);
  --disclosure-color: rgba(255, 255, 255, 0.78);
  --disclosure-surface: rgba(12, 21, 38, 0.28);
  --action-color: rgba(255, 255, 255, 0.9);
  --action-surface: rgba(12, 21, 38, 0.38);
  --error-color: var(--paper);
  --error-surface: rgba(217, 27, 99, 0.18);
  --focus-ring: #ffe073;
}

html[data-theme="light"] {
  color-scheme: light;
  --page-background: #f7efe6;
  --page-color: #172237;
  --page-muted: #58647a;
  --page-blue-glow: rgba(27, 77, 255, 0.13);
  --page-pink-glow: rgba(255, 47, 125, 0.15);
  --grid-line: rgba(12, 21, 38, 0.08);
  --control-color: #172237;
  --control-surface: rgba(255, 250, 247, 0.72);
  --glass-surface: rgba(255, 250, 247, 0.62);
  --glass-hover: rgba(255, 250, 247, 0.88);
  --glass-border: rgba(12, 21, 38, 0.17);
  --eyebrow-color: #c2185b;
  --handle-color: #2547c9;
  --bio-color: #33415a;
  --section-color: #26344e;
  --disclosure-color: #46536a;
  --disclosure-surface: rgba(255, 250, 247, 0.55);
  --action-color: #26344e;
  --action-surface: rgba(255, 250, 247, 0.72);
  --error-color: #73143c;
  --error-surface: rgba(255, 47, 125, 0.13);
  --focus-ring: #1038c7;
  --shadow: 0 18px 50px rgba(42, 32, 46, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--page-background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--page-color);
  background:
    linear-gradient(155deg, var(--page-blue-glow), transparent 48%),
    linear-gradient(20deg, var(--page-pink-glow), transparent 52%),
    var(--page-background);
  font-family: Verdana, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.atmosphere,
.atmosphere > span {
  position: fixed;
  pointer-events: none;
}

.atmosphere {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.light {
  width: 23rem;
  height: 23rem;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(72px);
}

.light-pink {
  top: -10rem;
  right: -9rem;
  background: var(--pink);
}

.light-blue {
  top: 36vh;
  left: -13rem;
  background: var(--blue);
}

.grid {
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 1rem 0 0;
}

.share-button,
.theme-toggle,
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--control-color);
  background: var(--control-surface);
  box-shadow: 0 8px 26px rgba(3, 9, 22, 0.22);
  backdrop-filter: blur(16px);
  cursor: pointer;
  text-decoration: none;
}

.share-button {
  padding: 0.65rem 1rem;
}

.theme-toggle {
  padding: 0.65rem 0.85rem;
}

.share-button svg,
.theme-toggle svg,
.contact svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-icon--moon {
  display: none;
}

html[data-theme="light"] .theme-icon--sun {
  display: none;
}

html[data-theme="light"] .theme-icon--moon {
  display: block;
}

.theme-toggle-label {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.page-shell {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 0.7rem 0 4rem;
}

.profile {
  display: grid;
  justify-items: center;
  padding: 1.2rem 0 2.7rem;
  text-align: center;
}

.portrait-frame {
  position: relative;
  width: clamp(8.8rem, 31vw, 11.5rem);
  aspect-ratio: 1;
  margin-bottom: 1.3rem;
  border: 4px solid var(--paper);
  border-radius: 49% 51% 47% 53%;
  background: var(--paper);
  box-shadow:
    0 0 0 8px rgba(255, 47, 125, 0.2),
    0 24px 60px rgba(1, 6, 18, 0.42);
  transform: rotate(-2deg);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.portrait-sticker {
  position: absolute;
  right: -1.6rem;
  bottom: 0.35rem;
  display: grid;
  min-width: 3.9rem;
  min-height: 3.9rem;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 46% 54% 45% 55%;
  color: var(--ink);
  background: var(--pink);
  box-shadow: 5px 7px 0 var(--blue);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  transform: rotate(8deg);
}

.profile-copy {
  animation: content-in 560ms 100ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--eyebrow-color);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile h1 {
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  text-wrap: balance;
  text-shadow: 0.05em 0.055em 0 var(--blue-deep);
}

.handle {
  margin: 0.75rem 0 0;
  color: var(--handle-color);
  font-size: 0.83rem;
  font-weight: 700;
}

.bio {
  max-width: 34rem;
  margin: 0.8rem auto 0;
  color: var(--bio-color);
  font-size: clamp(0.95rem, 3.6vw, 1.08rem);
}

.bio-sparkle {
  display: inline-block;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  animation: content-in 560ms 170ms ease-out both;
}

.socials a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.78rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-surface);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.socials svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.socials svg path:first-child:not(.play) {
  fill: currentColor;
  stroke: none;
}

.socials .play,
.socials .fill-dot {
  fill: var(--ink);
  stroke: none;
}

.contact {
  display: flex;
  width: min(100%, 31rem);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: var(--glass-surface);
  text-decoration: none;
  backdrop-filter: blur(14px);
  animation: content-in 560ms 220ms ease-out both;
}

.contact span {
  display: grid;
  text-align: left;
}

.contact strong {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.82rem;
}

.contact small {
  color: var(--page-muted);
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
}

.offers {
  position: relative;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 7vw, 2.7rem);
}

.spark {
  display: inline-block;
  color: var(--pink);
  font-size: 2.2rem;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--blue);
  transform: rotate(9deg);
}

.link-status {
  margin: 1rem 0;
  color: var(--page-muted);
  font-size: 0.82rem;
  text-align: center;
}

.affiliate-disclosure {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.85rem;
  color: var(--disclosure-color);
  background: var(--disclosure-surface);
  font-size: 0.74rem;
  line-height: 1.45;
}

.link-discovery {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}

.search-label {
  color: var(--section-color);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.search-field {
  display: grid;
  min-height: 48px;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  color: var(--page-color);
  background: var(--glass-surface);
  box-shadow: 0 10px 28px rgba(2, 7, 18, 0.1);
  backdrop-filter: blur(16px);
}

.search-field:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 47, 125, 0.16);
}

.search-field svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
}

.search-field input::placeholder {
  color: var(--page-muted);
  opacity: 0.86;
}

.section-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.35rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.section-filter {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0.55rem 0.78rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--page-color);
  background: var(--glass-surface);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  scroll-snap-align: start;
}

.section-filter[aria-pressed="true"] {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(110deg, var(--pink-deep), var(--blue));
}

.discovery-status {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.72rem;
}

.no-results {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed var(--glass-border);
  border-radius: 1rem;
  color: var(--page-muted);
  background: var(--glass-surface);
  text-align: center;
}

.link-groups,
.link-list {
  display: grid;
  gap: 0.75rem;
}

.link-groups {
  gap: 1.55rem;
}

.link-group-summary {
  min-height: 44px;
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
  border-radius: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.link-group-summary::-webkit-details-marker {
  display: none;
}

.link-group-title {
  display: grid;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--section-color);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-group-name {
  min-width: 0;
}

.link-group-count {
  color: var(--page-muted);
  font-size: 0.68rem;
}

.link-group-chevron {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 900;
  transform: rotate(-90deg);
  transition: transform 180ms ease;
}

.link-group[open] .link-group-chevron {
  transform: rotate(0);
}

.link-item {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.4rem;
}

.link-card {
  position: relative;
  display: grid;
  min-height: 82px;
  grid-template-columns: 3.5rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.25rem 0.85rem 1.25rem 0.9rem;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transform: translateY(12px);
  opacity: 0;
  animation: card-in 420ms ease-out forwards;
}

.link-card--featured {
  min-height: 116px;
  grid-template-columns: 5rem minmax(0, 1fr) 1.5rem;
  padding: 0.85rem;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 255, 0.9));
}

.link-card--no-media {
  grid-template-columns: minmax(0, 1fr) 1.5rem;
}

.link-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.32rem;
  background: var(--pink);
  content: "";
}

.link-media {
  display: block;
  width: 3.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(12, 21, 38, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.68);
}

.link-card--featured .link-media {
  width: 5rem;
  border-radius: 1rem;
}

.link-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-item:nth-child(3n + 2) .link-card::before {
  background: var(--blue);
}

.link-item:nth-child(3n) .link-card::before {
  background: linear-gradient(var(--pink), var(--blue));
}

.link-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.link-badge {
  justify-self: start;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, var(--pink-deep), var(--blue));
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.link-title {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: clamp(0.92rem, 3.7vw, 1.02rem);
  font-weight: 900;
  line-height: 1.18;
}

.link-description {
  color: #3d4b65;
  font-size: 0.74rem;
  line-height: 1.3;
}

.link-domain {
  overflow: hidden;
  color: #536078;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-cta {
  color: var(--pink-deep);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.link-arrow {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0 0.25rem;
}

.link-action {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--action-color);
  background: var(--action-surface);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.code-button {
  border-color: rgba(255, 47, 125, 0.42);
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.error-card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 138, 182, 0.5);
  border-radius: 1rem;
  color: var(--error-color);
  background: var(--error-surface);
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--page-muted);
  font-size: 0.72rem;
  text-align: center;
}

.footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 0.2rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  max-width: min(24rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.9rem;
  color: var(--paper);
  background: rgba(12, 21, 38, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.privacy-shell {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.back-link {
  padding: 0.55rem 0.9rem;
}

.privacy-card {
  margin-top: 1.2rem;
  padding: clamp(1.35rem, 5vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.8rem 1rem 1.8rem 1.1rem;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.privacy-card h1 {
  font-size: clamp(2.2rem, 10vw, 4rem);
}

.privacy-card h2 {
  margin-top: 1.8rem;
  color: var(--blue-deep);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.privacy-card p,
.privacy-card li {
  font-size: 0.94rem;
}

.privacy-lead {
  color: #46516a;
  font-size: 1.08rem !important;
}

.privacy-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--pink-deep);
  font-weight: 700;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

@media (hover: hover) {
  .share-button:hover,
  .theme-toggle:hover,
  .socials a:hover,
  .contact:hover,
  .back-link:hover,
  .link-action:hover {
    border-color: var(--page-color);
    background: var(--glass-hover);
  }

  .section-filter:hover:not([aria-pressed="true"]),
  .link-group-summary:hover {
    background: var(--glass-hover);
  }

  .link-card:hover {
    border-color: var(--paper);
    transform: translateY(-3px) rotate(-0.2deg);
  }

  .link-card:hover .link-arrow {
    transform: translateX(0.22rem);
  }
}

@media (min-width: 48rem) {
  .topbar,
  .page-shell,
  .footer,
  .privacy-shell {
    width: min(100% - 4rem, 48rem);
  }

  .page-shell {
    padding-top: 1.4rem;
  }

  .profile h1 br {
    display: none;
  }

  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-group--featured .link-list {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 92px;
  }

  .link-card--featured {
    min-height: 132px;
    grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem;
  }

  .link-card--featured.link-card--no-media {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
  }

  .link-card--featured .link-media {
    width: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Il Quaderno di Iuliana */
:root {
  --theme-discovery-gap: 1.5rem;
  --notebook-bg: #111a3a;
  --notebook-surface: #172441;
  --notebook-paper: #f7efe5;
  --notebook-ink: #14213c;
  --notebook-line: rgba(255, 248, 237, 0.18);
  --notebook-rule: rgba(255, 248, 237, 0.055);
  --sticker-ink: #101a30;
}

html[data-theme="light"] {
  --notebook-bg: #f3ebdf;
  --notebook-surface: #e8dfd4;
  --notebook-paper: #fff9f0;
  --notebook-ink: #14213c;
  --notebook-line: rgba(20, 33, 60, 0.17);
  --notebook-rule: rgba(20, 33, 60, 0.045);
}

body {
  background: var(--notebook-bg);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

.light {
  display: none;
}

.grid {
  opacity: 0.16;
  background-image:
    radial-gradient(circle, var(--grid-line) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.topbar {
  flex-wrap: wrap;
  width: min(100% - 2rem, 73.75rem);
  margin-bottom: var(--theme-discovery-gap);
  padding-top: 1rem;
}

.theme-toggle,
.share-button {
  border-radius: 0.9rem 0.7rem 0.95rem 0.75rem;
  background: var(--notebook-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.share-button {
  border: 2px solid var(--sticker-ink);
  color: var(--sticker-ink);
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--blue);
  transform: rotate(1deg);
}

.page-shell {
  padding-top: 0;
}

.notebook-layout {
  width: min(100% - 2rem, 44rem);
}

.profile {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0.25rem;
}

.portrait-frame {
  width: clamp(8rem, 28vw, 10.25rem);
  max-width: 58vw;
  margin-bottom: 0.95rem;
  border-width: 5px;
  box-shadow:
    0 0 0 5px rgba(255, 47, 125, 0.34),
    0 18px 40px rgba(1, 6, 18, 0.28);
}

.profile h1 {
  font-size: clamp(2.2rem, 9vw, 4rem);
  overflow-wrap: anywhere;
}

.profile-copy {
  min-width: 0;
  width: 100%;
}

.contact small {
  overflow-wrap: anywhere;
}

.socials {
  width: min(100%, 31rem);
  gap: 0;
  border-top: 1px solid var(--notebook-line);
  border-bottom: 1px solid var(--notebook-line);
}

.socials a {
  flex: 1 1 7rem;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.contact {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.offers {
  min-width: 0;
}

.section-heading {
  min-width: 0;
  border-bottom: 2px solid var(--section-color);
  padding-bottom: 0.75rem;
}

.section-heading h2 {
  overflow-wrap: anywhere;
}

.affiliate-disclosure,
.search-field {
  border-radius: 0.8rem;
  background: var(--notebook-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.link-discovery {
  gap: 0.75rem;
  overflow: hidden;
}

.section-filters {
  margin-right: -1rem;
  padding: 0.15rem 18% 0.3rem 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.section-filters::-webkit-scrollbar {
  display: none;
}

.section-filter {
  border-radius: 0.85rem 0.68rem 0.9rem 0.72rem;
  background: transparent;
}

.section-filter[aria-pressed="true"] {
  color: var(--sticker-ink);
  background: var(--pink);
}

.link-groups {
  gap: 2rem;
}

.link-group-summary {
  margin-bottom: 1rem;
  padding: 0;
  border-bottom: 2px solid var(--section-color);
  border-radius: 0;
}

.link-group-title {
  letter-spacing: 0.04em;
}

.link-list {
  min-width: 0;
  width: 100%;
  gap: 0;
}

.link-group {
  min-width: 0;
}

.link-item {
  min-width: 0;
  width: 100%;
  gap: 0;
  border-bottom: 1px solid var(--notebook-line);
}

.link-list .link-item:last-child {
  border-bottom: 0;
}

.link-card {
  min-width: 0;
  width: 100%;
  min-height: 96px;
  grid-template-columns: 4.5rem minmax(0, 1fr) 1.5rem;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border: 0;
  border-radius: 0;
  color: var(--page-color);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.link-card::before {
  display: none;
}

.link-media {
  width: 4.5rem;
  border-radius: 0.8rem;
  background: var(--notebook-paper);
}

.link-description,
.link-domain {
  color: var(--page-muted);
}

.link-title {
  font-size: clamp(0.92rem, 3.7vw, 1.02rem);
}

.link-badge {
  border-radius: 0.45rem;
  background: var(--pink-deep);
}

.link-actions {
  min-width: 0;
  flex-wrap: wrap;
  min-height: 52px;
  align-items: center;
  padding: 0.3rem 0.2rem 0.7rem;
}

.link-action {
  cursor: pointer;
}

.code-button {
  border-width: 0 0 1px;
  border-color: var(--pink);
  border-radius: 0;
  background: transparent;
}

.link-share-button {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--sticker-ink);
  border-radius: 1rem 0.72rem 1.05rem 0.78rem;
  color: var(--sticker-ink);
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--blue);
  transform: rotate(-1deg);
}

.link-share-button::before {
  margin-right: 0.4rem;
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.link-group--featured .link-list {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.link-group--featured .link-item {
  overflow: visible;
  border: 0;
  border-left: 6px solid var(--pink);
  border-radius: 1.1rem;
  color: var(--notebook-ink);
  background: var(--notebook-paper);
  box-shadow: 0 14px 34px rgba(2, 7, 18, 0.16);
}

.link-group--featured .link-item:nth-child(n + 2) {
  border-left-color: var(--blue);
}

.link-card--featured {
  min-height: 126px;
  grid-template-columns: 5.5rem minmax(0, 1fr) 1.5rem;
  padding: 0.85rem;
  color: var(--notebook-ink);
  background: transparent;
}

.link-card--featured .link-media {
  width: 5.5rem;
}

.link-card--featured .link-description {
  color: #45516a;
}

.link-group--featured .link-actions {
  margin: 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 0;
}

.link-group--featured .link-action:not(.link-share-button) {
  color: var(--notebook-ink);
}

.footer {
  width: min(100% - 2rem, 73.75rem);
}

@media (hover: hover) {
  .share-button:hover,
  .link-share-button:hover {
    border-color: var(--sticker-ink);
    background: #ff5a94;
    transform: translateY(-2px) rotate(-1deg);
  }

  .link-card:hover {
    border-color: transparent;
    transform: translateX(3px);
  }
}

@media (min-width: 48rem) {
  .notebook-layout {
    width: min(100% - 4rem, 48rem);
  }

  .link-card {
    min-height: 112px;
    grid-template-columns: 5.5rem minmax(0, 1fr) 1.5rem;
  }

  .link-media {
    width: 5.5rem;
  }

  .link-card--featured {
    grid-template-columns: 7rem minmax(0, 1fr) 1.5rem;
  }

  .link-card--featured .link-media {
    width: 7rem;
  }
}

@media (min-width: 64rem) {
  .topbar,
  .footer {
    width: min(100% - 4rem, 73.75rem);
  }

  .topbar {
    margin-bottom: var(--theme-discovery-gap);
  }

  .notebook-layout {
    display: grid;
    width: min(100% - 4rem, 73.75rem);
    max-width: 73.75rem;
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .profile {
    justify-items: start;
    padding: 1rem 2rem 1rem 0;
    border-right: 1px solid var(--notebook-line);
    text-align: left;
  }

  .profile h1 br {
    display: block;
  }

  .profile .bio {
    max-width: 29ch;
    margin-left: 0;
  }

  .portrait-frame {
    margin-left: 0.5rem;
  }

  .socials {
    display: grid;
    margin-top: 1.6rem;
  }

  .socials a {
    justify-content: flex-start;
    border-bottom: 1px solid var(--notebook-line);
  }

  .contact {
    justify-content: flex-start;
    padding-left: 0;
  }

  .offers {
    padding-top: 1rem;
  }

  .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.1rem);
  }

  .link-group--featured .link-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.85rem;
  }

  .link-group--featured .link-item:first-child {
    grid-row: auto;
  }

  .link-group--featured .link-item:first-child .link-card--featured {
    min-height: auto;
    grid-template-columns: 10rem minmax(0, 1fr) 1.5rem;
  }

  .link-group--featured .link-item:first-child .link-media {
    width: 10rem;
  }

  .link-group--featured .link-item:nth-child(n + 2) .link-card--featured {
    min-height: 8.3rem;
    grid-template-columns: 5.5rem minmax(0, 1fr) 1.25rem;
  }

  .link-group--featured .link-item:nth-child(n + 2) .link-media {
    width: 5.5rem;
  }

  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (min-width: 80rem) {
  .link-group--featured .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-group--featured .link-item:first-child {
    grid-column: 1 / -1;
  }

  .link-group--featured .link-item:first-child .link-card--featured {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) 1.5rem;
  }

  .link-group--featured .link-item:first-child .link-media {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 64rem) and (min-height: 46rem) {
  .profile {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 23.4375rem) {
  .link-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 0;
  }
}

@media (max-width: 30rem) {
  .section-filters {
    margin-right: 0;
  }

  .link-card {
    grid-template-columns: min(4.5rem, 22vw) minmax(0, 1fr) min(1.5rem, 8vw);
    gap: min(0.75rem, 4vw);
    padding-inline: min(0.95rem, 4vw);
  }

  .link-media {
    width: min(4.5rem, 22vw);
  }

  .link-card--featured {
    grid-template-columns: min(5.5rem, 25vw) minmax(0, 1fr) min(1.5rem, 8vw);
  }

  .link-card--featured .link-media {
    width: min(5.5rem, 25vw);
  }

  .link-card--no-media,
  .link-card--featured.link-card--no-media {
    grid-template-columns: minmax(0, 1fr) min(1.5rem, 8vw);
  }

  .link-title,
  .link-description,
  .link-domain,
  .link-cta {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-frame,
  .portrait-sticker,
  .bio-sparkle,
  .spark,
  .share-button,
  .link-share-button {
    transform: none;
  }
}
