@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --ink: #f3edff;
  --muted: #b7accb;
  --paper: #0c0914;
  --green: #c9a7ff;
  --orange: #e0b5ff;
  --line: rgba(209, 187, 241, .2);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background:
    radial-gradient(ellipse at 75% 35%, rgba(73, 37, 112, .28), transparent 48%),
    radial-gradient(ellipse at 12% 90%, rgba(46, 28, 76, .25), transparent 45%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.binary-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  color: #b88aff;
  opacity: .24;
  pointer-events: none;
}
.moon {
  position: absolute;
  z-index: 0;
  top: 13%;
  right: 12%;
  width: clamp(88px, 13vw, 174px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 31%, #f4eaff, #d6b7ff 46%, #9a65d1 78%);
  box-shadow: 0 0 30px rgba(192, 137, 255, .34), 0 0 90px rgba(148, 77, 222, .2);
}
.moon::after {
  position: absolute;
  top: -8%;
  left: 30%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #100b1b;
  content: "";
}
.binary-stream {
  position: absolute;
  z-index: 1;
  top: 0;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: .45em;
  line-height: 1.8;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-shadow: 0 0 8px rgba(184, 138, 255, .65);
}
.stream-one { left: 7%; }
.stream-two { left: 19%; }
.stream-three { left: 33%; }
.stream-four { left: 47%; }
.stream-five { left: 62%; }
.stream-six { left: 75%; }
.stream-seven { left: 88%; }
.stream-eight { left: 96%; }

.portfolio {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  height: 100vh;
  min-height: 520px;
  margin: 0 auto;
  padding: 0 7.2%;
  display: flex;
  flex-direction: column;
}

.tab-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.navigation { height: 68px; flex: 0 0 68px; display: flex; align-items: center; gap: clamp(22px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.navigation label { position: relative; height: 100%; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; font-size: 13px; transition: color .2s ease; }
.navigation label span { color: #a7a69b; font-size: 9px; letter-spacing: .08em; }
.navigation label::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--orange); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
#home:checked ~ .navigation label[for="home"],
#personal:checked ~ .navigation label[for="personal"],
#achievements:checked ~ .navigation label[for="achievements"],
#parents:checked ~ .navigation label[for="parents"] { color: var(--ink); }
#home:checked ~ .navigation label[for="home"]::after,
#personal:checked ~ .navigation label[for="personal"]::after,
#achievements:checked ~ .navigation label[for="achievements"]::after,
#parents:checked ~ .navigation label[for="parents"]::after { transform: scaleX(1); }
.navigation label:hover { color: var(--ink); }
#home:focus-visible ~ .navigation label[for="home"],
#personal:focus-visible ~ .navigation label[for="personal"],
#achievements:focus-visible ~ .navigation label[for="achievements"],
#parents:focus-visible ~ .navigation label[for="parents"] { outline: 2px solid var(--orange); outline-offset: -6px; }

.page-stage { position: relative; flex: 1; min-height: 0; }
.page { position: absolute; inset: 0; display: none; animation: appear .35s ease both; }
#home:checked ~ .page-stage .home-page,
#personal:checked ~ .page-stage .personal-page,
#achievements:checked ~ .page-stage .achievements-page,
#parents:checked ~ .page-stage .parents-page { display: flex; }
.home-page { align-items: center; justify-content: space-between; }
.hero-copy { z-index: 1; width: 52%; padding-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.eyebrow-line { width: 26px; height: 1px; background: var(--orange); }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 6vw, 82px); line-height: 1.06; }
h1 em, h2 em { color: var(--orange); font-weight: 500; }
.intro { max-width: 395px; margin: 24px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 13px; color: var(--green); cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.text-link span { color: var(--orange); font-size: 17px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.hero-art { position: relative; width: 42%; height: min(60vh, 470px); display: grid; place-items: center; }
.sun { position: absolute; top: 4%; right: 3%; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(139, 91, 187, .26); }
.portrait-card { position: relative; width: 69%; height: 84%; margin: 14px 0 0 -12px; overflow: hidden; background: #291d39; box-shadow: 15px 15px 0 #633993; }
.portrait-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.art-star { position: absolute; color: var(--orange); }
.star-one { top: 7%; left: 0; font-size: 30px; }
.star-two { right: 0; bottom: 14%; font-size: 22px; }
.art-note { position: absolute; right: -4%; bottom: 3%; color: var(--muted); font-family: "Playfair Display", serif; font-size: 13px; font-style: italic; line-height: 1.55; }
.home-bottom { position: absolute; right: 0; bottom: 20px; left: 0; display: flex; justify-content: space-between; color: #92958b; font-size: 8px; letter-spacing: .14em; }

.detail-page { align-items: center; justify-content: space-between; gap: 6%; }
.detail-heading { width: 36%; }
.detail-heading h2, .family-copy h2 { font-size: clamp(48px, 6vw, 76px); line-height: 1.08; }
.detail-intro { max-width: 345px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.personal-page { gap: 4%; }
.personal-photo { width: 32%; height: min(58vh, 430px); overflow: hidden; border: 1px solid rgba(209, 187, 241, .35); box-shadow: 14px 14px 0 #633993; }
.personal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.personal-content { width: 64%; display: flex; flex-direction: column; gap: 22px; }
.personal-content .detail-heading { width: 100%; }
.personal-content .detail-heading h2 { font-size: clamp(40px, 5vw, 64px); }
.personal-content .detail-intro { margin-top: 12px; }
.personal-details { display: grid; gap: 12px; }
.personal-detail-link {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(27, 19, 39, .82);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.personal-detail-link:hover { border-color: var(--orange); background: rgba(60, 38, 82, .9); }
.personal-detail-link:focus-visible, .subpage-back:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.detail-link-arrow { color: var(--orange); font-family: "DM Sans", sans-serif; font-size: 20px; transition: transform .2s ease; }
.personal-detail-link:hover .detail-link-arrow { transform: translate(3px, -3px); }

.subpage-shell {
  position: relative;
  z-index: 1;
  width: min(1050px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 7vh 7.2%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.subpage-back { align-self: flex-start; margin-bottom: 28px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.subpage-back:hover { color: var(--orange); }
.subpage-panel { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); background: rgba(19, 13, 29, .92); box-shadow: 0 18px 70px rgba(0, 0, 0, .22); }
.subpage-panel h1 { font-size: clamp(38px, 6vw, 64px); }
.subpage-panel .eyebrow { margin-bottom: 14px; }
.subpage-description { margin: 12px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.subpage-personal-layout { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; align-items: center; gap: clamp(24px, 5vw, 52px); }
.subpage-photo { width: 100%; max-height: 390px; aspect-ratio: .78; object-fit: cover; object-position: center 52%; border: 1px solid var(--line); box-shadow: 10px 10px 0 #633993; }
.subpage-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.subpage-facts div { padding: 15px 0; border-top: 1px solid var(--line); }
.subpage-facts dt { margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.subpage-facts dd { margin: 0; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.school-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.school-facts div { padding: 14px 0; }
.school-facts dd { color: var(--muted); }
.education-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.education-entry { min-width: 0; padding: 17px; border: 1px solid var(--line); background: rgba(27, 19, 39, .62); }
.education-entry h2 { margin: 0 0 12px; color: var(--green); font-family: "Playfair Display", Georgia, serif; font-size: 19px; }
.education-entry p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.education-entry .education-school { color: var(--ink); font-size: 13px; font-weight: 700; }
.education-entry strong { color: var(--ink); }
.education-entry .education-status { color: var(--orange); font-weight: 700; }
@media (max-width: 600px) {
  .subpage-shell { justify-content: flex-start; padding: 3vh 4%; }
  .subpage-back { margin-bottom: 12px; }
  .subpage-panel { padding: 16px; }
  .subpage-panel h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .subpage-panel .eyebrow { margin-bottom: 8px; }
  .subpage-description { margin: 8px 0 12px; font-size: 11px; }
  .education-list { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .education-entry { padding: 8px 10px; }
  .education-entry h2 { margin-bottom: 6px; font-size: 16px; }
  .education-entry p { margin-top: 4px; font-size: 10px; line-height: 1.35; }
  .education-entry .education-school { font-size: 11px; }
}

.personal-info-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 14px 5% 16px;
  display: flex;
  flex-direction: column;
}
.personal-info-back { align-self: flex-start; margin-bottom: 10px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.personal-info-back:hover { color: var(--orange); }
.personal-info-back:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.personal-dashboard {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr);
  grid-template-rows: minmax(0, 1fr) minmax(130px, .52fr);
  gap: 12px;
}
.profile-panel, .quick-facts-panel, .hobbies-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(209, 187, 241, .24);
  border-radius: 17px;
  background: rgba(19, 13, 29, .82);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .17);
}
.profile-panel { position: relative; display: flex; align-items: flex-start; padding: 20px; }
.profile-panel::after { position: absolute; inset: 0 0 42%; background: linear-gradient(rgba(12, 9, 20, .68), transparent); content: ""; pointer-events: none; }
.dashboard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.profile-copy { position: relative; z-index: 1; }
.profile-copy .eyebrow { margin-bottom: 10px; font-size: 8px; }
.profile-copy h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: .96; }
.profile-copy > p:last-child { margin: 10px 0 0; color: #e6d9f5; font-size: 11px; }
.quick-facts-panel { padding: clamp(15px, 2.4vw, 26px); }
.quick-facts-panel h2, .hobbies-panel h2 { margin: 0; font-size: clamp(18px, 2.2vw, 25px); }
.quick-facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.quick-facts > div { min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.quick-facts > .fact-wide { grid-column: 1 / -1; }
.quick-facts dt { margin-bottom: 4px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quick-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.hobbies-panel { grid-column: 1 / -1; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.hobbies-panel h2 { font-size: 17px; }
.hobby-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hobby-card { min-width: 0; padding: 10px 13px; overflow: hidden; border: 1px solid rgba(151, 108, 210, .32); border-radius: 13px; background: linear-gradient(135deg, rgba(32, 21, 49, .96), rgba(32, 33, 75, .88)); }
.hobby-icon { color: #9cecff; font-size: 18px; line-height: 1; }
.hobby-card h3 { margin: 5px 0 3px; font-size: 13px; }
.hobby-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.milestone h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-weight: 500; line-height: 1.35; }
.timeline { width: 57%; display: grid; gap: 0; }
.milestone { display: grid; grid-template-columns: 52px 1fr; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.milestone:first-child { border-top: 1px solid var(--line); }
.milestone-year { color: var(--orange); font-family: "Playfair Display", serif; font-size: 21px; }
.milestone .card-label { margin: 0 0 7px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.milestone h3 { font-size: 19px; }
.milestone div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.family-art { position: relative; width: 43%; height: min(57vh, 430px); display: grid; place-items: center; }
.family-sun { position: absolute; width: 79%; aspect-ratio: 1; border-radius: 50%; background: rgba(139, 91, 187, .26); }
.family-card { position: relative; width: 78%; height: 75%; overflow: hidden; background: #21182e; box-shadow: -14px 14px 0 #633993; }
.family-card::before, .family-card::after { position: absolute; bottom: -24%; width: 90%; height: 55%; border-radius: 50% 50% 0 0; content: ""; }
.family-card::before { left: -30%; background: #483456; }
.family-card::after { right: -28%; background: #342741; }
.family-person { position: absolute; z-index: 1; bottom: 0; width: 30%; height: 65%; border-radius: 48% 48% 0 0; background: #76508f; }
.family-person::before { position: absolute; top: -34%; left: 50%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: #b87959; content: ""; transform: translateX(-50%); }
.person-one { left: 10%; height: 52%; background: #a76f71; }
.person-two { left: 36%; height: 68%; background: #60427a; }
.person-two::before { background: #9d664c; }
.person-three { right: 8%; height: 56%; background: #79617f; }
.person-three::before { background: #d39a76; }
.family-heart { position: absolute; z-index: 2; top: 4%; right: 3%; color: var(--orange); font-size: 36px; }
.family-caption { position: absolute; z-index: 2; bottom: 8%; left: 5%; color: rgba(36,53,46,.7); font-size: 8px; font-weight: 700; letter-spacing: .15em; line-height: 1.6; }
.family-copy { width: 46%; }
.family-message { max-width: 440px; margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.family-signoff { margin-top: 23px; color: var(--green); font-family: "Playfair Display", serif; font-size: 17px; font-style: italic; }
.family-signoff span { color: var(--orange); }
.page-number { position: absolute; right: 0; bottom: 19px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.page-number span { color: #a6a69c; font-weight: 400; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

@media (max-width: 760px) {
  .portfolio { min-height: 500px; padding: 0 6%; }
  .navigation { height: 58px; flex-basis: 58px; justify-content: space-between; gap: 8px; }
  .navigation label { gap: 5px; font-size: 11px; }
  .navigation label span { display: none; }
  .home-page { align-items: center; }
  .hero-copy { width: 57%; padding-bottom: 18px; }
  h1 { font-size: clamp(42px, 8vw, 60px); }
  .hero-art { width: 39%; height: min(48vh, 340px); }
  .portrait-card { width: 83%; height: 80%; }
  .art-note { right: -8%; bottom: -1%; font-size: 11px; }
  .intro, .detail-intro, .family-message { font-size: 12px; }
  .detail-page { gap: 4%; }
  .detail-heading { width: 34%; }
  .personal-page { gap: 4%; }
  .personal-photo { width: 32%; height: min(52vh, 360px); }
  .personal-content { width: 64%; gap: 16px; }
  .personal-content .detail-heading { width: 100%; }
  .personal-details { gap: 9px; }
  .personal-detail-link { min-height: 52px; padding: 0 13px; font-size: 16px; }
  .timeline { width: 60%; }
  .family-art { width: 44%; }
  .family-copy { width: 48%; }
}

@media (max-width: 520px) {
  .portfolio { min-height: 480px; padding: 0 5%; }
  .navigation { height: 52px; flex-basis: 52px; }
  .navigation label { font-size: 10px; }
  .page { padding-bottom: 22px; }
  .home-page { align-items: flex-start; justify-content: center; flex-direction: column; }
  .hero-copy { width: 100%; padding: 0 0 10px; }
  .eyebrow { margin-bottom: 15px; font-size: 8px; }
  h1 { font-size: clamp(43px, 12vw, 59px); }
  .intro { max-width: 340px; margin: 14px 0; font-size: 11px; line-height: 1.65; }
  .hero-art { position: absolute; right: 0; bottom: 24px; width: 34%; height: 28vh; min-height: 130px; opacity: .9; }
  .portrait-card { width: 75%; height: 78%; margin: 0; box-shadow: 8px 8px 0 #e9c5a6; }
  .sun { width: 86%; }
  .star-one { top: 1%; font-size: 19px; }
  .star-two, .art-note { display: none; }
  .home-bottom { bottom: 12px; font-size: 7px; }
  .detail-page { justify-content: center; flex-direction: column; align-items: stretch; gap: 18px; }
  .detail-heading { width: 100%; }
  .detail-heading .eyebrow { margin-bottom: 10px; }
  .detail-heading h2, .family-copy h2 { font-size: clamp(40px, 10vw, 53px); }
  .detail-intro { margin-top: 10px; font-size: 11px; line-height: 1.6; }
  .personal-page { justify-content: center; gap: 12px; }
  .personal-photo { position: absolute; z-index: 0; top: 9%; right: 0; width: 31%; height: 25vh; min-height: 115px; max-height: 175px; box-shadow: 7px 7px 0 #633993; }
  .personal-content { z-index: 1; width: 100%; gap: 13px; }
  .personal-content .detail-heading { width: 100%; }
  .personal-content .detail-heading h2 { font-size: clamp(34px, 9vw, 48px); }
  .personal-content .detail-intro { max-width: 66%; margin-top: 9px; font-size: 10px; line-height: 1.5; }
  .personal-details { gap: 8px; }
  .personal-detail-link { min-height: 44px; padding: 0 11px; font-size: 14px; }
  .timeline { width: 100%; }
  .milestone { grid-template-columns: 35px 1fr; padding: 12px 0; }
  .milestone-year { font-size: 17px; }
  .milestone h3 { font-size: 16px; }
  .milestone div > p:last-child { font-size: 10px; }
  .family-art { position: absolute; top: 7%; right: 0; width: 39%; height: 26vh; min-height: 125px; opacity: .88; }
  .family-copy { z-index: 1; width: 100%; margin-top: 40%; }
  .family-copy .eyebrow { margin-bottom: 12px; }
  .family-message { max-width: 95%; margin-top: 13px; font-size: 11px; line-height: 1.7; }
  .family-signoff { margin-top: 14px; font-size: 15px; }
}

@media (max-height: 600px) and (min-width: 521px) {
  .portfolio { min-height: 0; }
  .navigation { height: 48px; flex-basis: 48px; }
  .hero-art { height: 52vh; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(42px, 5vw, 60px); }
  .intro { margin: 14px 0; }
  .detail-heading h2, .family-copy h2 { font-size: 52px; }
  .milestone { padding: 12px 0; }
  .family-art { height: 48vh; }
}

@media (max-width: 600px) {
  .personal-info-shell { padding: 9px 4% 10px; }
  .personal-info-back { margin-bottom: 6px; font-size: 9px; }
  .personal-dashboard { grid-template-columns: minmax(0, 1fr); grid-template-rows: 140px minmax(0, 1fr) minmax(126px, .62fr); gap: 8px; }
  .profile-panel { align-items: flex-start; padding: 10px 12px; }
  .profile-panel::after { inset: 0 0 30%; background: linear-gradient(180deg, rgba(12, 9, 20, .78), rgba(12, 9, 20, .22) 70%, transparent); }
  .dashboard-photo { right: 0; width: 100%; object-position: center 57%; }
  .profile-copy { width: auto; margin: 0; padding: 5px 8px 7px; border-radius: 8px; background: rgba(12, 9, 20, .58); }
  .profile-copy .eyebrow { margin-bottom: 4px; font-size: 7px; }
  .profile-copy h1 { font-size: 27px; }
  .profile-copy > p:last-child { display: block; margin-top: 4px; font-size: 9px; }
  .quick-facts-panel { padding: 10px 13px; }
  .quick-facts-panel h2 { font-size: 17px; }
  .quick-facts { margin-top: 4px; gap: 0 12px; }
  .quick-facts > div { padding: 5px 0; }
  .quick-facts dt { margin-bottom: 2px; font-size: 8px; }
  .quick-facts dd { font-size: 10px; line-height: 1.3; }
  .hobbies-panel { padding: 8px 10px; gap: 5px; }
  .hobbies-panel h2 { font-size: 14px; }
  .hobby-grid { gap: 7px; }
  .hobby-card { padding: 7px 9px; border-radius: 10px; }
  .hobby-icon { font-size: 15px; }
  .hobby-card h3 { margin: 3px 0 2px; font-size: 11px; }
  .hobby-card p { font-size: 9px; line-height: 1.35; }
}

@media (max-width: 600px) and (max-height: 540px) {
  .personal-dashboard { grid-template-rows: 90px minmax(0, 1fr) 120px; }
  .quick-facts-panel { padding-top: 7px; padding-bottom: 7px; }
  .quick-facts > div { padding: 3px 0; }
  .quick-facts dt { margin-bottom: 1px; font-size: 7px; }
  .quick-facts dd { font-size: 9px; line-height: 1.2; }
  .hobby-card { padding: 5px 8px; }
  .hobby-card p { font-size: 8px; }
}

@media (max-height: 540px) and (min-width: 601px) {
  .personal-info-shell { padding-top: 6px; padding-bottom: 7px; }
  .personal-info-back { margin-bottom: 4px; }
  .personal-dashboard { grid-template-rows: minmax(0, 1fr) minmax(100px, .42fr); gap: 7px; }
  .hobbies-panel { grid-row: 2; }
  .profile-panel { padding: 12px; }
  .quick-facts-panel { padding-top: 10px; padding-bottom: 10px; }
  .quick-facts > div { padding: 5px 0; }
  .hobbies-panel { padding-top: 7px; padding-bottom: 7px; }
}
