:root {
  color-scheme: light dark;
  --bg: #f3f5f4;
  --surface: #fcfdfb;
  --text: #142017;
  --muted: #536057;
  --line: #ccd4ce;
  --accent: #b7ed52;
  --primary-text: #17210b;
  --focus: #426c08;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071120; --surface: #0f1b2b; --text: #f3f6ef;
    --muted: #a7b2bf; --line: #2d3b4b; --focus: #b7ed52;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #071120; --surface: #0f1b2b; --text: #f3f6ef;
  --muted: #a7b2bf; --line: #2d3b4b; --focus: #b7ed52;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px 16px; background: var(--surface); border-radius: 16px; transform: translateY(-150%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }
.page { width: min(100% - 48px, 656px); margin: 0 auto; padding: 32px 0 24px; min-height: 100dvh; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.brand-label { font-size: 12px; font-weight: 750; letter-spacing: .16em; }
.theme-toggle { border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; border-radius: 16px; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.intro { padding: 38px 0 32px; text-align: center; }
.avatar { display: block; width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px; border: 1px solid var(--line); }
h1 { margin: 0; font-size: clamp(38px, 7vw, 56px); font-weight: 760; line-height: 1.06; letter-spacing: -.055em; }
h1 span { color: var(--muted); }
.intro p { margin: 19px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
nav { display: grid; gap: 12px; scroll-margin-top: 24px; }
.channel { display: grid; grid-template-columns: 1fr auto 24px; gap: 16px; align-items: center; min-height: 95px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; text-decoration: none; background: var(--surface); }
.channel-copy { display: grid; gap: 5px; }
.channel strong { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.channel-copy > span { font-size: 13px; color: var(--muted); }
.channel-handle { color: var(--muted); font-size: 12px; }
.arrow { justify-self: end; font-size: 25px; }
.channel-primary { background: var(--accent); border-color: var(--accent); color: var(--primary-text); }
.channel-primary .channel-copy > span, .channel-primary .channel-handle { color: #3b501a; }
.channel:hover { border-color: var(--text); }
.channel-primary:hover { border-color: var(--primary-text); }
.channel:active { transform: translateY(1px); }
.contact { margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.contact h2 { font-size: 17px; margin: 0 0 5px; font-weight: 700; letter-spacing: -.02em; }
.contact p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.contact a { font-size: 14px; text-underline-offset: 5px; padding: 12px 0; white-space: nowrap; }
.contact a span { margin-left: 8px; }
footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; padding-top: 22px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) { .channel, .theme-toggle { transition: transform .15s ease, border-color .15s ease; } .channel:hover { transform: translateY(-2px); } }
@media (max-width: 520px) {
  .page { width: calc(100% - 40px); padding-top: 18px; }
  .brand-label { font-size: 10px; letter-spacing: .12em; }
  .theme-toggle { font-size: 11px; padding: 10px 12px; }
  .intro { padding: 28px 0; }
  .avatar { width: 80px; height: 80px; margin-bottom: 20px; }
  .intro p { font-size: 14px; margin-top: 16px; }
  .channel { padding: 17px 20px; min-height: 86px; grid-template-columns: 1fr 24px; gap: 8px; }
  .channel strong { font-size: 19px; }
  .channel-handle { display: none; }
  .contact { margin-top: 24px; padding: 20px 0; display: block; }
  .contact a { display: inline-block; margin-top: 6px; }
  footer { font-size: 10px; padding-top: 18px; }
}
@media (max-width: 340px) { .page { width: calc(100% - 32px); } h1 { font-size: 35px; } footer { flex-direction: column; gap: 3px; } }
