:root { --paper: #f6f8fd; --ink: #20232c; --muted: #626779; --blue: #2447f0; --lime: #eaf171; --line: #d8dce8; --serif: 'Instrument Serif', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif; --mono: 'IBM Plex Mono', monospace; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 20; background: white; padding: 10px 20px; }
.skip-link:focus { top: 20px; }
.site-header { max-width: 1360px; margin: auto; padding: 30px 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 500 .8rem var(--mono); letter-spacing: 1.4px; }
.wordmark-symbol { font: 3rem/.8 var(--serif); letter-spacing: -3px; color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 31px; font-size: .875rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.site-header .nav-contact { border: 1px solid var(--ink); border-radius: 50px; padding: 9px 21px; }
.section-wrap { max-width: 1360px; margin: auto; padding: 90px 64px; }
.eyebrow { font: 400 .75rem/1.5 var(--mono); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 20px; }
.hero { display: grid; grid-template-columns: 1.45fr .9fr; align-items: center; gap: 70px; padding-top: 70px; padding-bottom: 73px; }
.small-cross { color: var(--blue); font: 1.3rem var(--sans); vertical-align: middle; margin-right: 7px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font: 400 clamp(3.25rem, 5.9vw, 5.7rem)/1.03 var(--serif); letter-spacing: -1.5px; margin: 0 0 26px; }
h1 em, h2 em { color: var(--blue); font-weight: 400; }
.hero-description { color: var(--muted); max-width: 535px; margin: 0; font-size: 1.05rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 23px; border-radius: 4px; text-decoration: none; border: 0; font-size: .9rem; }
.button-blue { background: var(--blue); color: white; }
.button-blue:hover { background: #1937cb; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 6px; font-size: .9rem; }
.hero-footnote { display: flex; flex-direction: column; border-left: 2px solid var(--line); padding-left: 16px; margin-top: 38px; gap: 3px; font-size: .875rem; color: var(--muted); }
.hero-footnote span:first-child { font: .75rem var(--mono); color: var(--ink); letter-spacing: 1px; }
.hero-photo { position: relative; margin: 0; padding: 13px; border: 1px solid var(--line); background: white; transform: rotate(2deg); box-shadow: 9px 11px 0 #e7eaf4; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 46%; display: block; }
.photo-label { display: flex; justify-content: space-between; padding: 0 1px 12px; font: .75rem var(--mono); letter-spacing: .5px; }
.hero-photo figcaption { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; font-size: .75rem; }
.hero-photo figcaption span:last-child { font: .75rem var(--mono); color: var(--muted); }
.photo-note { position: absolute; bottom: 98px; right: -26px; transform: rotate(-9deg); padding: 13px 20px; background: var(--lime); color: var(--ink); font: italic 1.65rem/1.04 var(--serif); box-shadow: 2px 4px 0 #20232c10; }
.interests-strip { padding: 22px 28px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: .85rem var(--mono); letter-spacing: 1px; }
.interests-strip span:nth-child(even) { color: var(--blue); font: 1.5rem var(--sans); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
h2 { font: 400 clamp(2.8rem, 4.5vw, 4.6rem)/1.07 var(--serif); letter-spacing: -.8px; margin: 0; }
.section-heading > p { color: var(--muted); font-size: .95rem; margin: 0 0 5px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 15px 0 28px; }
.work-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 27px; }
.work-controls .filters { padding: 0; }
.surprise-button { background: transparent; border: 0; padding: 10px 0; font-size: .875rem; color: var(--ink); min-height: 44px; }
.surprise-button span { display: inline-block; color: var(--blue); font-size: 1.2rem; vertical-align: middle; margin-right: 5px; transition: transform .25s; }
.surprise-button:hover span { transform: rotate(90deg); }
.filters button { padding: 8px 17px; border-radius: 40px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: .875rem; min-height: 42px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); color: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project-card { border: 1px solid var(--line); background: white; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.project-card:hover { transform: translateY(-3px); }
.card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding: 18px 24px; font: .75rem/1.5 var(--mono); letter-spacing: .3px; }
.creator-cover { background: var(--blue); color: white; padding: 19px 30px 24px; min-height: 270px; display: flex; flex-direction: column; justify-content: center; }
.giant-number { font: 400 clamp(5rem, 9vw, 8.1rem)/1 var(--serif); letter-spacing: -3px; }
.giant-number > span { color: var(--lime); font-size: .7em; vertical-align: 16%; }
.cover-caption { font: .75rem/1.6 var(--mono); letter-spacing: .8px; margin-top: 13px; }
.platform-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.platform-tags span { font-size: .75rem; padding: 3px 10px; border: 1px solid #ffffff50; border-radius: 30px; }
.sunshine-cover { padding: 31px 29px; min-height: 270px; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; }
.sunshine-word { font: 3.1rem/1.05 var(--serif); letter-spacing: -.5px; }
.sunshine-word em { color: #424a14; }
.sunshine-facts { display: flex; gap: 36px; padding-top: 19px; }
.sunshine-facts span { font-size: .85rem; }
.sunshine-facts b { font: 2rem var(--serif); margin-right: 4px; }
.math-cover { display: flex; padding: 30px; justify-content: space-between; align-items: center; gap: 20px; min-height: 270px; background-color: #eef1fb; background-image: linear-gradient(#dce2f4 1px, transparent 1px), linear-gradient(90deg,#dce2f4 1px, transparent 1px); background-size: 24px 24px; }
.math-expression { font: 6rem/1 var(--serif); color: var(--blue); position: relative; }
.math-expression span { display: block; font: italic 1.35rem var(--serif); margin-top: 8px; }
.math-number { font: 3.8rem/1 var(--serif); }
.math-number small { display: block; font: .75rem/1.5 var(--mono); margin-top: 10px; max-width: 160px; }
.tedx-cover { padding: 25px 30px; background: #24262f; min-height: 270px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.tedx-word { font: 2.7rem/1.06 var(--serif); }
.tedx-word em { color: #f2928a; }
.pioneer-cover { min-height: 270px; background: #e4e9f7; padding: 25px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.paper-kicker { font: .75rem var(--mono); color: #5f6577; }
.paper-title { font: 3.3rem/1.03 var(--serif); color: #283858; }
.paper-title em { color: var(--blue); }
.paper-topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.paper-topics span { border-bottom: 1px solid #a6b2cd; padding-bottom: 3px; font-size: .8rem; }
.playground-cover { min-height: 270px; background: #ecedfa; padding: 20px 27px; display: flex; flex-direction: column; justify-content: center; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid #bcc1dd; border-top: 1px solid #bcc1dd; }
.zone-grid > span { border-right: 1px solid #bcc1dd; border-bottom: 1px solid #bcc1dd; padding: 12px 16px; font: 1.5rem/1.15 var(--serif); }
.zone-grid > span:nth-child(2), .zone-grid > span:nth-child(3) { background: #e0e5f2; }
.zone-grid em { color: var(--blue); }
.playground-cover .cover-caption { font-size: .75rem; letter-spacing: .2px; }
.now-section, .archive-section, .honors-section { border-top: 1px solid var(--line); }
.now-section { background: #eef1fa; }
.now-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.now-grid article { padding: 27px 26px 5px; border-left: 1px solid var(--line); }
.now-grid article:first-child { border-left: 0; padding-left: 0; }
.now-grid article:last-child { padding-right: 0; }
.now-number { font: .75rem var(--mono); color: var(--blue); display: block; margin-bottom: 24px; }
.now-grid h3 { font-size: 2.2rem; }
.now-grid p { font-size: .92rem; color: var(--muted); }
.now-grid .now-role { color: var(--ink); font-size: .875rem; min-height: 45px; }
.now-note { font: .75rem var(--mono); color: var(--muted); margin: 25px 0 0; }
.archive-list details { border-top: 1px solid var(--line); }
.archive-list details:last-child { border-bottom: 1px solid var(--line); }
.archive-list summary { cursor: pointer; padding: 23px 0; display: grid; grid-template-columns: 35px 1fr auto; gap: 22px; align-items: center; font: 1.8rem/1.3 var(--serif); list-style: none; }
.archive-list summary::-webkit-details-marker { display: none; }
.archive-index { font: .875rem var(--mono); color: var(--blue); }
.archive-kind { font: .75rem var(--mono); color: var(--muted); padding-right: 30px; position: relative; }
.archive-kind::after { content: '+'; position: absolute; right: 0; font: 1.5rem/.65 var(--serif); color: var(--blue); }
.archive-list details[open] .archive-kind::after { content: '−'; }
.archive-detail { max-width: 780px; padding: 0 0 25px 57px; color: var(--muted); }
.archive-detail p { margin: 0 0 16px; }
.archive-detail a { color: var(--blue); text-underline-offset: 5px; font-size: .9rem; }
.honors-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; }
.honors-list > div { padding: 24px 0; border-top: 1px solid var(--line); }
.honor-field { display: block; color: var(--muted); font: .75rem var(--mono); letter-spacing: .5px; margin-bottom: 10px; }
.honors-list h3 { font-size: 1.6rem; margin-bottom: 8px; }
.honors-list p { font-size: .875rem; color: var(--muted); margin: 0; }
.honors-list a { display: inline-block; font-size: .8rem; color: var(--blue); margin-top: 9px; text-underline-offset: 5px; }
.skill-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 21px; }
.skill-notes span { font: .75rem var(--mono); display: block; margin-bottom: 9px; }
.skill-notes p { font-size: .875rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; }
.card-bottom { padding: 26px 24px 21px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
h3 { font: 400 2rem/1.1 var(--serif); margin: 0 0 13px; }
.card-bottom p { color: var(--muted); font-size: .92rem; margin: 0; max-width: 370px; }
.project-open { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 15px 0 0; margin-top: 24px; display: flex; justify-content: space-between; text-align: left; font-size: .9rem; color: var(--ink); min-height: 44px; }
.project-open span { font: 1.6rem/1 var(--serif); color: var(--blue); }
.about-section { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-grid p { color: var(--muted); margin: 0 0 19px; }
.about-grid .about-lead { color: var(--ink); font-size: 1.15rem; line-height: 1.7; }
.contact-section { border-top: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(3rem,6.3vw,6rem); }
.contact-bottom { margin-top: 45px; display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; }
.email-link { font-size: clamp(1rem,2.5vw,1.8rem); text-underline-offset: 9px; color: var(--blue); overflow-wrap: anywhere; }
.site-footer { max-width: 1360px; margin: auto; padding: 28px 64px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: .75rem/1.7 var(--mono); color: var(--muted); }
.site-footer a { text-decoration: none; }
dialog { width: min(850px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0; border-radius: 8px; box-shadow: 0 20px 80px #00000025; }
dialog::backdrop { background: #161b398c; backdrop-filter: blur(5px); }
.dialog-topbar { position: sticky; top: 0; background: var(--paper); padding: 18px 29px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-topbar .eyebrow { margin: 0; }
.dialog-topbar button { border: 0; background: transparent; padding: 5px 0 5px 14px; min-height: 44px; color: var(--ink); }
.dialog-topbar button span { font-size: 1.5rem; padding-left: 10px; }
.dialog-story { padding: 33px; }
.dialog-story h2 { font-size: clamp(2.8rem,5vw,4rem); margin-bottom: 20px; }
.dialog-intro { color: var(--muted); font-size: 1.05rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: .8rem; margin: 25px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.story-meta strong { display: block; font: .75rem var(--mono); color: var(--muted); margin-bottom: 5px; text-transform: uppercase; }
.story-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 20px; margin: 28px 0 32px; }
.story-metrics b { font: 2.8rem/1.1 var(--serif); display: block; color: var(--blue); }
.story-metrics span { font-size: .85rem; color: var(--muted); }
.story-part { margin: 26px 0; }
.story-part h3 { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.story-part p { margin: 0; color: var(--muted); }
.story-image { margin: 30px 0 0; }
.story-image img { width: 100%; max-height: 550px; object-fit: contain; display: block; background: white; }
.story-image figcaption { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.story-part details { border: 1px solid var(--line); padding: 17px; border-radius: 3px; }
.story-part summary { cursor: pointer; color: var(--ink); }
.story-part details p { margin-top: 16px; }
.story-link { display: inline-block; margin-top: 14px; text-underline-offset: 5px; }
@media (max-width: 1000px) { .site-header { padding: 26px 35px; } .section-wrap { padding: 70px 35px; } .hero { gap: 38px; } .hero-photo { margin-right: 13px; } .hero-footnote { margin-top: 29px; } .site-footer { padding: 26px 35px; } .photo-note { right: -21px; } .card-meta { padding: 16px 20px; } .about-grid { gap: 40px; } }
@media (max-width: 760px) { .site-header { padding: 23px 22px; gap: 20px; align-items: start; } .wordmark { gap: 9px; font-size: .72rem; } .wordmark-symbol { font-size: 2.5rem; } .site-header nav { gap: 18px; font-size: .8rem; flex-wrap: wrap; justify-content: end; } .site-header .nav-contact { padding: 0; border: 0; } .section-wrap { padding: 56px 24px; } .hero { grid-template-columns: 1fr; gap: 39px; padding-top: 48px; } h1 { font-size: clamp(3.35rem,9vw,5rem); } .hero-photo { max-width: 440px; margin: 0 auto; width: calc(100% - 20px); } .hero-photo img { aspect-ratio: 4 / 4.1; } .photo-note { right: -15px; bottom: 105px; } .interests-strip { gap: 15px; padding: 17px 24px; font-size: .7rem; } .section-heading { flex-direction: column; align-items: start; gap: 20px; } .project-grid { grid-template-columns: 1fr; gap: 25px; } .creator-cover { min-height: 250px; } .giant-number { font-size: 6.8rem; } .sunshine-cover,.math-cover,.tedx-cover { min-height: 250px; } .about-grid { grid-template-columns: 1fr; gap: 27px; } .site-footer { padding: 25px 24px; font-size: .65rem; } .dialog-topbar { padding: 12px 21px; } .dialog-story { padding: 25px 22px; } .story-metrics { gap: 18px; grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .now-grid { grid-template-columns: 1fr; } .now-grid article, .now-grid article:first-child, .now-grid article:last-child { border-left: 0; padding: 23px 0 10px; border-bottom: 1px solid var(--line); } .now-number { margin-bottom: 13px; } .now-grid .now-role { min-height: auto; } .archive-list summary { grid-template-columns: 25px 1fr; gap: 12px; font-size: 1.45rem; padding: 20px 0; } .archive-kind { grid-column: 2; font-size: .75rem; margin-top: 4px; } .archive-detail { padding-left: 37px; } .honors-list { grid-template-columns: 1fr; } .skill-notes { grid-template-columns: 1fr; gap: 0; } .paper-title { font-size: 3.2rem; } .site-footer { font-size: .75rem; } }
@media (max-width: 390px) { .site-header { flex-direction: column; gap: 19px; } .site-header nav { justify-content: start; width: 100%; font-size: .875rem; } .hero .eyebrow { font-size: .75rem; } h1 { font-size: 2.65rem; } .hero-actions { gap: 23px; } .photo-note { font-size: 1.4rem; } .filters { gap: 7px; } .filters button { padding: 8px 13px; } .card-meta { font-size: .75rem; } .math-cover { padding: 24px; } .math-number { font-size: 3.2rem; } .math-expression { font-size: 5rem; } .math-expression span { font-size: 1.1rem; } .sunshine-word { font-size: 2.8rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header nav,.filters,.project-open,.hero-actions,.contact-section,.site-footer a,dialog { display: none; } .section-wrap { padding: 25px; } .hero { grid-template-columns: 1fr .5fr; } .project-grid { grid-template-columns: 1fr 1fr; } .project-card { break-inside: avoid; } body { font-size: 12px; } }
.extras-section { border-top: 1px solid var(--line); }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.game-card,.ask-card { padding: 32px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.game-card { background: #eef1fb; }
.extras-grid h3 { font-size: 2.5rem; }
.extras-grid > article > p:not(.eyebrow) { color: var(--muted); }
.game-numbers { display: flex; gap: 12px; margin: 28px 0; }
.game-numbers span { flex: 1; padding: 14px 2px; text-align: center; background: var(--lime); border: 1px solid #c4ca67; font: 3rem/1.1 var(--serif); border-radius: 3px; box-shadow: 3px 3px 0 #c8cdbb; }
input,textarea { display: block; width: 100%; font: 1rem/1.5 var(--sans); color: var(--ink); border: 1px solid #b7bdd0; border-radius: 4px; padding: 12px 14px; background: white; }
textarea { resize: vertical; }
input:focus-visible,textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
#game-form,#ask-form { display: flex; gap: 10px; }
#game-form input,#ask-form input { min-width: 0; }
#game-form .button,#ask-form .button { flex-shrink: 0; }
.game-result { min-height: 50px; color: var(--blue); margin: 17px 0; }
.game-tools { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.game-tools button,.text-button { border: 0; padding: 7px 0; background: transparent; color: var(--blue); font: .875rem/1.6 var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.suggested-questions { display: flex; gap: 8px; flex-wrap: wrap; margin: 23px 0; }
.suggested-questions button { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); padding: 7px 13px; font-size: .875rem; }
.ask-answer:empty { display: none; }
.ask-answer { background: #eef1fa; padding: 20px; border-left: 2px solid var(--blue); margin: 20px 0; font-size: 1rem; }
.ask-answer p { margin: 10px 0 16px; }
.answer-label { font: .75rem var(--mono); color: var(--muted); }
.answer-sources { display: flex; flex-wrap: wrap; gap: 8px 17px; font-size: .875rem; color: var(--blue); }
.form-note { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.field-photo { margin: 35px 0 0; display: grid; grid-template-columns: 1.3fr 1fr; background: #20232c; border-radius: 5px; overflow: hidden; color: white; }
.field-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.field-photo figcaption { align-self: center; padding: 40px; }
.field-photo h3 { font-size: 2.8rem; }
.field-photo p:not(.eyebrow) { color: #cdd2e4; }
.field-photo .text-button { color: var(--lime); }
.message-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; margin-top: 40px; }
.message-aside { max-width: 310px; color: var(--muted); }
.message-aside p:first-child { color: var(--ink); font-size: 1.1rem; }
.message-form label { display: block; font-size: .875rem; }
.message-form label input,.message-form label textarea { margin: 8px 0 21px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { display: flex; align-items: center; gap: 20px; }
.form-submit .button { flex-shrink: 0; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.message-status { margin: 17px 0 0; font-size: .95rem; color: var(--blue); }
button:disabled { cursor: wait; opacity: .6; }
.inbox-page { max-width: 960px; }
.inbox-page > .eyebrow { margin-top: 45px; }
.inbox-message { padding: 26px; border: 1px solid var(--line); background: white; margin: 22px 0; }
.inbox-message h2 { font-size: 2rem; }
.inbox-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width: 900px) { .extras-grid { grid-template-columns: 1fr; } .message-layout { grid-template-columns: 1fr; gap: 15px; } .message-aside { max-width: 650px; } .field-photo figcaption { padding: 28px; } }
@media(max-width: 600px) { .game-card,.ask-card { padding: 24px 20px; } #game-form,#ask-form { flex-wrap: wrap; } #game-form input,#ask-form input { flex-basis: 100%; } .form-row,.field-photo { grid-template-columns: 1fr; } .field-photo img { max-height: 330px; } .field-photo figcaption { padding: 25px; } .field-photo h3 { font-size: 2.4rem; } .form-row { gap: 0; } .form-submit { align-items: start; flex-direction: column; gap: 4px; } .game-numbers { gap: 9px; } .game-numbers span { font-size: 2.5rem; } .game-tools { gap: 6px 14px; } }
.about-person img { display: block; max-width: 390px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; margin-top: 36px; border-radius: 4px; box-shadow: 8px 8px 0 #e0e6f5; }
.game-tools button,.text-button,.suggested-questions button { min-height: 44px; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.language-toggle { min-height: 44px; min-width: 72px; padding: 9px 14px; border: 1px solid var(--blue); border-radius: 50px; background: transparent; color: var(--blue); font-size: .875rem; white-space: nowrap; }
.language-toggle:hover { background: var(--blue); color: white; }
html[lang="zh-CN"] { --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", serif; --mono: "IBM Plex Mono", "PingFang SC", "Microsoft YaHei", monospace; }
html[lang="zh-CN"] h1 { font-size: clamp(2.6rem, 4.2vw, 4.1rem); line-height: 1.3; letter-spacing: 0; }
html[lang="zh-CN"] h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1.35; letter-spacing: 0; }
html[lang="zh-CN"] h3, html[lang="zh-CN"] .photo-note, html[lang="zh-CN"] .sunshine-word, html[lang="zh-CN"] .tedx-word { line-height: 1.35; }
html[lang="zh-CN"] .giant-number { font-size: clamp(4rem, 7vw, 6rem); letter-spacing: -1px; }
html[lang="zh-CN"] .dialog-story > h2 { max-width: 850px; }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .cover-caption { letter-spacing: .5px; }
html[lang="zh-CN"] .hero-description, html[lang="zh-CN"] .dialog-intro, html[lang="zh-CN"] .story-part p { line-height: 1.9; }
@media (max-width: 1000px) { .header-actions { gap: 18px; } .site-header nav { gap: 18px; } }
@media (max-width: 760px) { .header-actions { flex-direction: column-reverse; align-items: flex-end; gap: 14px; } .site-header nav { gap: 12px 18px; } }
@media (max-width: 390px) { .header-actions { width: 100%; flex-direction: column; align-items: flex-start; gap: 15px; } }

.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 35px; }

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
  .header-actions { display: contents; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .site-header .language-toggle { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  html[lang="zh-CN"] h1 { font-size: clamp(2rem, 8.5vw, 3.4rem); line-height: 1.4; }
}

.story-photo { margin: 24px 0 0; min-width: 0; }
.story-photo a { display: block; border: 1px solid var(--line); background: #eef1fb; border-radius: 5px; overflow: hidden; }
.story-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.story-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .8rem; }
.story-photo-lead { margin-bottom: 28px; }
.story-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 30px; }
.story-gallery .story-photo { margin: 0; }
.story-resources { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.story-resource { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--blue); border-radius: 4px; padding: 10px 15px; color: var(--blue); font-size: .9rem; text-decoration: none; }
.story-resource:hover { background: var(--blue); color: white; }
.now-project-open { margin-top: 14px; }
.archive-photo { margin: 24px 0; max-width: 390px; }
.archive-photo img { width: 100%; height: auto; display: block; border-radius: 5px; }
.archive-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .story-gallery { grid-template-columns: 1fr; gap: 25px; } .story-resource { width: 100%; } }
