:root {
  color-scheme: light;
  --ink: #28324f;
  --soft-ink: #66708f;
  --paper: #fffaf4;
  --peach: #ffd8c8;
  --pink: #ff8db7;
  --mint: #a7e8c7;
  --sky: #9ddcf7;
  --sun: #ffe178;
  --violet: #b9a7ff;
  --line: rgba(40, 50, 79, 0.14);
  --shadow: 0 20px 55px rgba(84, 69, 116, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 225, 120, 0.42), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(157, 220, 247, 0.46), transparent 22rem),
    linear-gradient(180deg, #fff7fb 0%, #fffaf4 46%, #eefdf6 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
}

.nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-hero,
.family-feature,
.sections,
.page-hero,
.page-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.profile-hero {
  min-height: 72vh;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 34px;
}

.profile-copy {
  max-width: 690px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 8px;
  color: #db4c82;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.intro,
.page-lede {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-button,
.card-link,
.game-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.hero-button {
  width: fit-content;
  padding: 13px 22px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.hero-button.soft {
  background: #fff;
  color: var(--ink);
}

.main-portrait {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.main-portrait img,
.family-feature img,
.card-photo,
.page-photo {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.main-portrait img {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.family-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: 22px;
  margin-top: 6px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.family-feature h2,
.card-body h2,
.page-hero h1 {
  margin: 0;
}

.family-feature p,
.card-body p:not(.card-kicker),
.feature-list p,
.memory-note p {
  color: var(--soft-ink);
  line-height: 1.55;
}

.family-feature img {
  aspect-ratio: 4 / 3;
  object-position: center 28%;
}

.sections {
  padding: 44px 0 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  min-height: 285px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.arcade-card {
  grid-column: 1 / -1;
}

.card-photo {
  height: 100%;
  min-height: 285px;
  border-radius: 0;
  object-position: center 26%;
}

.cover {
  min-height: 260px;
  background-image: url("images/scarlett-section-covers.png");
  background-size: 500% 100%;
  background-repeat: no-repeat;
}

.cover-paintings {
  background-position: 0% 50%;
}

.cover-crafts {
  background-position: 25% 50%;
}

.cover-hobbies {
  background-position: 50% 50%;
}

.cover-friends {
  background-position: 75% 50%;
}

.cover-arcades {
  background-position: 100% 50%;
}

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1;
}

.card-body p:not(.card-kicker) {
  margin: 14px 0 20px;
}

.quiet {
  width: fit-content;
  padding: 10px 16px;
  background: #f3f1ff;
  color: #6255ab;
}

.game-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-link {
  min-height: 78px;
  padding: 13px 14px;
  flex-direction: column;
  gap: 4px;
  border: 2px solid rgba(40, 50, 79, 0.12);
  background: linear-gradient(135deg, var(--sun), var(--peach));
  color: var(--ink);
}

.game-link:nth-child(2) {
  background: linear-gradient(135deg, var(--mint), var(--sky));
}

.game-link span {
  font-size: 1.18rem;
}

.game-link small {
  color: rgba(40, 50, 79, 0.74);
  font-weight: 800;
}

.page-hero {
  padding: 48px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 400px);
  align-items: center;
  gap: 28px;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.page-photo {
  aspect-ratio: 4 / 5;
  object-position: center 28%;
  box-shadow: var(--shadow);
}

.page-cover-art {
  min-height: 420px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background-size: 500% 100%;
}

.page-grid {
  padding: 20px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature-list,
.memory-note,
.mini-gallery {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.feature-list ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.feature-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--soft-ink);
  font-weight: 800;
}

.mini-gallery {
  grid-column: 1 / -1;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 860px) {
  .profile-hero,
  .family-feature,
  .sections,
  .section-card,
  .game-links,
  .page-hero,
  .page-grid,
  .mini-gallery-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: 0;
    padding-top: 36px;
  }

  .main-portrait {
    transform: none;
  }

  .card-photo,
  .cover {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.9rem);
  }

  .card-body,
  .feature-list,
  .memory-note,
  .mini-gallery {
    padding: 22px;
  }
}
