@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.mode-switch{display:inline-flex;align-items:center;gap:0;border:2px solid #201d25;background:white;white-space:nowrap}
.mode-switch button{border:0;background:transparent;color:#201d25;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;padding:9px 10px;cursor:pointer}
.mode-switch button[aria-pressed="true"]{background:#201d25;color:white}
.mode-switch button:focus-visible{outline:3px solid #ed2480;outline-offset:3px}
body.retro{background:#dff6fa;color:#18172a;font-family:'Courier New',monospace;font-weight:600}
body.retro header{background:#fff;border-bottom:4px solid #18172a}
body.retro .wordmark,body.retro .nav,body.retro h1,body.retro h2,body.retro h3,body.retro .eyebrow,body.retro .mode-switch{font-family:'Press Start 2P',monospace;line-height:1.5}
body.retro .wordmark{font-size:clamp(.65rem,1.4vw,.9rem)}
body.retro .nav{font-size:.65rem}
body.retro h1{font-size:clamp(2rem,5vw,4.5rem);line-height:1.35;letter-spacing:0}
body.retro h2{font-size:clamp(1.4rem,3vw,2.4rem);line-height:1.5;letter-spacing:0}
body.retro h3{font-size:clamp(.8rem,1.3vw,1rem);line-height:1.8;letter-spacing:0}
body.retro .intro p,body.retro .summary{font-size:1.05rem;line-height:1.7}
body.retro .portrait{background:#fff;border:4px solid #18172a;box-shadow:10px 10px #18172a}
body.retro .portrait .modern-logo,body.retro .portrait .speech-hover,body.retro .portrait .poke-image{display:none}
.portrait .retro-logo{display:none}body.retro .portrait .retro-logo{display:block;width:100%;height:auto;image-rendering:pixelated}
body.retro .row{background:#fff;border:3px solid #18172a;padding:20px;margin-bottom:20px;box-shadow:6px 6px #18172a}
body.retro .row img{image-rendering:pixelated}
body.retro .status{background:#ffe47a;border:2px solid #18172a;color:#18172a}
body.retro .contact{background:#ffd5e8;border:4px solid #18172a;padding:24px;box-shadow:8px 8px #18172a}
body.retro .contact-links a{border:3px solid #18172a;background:#fff;box-shadow:4px 4px #18172a;padding:10px;text-decoration:none}
body.retro .mode-switch{border-width:3px;box-shadow:3px 3px #18172a}
body.retro .mode-switch button[aria-pressed="true"]{background:#ed2480;color:#fff}
@media(max-width:700px){.mode-switch button{padding:7px;font-size:11px}body.retro .row{padding:12px}body.retro .nav{font-size:.55rem}body.retro h3{font-size:.75rem}}
body.retro .portrait.is-poked::after{content:'TEXT ME! +1 (425) 546-4427';position:absolute;bottom:8%;left:8%;right:8%;padding:12px;background:white;border:4px solid #18172a;box-shadow:4px 4px #18172a;font:700 clamp(.65rem,2vw,1rem)/1.6 'Courier New',monospace;color:#18172a}
@media(max-width:700px){.bar{flex-wrap:wrap}.mode-switch{margin-left:auto}body.retro .wordmark{max-width:100%}}
.header-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-controls .mode-switch{height:38px;box-sizing:border-box;margin:0}
.header-controls .mode-switch button{height:100%;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
@media(max-width:900px){.bar{flex-wrap:wrap;justify-content:space-between}.header-controls{margin-left:auto}}
@media(max-width:550px){.bar{gap:12px}.header-controls{width:100%;justify-content:flex-end}.header-controls .mode-switch{height:36px}}
/* Keep navigation and display preferences on separate, aligned rows. */
.bar{flex-wrap:wrap;column-gap:20px;row-gap:14px}
.header-controls{flex:0 0 100%;width:100%;margin:0;justify-content:flex-end;padding-top:12px;border-top:1px solid #ded9dc;gap:10px}
.header-controls .mode-switch{height:36px}
.header-controls .mode-switch button{padding-inline:12px}
body.retro .header-controls{border-top:2px solid #18172a}
@media(max-width:550px){.bar{gap:12px}.nav{margin-left:auto}.header-controls{justify-content:center;padding-top:10px}.header-controls .mode-switch{height:36px}}
.back-to-top-wrap{display:flex;justify-content:flex-end;margin:28px 0}
.back-to-top{display:inline-flex;align-items:center;gap:9px;padding:10px 15px;border:2px solid #201d25;color:#201d25;background:#fff;text-decoration:none;font-weight:700;box-shadow:4px 4px #201d25}
.back-to-top:hover{background:#fce3ef}.back-to-top:focus-visible{outline:3px solid #ed2480;outline-offset:4px}.back-to-top span:first-child{font-size:1.3rem;line-height:1}
body.retro .back-to-top{border-width:3px;box-shadow:4px 4px #18172a;font-family:'Courier New',monospace}
.contact-links a{display:inline-block;color:#201d25;text-decoration-line:underline;text-decoration-color:transparent;text-decoration-thickness:3px;text-underline-offset:5px;transition:color .16s ease,text-decoration-color .16s ease,background-color .16s ease,transform .16s ease,box-shadow .16s ease}
@media(hover:hover){.contact-links a:hover{color:#c61168;text-decoration-color:#ed2480}}
.contact-links a:focus-visible{outline:3px solid #ed2480;outline-offset:4px;text-decoration-color:#ed2480}
@media(hover:hover){body.retro .contact-links a:hover{background:#ffe47a;color:#18172a;text-decoration-color:transparent;transform:translate(-2px,-2px);box-shadow:6px 6px #18172a}}
body.retro .contact-links a:focus-visible{outline:3px solid #ed2480;outline-offset:4px;background:#ffe47a}
@media(prefers-reduced-motion:reduce){.contact-links a{transition:none}}
/* Brand and navigation form a left column; preferences sit at the upper right. */
.bar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:start;column-gap:24px;row-gap:8px}
.bar .wordmark{grid-column:1;grid-row:1;justify-self:start}
.bar .nav{grid-column:1;grid-row:2;margin:0;justify-self:start;align-items:center}
.bar .header-controls{grid-column:2;grid-row:1;align-self:start;justify-self:end;width:auto;margin:0;padding:0;border:0;gap:10px}
body.retro .header-controls{border:0}
@media(max-width:600px){.bar{grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:8px}.bar .header-controls{grid-column:2;grid-row:1 / span 2;flex-direction:column;align-items:stretch;gap:6px}.header-controls .mode-switch{height:32px}.header-controls .mode-switch button{padding-inline:7px;font-size:10px}.bar .nav{gap:12px}}
/* Keep Japanese navigation legible in Retro mode. */
html[lang="ja"] body.retro .wordmark{font-size:1rem;line-height:1.4}
html[lang="ja"] body.retro .nav{font-size:.875rem;line-height:1.5;flex-wrap:wrap;gap:8px 14px}
@media(max-width:600px){html[lang="ja"] body.retro .wordmark{font-size:.875rem}html[lang="ja"] body.retro .nav{font-size:.75rem;gap:6px 10px}}
