/* Solid storybook surfaces; shared site navigation and theme controls. */
.amelia-page { --story-accent: #efcf93; }
html[data-theme="light"] .amelia-page { --story-accent: #89501f; }
.amelia-page .site-header, .amelia-page .site-header.is-scrolled,
.amelia-page .main-nav, .amelia-page .main-nav.is-open,
.amelia-page .main-nav a, .amelia-page .menu-toggle,
.amelia-page .theme-toggle, .amelia-page .footer-top, .amelia-page .footer-bottom { border: 0; box-shadow: none; }
.amelia-page .theme-toggle:focus-visible { outline: 3px solid var(--story-accent); outline-offset: 3px; box-shadow: none; }
.amelia-main { width: min(1120px, calc(100% - 48px)); margin: 32px auto 48px; }
.amelia-main h1, .amelia-main h2, .amelia-main h3 { text-wrap: balance; }
.amelia-main p { max-width: 66ch; }
.amelia-intro { background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 48px; }
.game-masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 40px; background: var(--bg-deep); }
.amelia-intro .eyebrow, .amelia-section-heading .eyebrow, .amelia-books .eyebrow, .amelia-closing .eyebrow, .support-heading .eyebrow, .support-report .eyebrow { color: var(--story-accent); }
.game-masthead .eyebrow { margin-bottom: 14px; }
.game-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; line-height: 1.1; letter-spacing: -.035em; }
.game-title span { display: block; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 400; }
.game-title strong { display: block; margin-top: .15em; font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 400; }
.game-release { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.release-status { display: inline-block; margin: 0; padding: 9px 16px; border-radius: 6px; background: var(--surface); color: var(--story-accent); font-size: .95rem; font-weight: 650; }
.game-release .text-link { font-size: .95rem; }
.game-story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; padding: 36px 40px 40px; }
.amelia-main .story-headline { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.85rem, 3vw, 2.65rem); font-weight: 400; line-height: 1.23; letter-spacing: -.035em; margin: 0; }
.story-headline em { color: var(--story-accent); font-weight: 400; }
.game-description { font-size: 1.05rem; line-height: 1.75; color: var(--muted); margin: 0; }
.amelia-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.text-link { text-underline-offset: .3em; font-weight: 600; }
.amelia-main .button { border: 0; border-radius: 6px; box-shadow: none; font-size: .95rem; padding: 14px 20px; }
.adventure-section { padding: 0; margin-bottom: 40px; }
.amelia-section-heading { margin-bottom: 24px; }
.amelia-section-heading .eyebrow { margin-bottom: 12px; }
.amelia-section-heading h2, .amelia-books h2, .amelia-closing h2, .support-report h2, .support-faq h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; font-size: clamp(1.85rem, 3.2vw, 2.65rem); line-height: 1.18; margin-bottom: 16px; }
.amelia-section-heading h2 br { display: none; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-grid article { padding: 28px 30px; background: var(--surface); border-radius: 12px; }
.feature-grid h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature-grid p { color: var(--muted); margin: 0; }
.amelia-books { display: grid; grid-template-columns: minmax(180px, .6fr) 1.4fr; gap: 40px; align-items: center; padding: 36px 40px; margin-bottom: 24px; background: var(--surface); border-radius: 16px; }
.amelia-book-cover { width: min(100%, 230px); justify-self: center; }
.amelia-book-cover img { width: 100%; height: auto; }
.book-volume { margin-bottom: .3rem; color: var(--muted); }
.amelia-books h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.amelia-closing { padding: 30px 40px; background: var(--bg-deep); border-radius: 16px; margin-bottom: 24px; }
.amelia-closing .eyebrow { margin-bottom: 12px; }
.amelia-closing h2 { max-width: 750px; }
.amelia-closing p:not(.eyebrow) { margin-bottom: 12px; }
.amelia-credits { padding: 12px 4px 0; }
.amelia-credits h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.amelia-credits p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.amelia-page .legal-links { flex-wrap: wrap; }
.amelia-page .legal-links a { font-size: .875rem; }
.amelia-page .footer-bottom { grid-template-columns: auto 1fr auto; }
.amelia-support { max-width: 860px; }
.support-heading { padding: 32px; background: var(--surface); border-radius: 16px; margin-bottom: 32px; }
.support-heading h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; line-height: 1.12; }
.support-lede { font-size: 1.2rem; }
.support-faq { margin-bottom: 24px; }
.support-faq details { background: var(--surface); border-radius: 10px; padding: 20px 24px; margin-bottom: 12px; }
.support-faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; padding-right: .5rem; }
.support-faq details p { color: var(--muted); padding-left: 1.2rem; }
.support-report { padding: 28px 32px; background: var(--surface); border-radius: 16px; margin-bottom: 24px; }
.support-report ul { padding-left: 1.4rem; }
.support-report li { margin: .65rem 0; }
.support-privacy { padding: 24px 32px; background: var(--bg-deep); border-radius: 16px; }
.support-privacy h2 { font-size: 1.5rem; }
.amelia-main a:focus-visible, .amelia-main summary:focus-visible { outline: 3px solid var(--story-accent); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width: 800px) {
    .game-masthead { padding: 28px; }
    .game-story { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
    .amelia-main .story-headline br { display: none; }
    .amelia-books { gap: 28px; padding: 28px; }
    .amelia-page .footer-bottom { grid-template-columns: 1fr; }
}
@media(max-width: 580px) {
    .amelia-main { width: calc(100% - 32px); margin-top: 20px; }
    .amelia-intro { margin-bottom: 32px; }
    .game-masthead { align-items: flex-start; flex-direction: column; padding: 24px; gap: 20px; }
    .game-release { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px 18px; }
    .release-status { padding: 7px 12px; font-size: .875rem; }
    .game-release .text-link { font-size: .875rem; }
    .game-story { padding: 24px; }
    .amelia-actions { align-items: flex-start; flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-grid article { padding: 24px; }
    .amelia-books { grid-template-columns: 1fr; padding: 24px; }
    .amelia-book-cover { max-width: 180px; }
    .amelia-closing, .support-heading, .support-report, .support-privacy { padding: 24px; }
}

.amelia-gameplay { margin-bottom: 40px; }
.amelia-trailer {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: var(--bg-deep);
}
.amelia-screenshots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.amelia-screenshots a,
.amelia-screenshots img {
    display: block;
    width: 100%;
    border-radius: 12px;
}
.amelia-screenshots img { height: auto; }
@media (max-width: 580px) {
    .amelia-gameplay { margin-bottom: 32px; }
    .amelia-screenshots { grid-template-columns: 1fr; gap: 12px; }
}
