:root {
  color-scheme: light;
  --bg: #fff8fa; --surface: #fff; --hero: #f8e2eb; --art: #efbfd1;
  --text: #301c2b; --muted: #634857; --accent: #913359;
  --button: #8e3156; --on-button: #fff; --line: #ebd3df; --shadow: #49223724;
  --heading: "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e151d; --surface: #2b1d29; --hero: #382237; --art: #64354d;
  --text: #fff2f8; --muted: #e5c7d6; --accent: #ffacd0;
  --button: #f3a3c6; --on-button: #35172a; --line: #684053; --shadow: #0006;
}
:root[data-theme="mono"] {
  --bg: #f4f4f4; --surface: #fff; --hero: #e8e8e8; --art: #ccc;
  --text: #161616; --muted: #444; --accent: #262626;
  --button: #171717; --on-button: #fff; --line: #bbb; --shadow: #0002;
}
[data-theme="mono"] img { filter: grayscale(1); }
* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; padding-top: 73px; background: var(--bg); color: var(--text); font: 600 1rem/1.65 "Nunito", system-ui, sans-serif; }
h1,h2,h3,.brand,.hello { font-family: var(--heading); line-height: 1.18; }
h1,h2,h3,p { margin: 0; }
h2 { font-size: clamp(1.65rem,4vw,2.35rem); font-weight: 800; }
a { color: var(--accent); }
button,summary { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1110px, calc(100% - 40px)); margin-inline: auto; }
.header { position: fixed; z-index: 5; inset: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar,.brand,.controls { display: flex; align-items: center; }
.bar { min-height: 72px; justify-content: space-between; gap: 10px; }
.brand { gap: 10px; font-size: clamp(1rem,4vw,1.27rem); font-weight: 900; text-decoration: none; color: var(--text); }
.brand img { object-fit: contain; border-radius: 13px; background: var(--hero); }
.controls { gap: 8px; }
details { position: relative; }
summary { display: grid; place-items: center; list-style: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--hero); color: var(--text); cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 21px; height: 21px; }
details[open] summary { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.popover { position: absolute; top: calc(100% + 13px); right: 0; width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 10px 24px var(--shadow); }
.popover a,.popover button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: start; text-decoration: none; cursor: pointer; }
.popover :is(a,button):hover,.popover [aria-current],.popover [aria-pressed="true"] { background: var(--hero); }
.popover [aria-current],.popover [aria-pressed="true"] { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
main { padding-block: 34px 58px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 22px; padding: clamp(28px,6vw,74px); min-height: 490px; border: 1px solid var(--line); border-radius: 34px; background: var(--hero); }
.hello { color: var(--accent); font-weight: 800; font-size: 1.18rem; margin-bottom: 9px; }
h1 { font-weight: 900; font-size: clamp(2.65rem,7vw,5.7rem); letter-spacing: -.055em; }
.role { margin-top: 16px; font-weight: 800; font-size: clamp(1.1rem,2.4vw,1.55rem); }
.intro,.work p,.channel p { color: var(--muted); }
.intro { max-width: 38ch; margin-top: 9px; font-size: 1.06rem; }
.pill { display: inline-flex; align-items: center; gap: .65rem; margin-top: 23px; padding: 11px 18px; border-radius: 30px; background: var(--button); color: var(--on-button); font-weight: 800; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: transform 160ms ease, box-shadow 160ms ease; }
  .pill:hover { transform: translateY(-3px); }
}
.pill:is(:hover,:focus-visible) { box-shadow: 0 7px 16px var(--shadow); }
.portrait { position: relative; display: grid; place-items: end center; isolation: isolate; }
.portrait::before { content: ""; position: absolute; z-index: -1; inset: 8% 0 2%; border-radius: 49% 49% 41% 41%; background: var(--art); }
.portrait img { width: min(85%, 305px); height: auto; }
.spark { position: absolute; color: var(--accent); line-height: 1; }
.one { top: 13%; right: 0; font-size: 2rem; }
.two { bottom: 15%; left: 0; font-size: 1.65rem; }
.languages,.work-row,.channel { margin-top: 48px; }
.languages ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.languages li { display: grid; align-content: start; gap: 13px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.languages li img { width: 100%; height: clamp(82px, 12vw, 135px); object-fit: contain; }
.languages li { text-align: center; }
.languages li p { margin-top: 5px; color: var(--muted); }
.work-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, 23%); align-items: center; gap: 24px; padding: clamp(23px,5vw,43px); border: 1px solid var(--line); border-radius: 25px; background: var(--surface); }
.work p { max-width: 70ch; margin-top: 12px; }
.work img { width: 100%; height: auto; max-height: 225px; object-fit: contain; }
.channel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(76px, 25%); align-items: center; gap: 20px; padding: 25px clamp(23px,5vw,55px); border: 1px solid var(--line); border-radius: 25px; background: var(--hero); }
.channel h2 { margin-bottom: 8px; }
.channel img { width: 100%; max-width: 205px; height: auto; justify-self: start; }
.channel > div { align-self: center; }
footer { border-top: 1px solid var(--line); text-align: center; padding: 25px 0; background: var(--surface); color: var(--muted); font-size: .92rem; }
footer p+p { margin-top: 4px; }
@media (max-width: 700px) {
  .work-row { grid-template-columns: 1fr; }
  .languages ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .portrait { width: min(74%, 275px); justify-self: center; }
  .languages,.work-row,.channel { margin-top: 34px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 28px); }
  main { padding-top: 20px; }
  .hero { padding: 24px; border-radius: 24px; }
  .languages ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work { gap: 16px; grid-template-columns: minmax(0, 1fr) 82px; }
  .channel { gap: 9px; padding-inline: 13px; }
  .channel .pill { padding-inline: 12px; }
}
