@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  line-height: 1.6;
  color: var(--profile-text, #292721);
  background: var(--profile-bg, #fbf5ef);
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 8px 16px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #197a7a;
  outline-offset: 4px;
}
.theme-coral {
  --profile-bg: #f9e7df;
  --profile-text: #482b2a;
  --profile-card: #fff8f3;
  --profile-feature: #8a3432;
  --profile-feature-text: #fff9f5;
}
.theme-ocean {
  --profile-bg: #dfeeed;
  --profile-text: #173e40;
  --profile-card: #f4fbf9;
  --profile-feature: #205b5e;
  --profile-feature-text: #fff;
}
.theme-orchid {
  --profile-bg: #ede5f3;
  --profile-text: #483254;
  --profile-card: #fbf7ff;
  --profile-feature: #6d457b;
  --profile-feature-text: #fff;
}
.theme-forest {
  --profile-bg: #e6ecdd;
  --profile-text: #34452d;
  --profile-card: #f8faf4;
  --profile-feature: #405b37;
  --profile-feature-text: #fff;
}
.theme-ink {
  --profile-bg: #262b35;
  --profile-text: #f7f2e8;
  --profile-card: #363d49;
  --profile-feature: #e5eeae;
  --profile-feature-text: #293120;
}
.theme-sand {
  --profile-bg: #eee6d8;
  --profile-text: #473c2d;
  --profile-card: #faf5ec;
  --profile-feature: #69543b;
  --profile-feature-text: #fff;
}
.profile-page {
  max-width: 680px;
  margin: auto;
  padding: 56px 20px 32px;
}
.identity {
  text-align: center;
  margin-bottom: 32px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.initial {
  display: grid;
  place-items: center;
  margin: auto;
  background: var(--profile-card);
  font-size: 36px;
  font-weight: 700;
}
.identity h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 14px 0 8px;
}
.identity p {
  max-width: 460px;
  margin: 0 auto 20px;
  white-space: pre-line;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.socials a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.blocks,
.preview-blocks {
  display: grid;
  gap: 14px;
}
.layout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-block {
  background: var(--profile-card);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.block-copy {
  padding: 18px 20px;
}
.block-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  min-height: 30px;
  overflow-wrap: anywhere;
}
.block-link:after {
  content: "";
}
.profile-block h2 {
  font-size: 17px;
  margin: 0;
}
.profile-block p {
  font-size: 14px;
  margin: 8px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.profile-block.featured {
  background: var(--profile-feature);
  color: var(--profile-feature-text);
  grid-column: 1/-1;
}
.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.section-title {
  grid-column: 1/-1;
  font-size: 18px;
  margin: 20px 0 0;
}
.gallery-block {
  grid-column: 1/-1;
}
.gallery-block h2 {
  font-size: 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gallery button {
  padding: 0;
  border: 0;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.embed {
  padding: 20px;
  grid-column: 1/-1;
}
.embed h2 {
  margin-bottom: 12px;
}
.embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.small {
  font-size: 12px !important;
}
.price {
  font-weight: 700;
}
.profile-footer {
  text-align: center;
  margin-top: 48px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.brand {
  text-decoration: none;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand span {
  color: var(--user-accent, #b73b39);
}
.footer-small {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.report-button {
  border: 0;
  font-size: 12px;
  padding: 0;
}
.demo-banner {
  background: #fff9f2;
  color: #38322d;
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid #ded5c9;
}
.demo-banner a {
  font-weight: 700;
  margin-left: 20px;
}
dialog {
  max-width: min(900px, 95vw);
  max-height: 95vh;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  color: #292721;
  background: #fffaf3;
}
dialog::backdrop {
  background: #171d24b3;
}
#gallery-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 12px auto;
}
.gallery-controls {
  display: flex;
  justify-content: space-between;
}
#report-form {
  display: grid;
  gap: 16px;
  min-width: min(450px, 75vw);
}
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #908478;
}
#report-status:empty {
  display: none;
}
@media (max-width: 480px) {
  .profile-page {
    padding-top: 32px;
  }
  .block-copy {
    padding: 14px;
  }
  .identity h1 {
    font-size: 26px;
  }
  .demo-banner a {
    display: block;
    margin: 4px 0 0;
  }
  .profile-block p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.social-label,
.media-provider,
.platform-picker > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  padding: 0;
  box-sizing: content-box;
  background: transparent;
  border-radius: 0;
  vertical-align: middle;
}
.generic-link {
  display: inline-block;
  width: 20px;
}
.platform-picker {
  display: grid;
  gap: 8px;
}
.platform-picker select {
  min-height: 44px;
  padding: 8px;
  font: inherit;
}
.media-player {
  margin-top: 12px;
  width: 100%;
}
.media-load {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 160px;
  aspect-ratio: 16/9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  background: #202322;
  color: #fff;
  border: 1px solid #585b56;
  border-radius: 8px;
  padding: 16px;
  font: inherit;
  cursor: pointer;
}
.media-provider {
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.media-play-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #b6bbb5;
  border-radius: 50%;
  font-size: 18px;
}
.media-load > span:last-child {
  position: relative;
  z-index: 1;
  font-size: 14px;
}
.media-player iframe {
  height: auto;
  display: block;
  border: 0;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}
.media-player.provider-spotify iframe {
  aspect-ratio: auto;
  height: 352px;
}
.media-fallback {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.media-static {
  cursor: inherit;
}
.media-unavailable {
  font-size: 13px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.embed {
  grid-column: 1/-1;
}

.media-player iframe {
  height: auto;
  min-height: 180px;
}
.profile-block {
  position: relative;
}
.profile-block .block-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.profile-block:has(.block-link):hover {
  outline: 1px solid currentColor;
}
.profile-block:has(.block-link:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.block-link .brand-icon {
  margin-inline-end: 8px;
}
.theme-ink .brand-icon[data-brand="x"],
.theme-ink .brand-icon[data-brand="github"],
.theme-ink .brand-icon[data-brand="snapchat"],
.theme-ink .brand-icon[data-brand="tiktok"] {
  filter: invert(1);
}

/* A clear action remains visible before hover, on every profile theme. */
.profile-block.actionable {
  border: 1px solid currentColor;
}
.profile-block.simple-link {
  grid-column: 1 / -1;
}
.profile-block.rich-link:has(.card-action) {
  grid-column: 1 / -1;
}
.block-link.link-row {
  min-height: 48px;
  justify-content: flex-start;
  gap: 12px;
}
.link-title {
  flex: 1;
  min-width: 0;
}
.link-title small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.link-chevron {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.block-link .brand-icon {
  margin-inline-end: 0;
}
.block-link.card-action {
  display: flex;
  width: 100%;
  min-height: 48px;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--profile-feature);
  color: var(--profile-feature-text);
  justify-content: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.card-action > span {
  flex: 1;
  min-width: 0;
}
.card-action .brand-icon {
  filter: grayscale(1) brightness(0) invert(1);
}
.theme-ink .card-action .brand-icon {
  filter: grayscale(1) brightness(0);
}
.profile-block.actionable:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.profile-block.actionable:active {
  box-shadow: inset 0 0 0 2px currentColor;
}
.profile-block.actionable:active .card-action {
  opacity: 0.85;
}
.profile-block:has(.block-link:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.gallery img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* Readable, unmistakable actions on phones. */
.socials {
  gap: 8px;
}
.socials a {
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: var(--profile-card);
}
.block-link.link-row,
.block-link.card-action {
  min-height: 52px;
  font-size: 16px;
  line-height: 1.45;
}
.card-action .brand-icon,
.theme-ink .card-action .brand-icon {
  filter: none;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}
.theme-ink .brand-icon[data-brand="snapchat"] {
  filter: none;
}
.profile-block.featured {
  border: 2px solid var(--profile-feature);
  box-shadow: inset 4px 0 var(--profile-feature);
}
@media (max-width: 700px) {
  .profile-page {
    padding: 28px 16px 32px;
  }
  .identity {
    margin-bottom: 24px;
  }
  .avatar {
    width: 80px;
    height: 80px;
  }
  .identity h1 {
    font-size: 28px;
    margin-top: 12px;
  }
  .block-copy {
    padding: 16px;
  }
}

/* Image attributes reserve intrinsic geometry; CSS controls rendered height. */
.project-image, .gallery img { height: auto; }
.profile-page, .preview { container-type: inline-size; }
@container (max-width: 479px) {
  .blocks.layout-grid, .preview-blocks.layout-grid { grid-template-columns: minmax(0, 1fr); }
}
.block-copy > .project-image { margin-top: .75rem; border-radius: .375rem; }
