/*
Theme Name: iElysia
Description: 为《崩坏3》爱莉希雅应援站制作的响应式 WordPress 主题。
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ielysia
*/
@font-face {
    font-family: "iElysia Serif";
    src: url("assets/fonts/garden-serif.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --paper: #fffaf7;
    --white: #fffdfb;
    --ink: #38222f;
    --muted: #655161;
    --wine: #803e64;
    --plum: #663050;
    --line: #e6d5dc;
    --serif: "iElysia Serif", "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "STSong", SimSun, Georgia, serif;
    --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); }
a { color: var(--plum); text-underline-offset: .21em; }
a:hover { color: #9a426f; }
:focus-visible { outline: 3px solid #a84375; outline-offset: 4px; border-radius: .18rem; }
img { display: block; max-width: 100%; height: auto; }
figure, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.25; overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.4rem, 6vw, 4.55rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 3.15rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.skip-link, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.skip-link:focus, .screen-reader-text:focus {
    width: auto;
    height: auto;
    padding: .6rem 1rem;
    clip-path: none;
    top: .75rem;
    left: .75rem;
    z-index: 100000;
    background: var(--white);
}
.site-header { background: var(--white); border-bottom: 1px solid #efdee5; }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 4.6rem; gap: .6rem clamp(.8rem, 2.5vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.86rem/1 Georgia, serif; letter-spacing: -.035em; }
.brand-mark { width: 2rem; height: 2rem; border-radius: .45rem; }
.primary-nav { justify-self: end; }
.nav-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.6rem, 3vw, 2.1rem); }
.nav-list a { display: block; padding-block: .625rem; color: var(--muted); font-size: .91rem; text-decoration: none; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-underline-offset: .55em; }
.nav-list a[aria-current="page"] { font-weight: 700; }
.language-nav { display: flex; align-items: center; gap: .15rem; padding-left: .55rem; border-left: 1px solid var(--line); }
.language-nav a { padding: .35rem .48rem; font-size: .82rem; border-radius: .3rem; white-space: nowrap; text-decoration: none; }
.language-nav a:hover { text-decoration: underline; }
.language-nav a[aria-current="true"] { background: #f4e7ee; font-weight: 700; }
.kicker { color: var(--wine); font-size: .81rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; margin-bottom: .85rem; }
.hero { overflow: hidden; background: radial-gradient(ellipse at 72% 32%, #f2dae9 0%, rgba(242,218,233,0) 60%), linear-gradient(113deg, #fff7f1, #f7e9ef 58%, #f5e9f3); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3.4rem, 6.5vw, 6.3rem); }
.hero-copy { padding-left: clamp(0px, 2vw, 1.7rem); }
.hero h1 { font-size: clamp(3rem, 5.8vw, 5.7rem); letter-spacing: -.065em; line-height: 1.07; }
.hero h1 span { display: block; color: var(--plum); margin-top: .07em; }
.hero-tagline { margin-top: 1.2rem; color: var(--wine); font: 700 clamp(1.15rem, 2vw, 1.85rem)/1.4 var(--serif); }
.hero-tagline:lang(en) { font: italic clamp(1.35rem, 2.6vw, 2.35rem)/1.25 Georgia, serif; }
.hero-intro, .section-copy { color: var(--muted); max-width: 33rem; font-size: clamp(.99rem, 1.5vw, 1.09rem); line-height: 1.9; margin-top: 1.3rem; }
.hero-intro { max-width: 26rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.15rem; margin-top: 1.7rem; }
.button { align-items: center; justify-content: center; display: inline-flex; min-height: 2.94rem; padding: .62rem 1.12rem; gap: .6rem; border: 1px solid transparent; border-radius: .4rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--plum); color: #fff9fc; }
.button-primary:hover { background: #7c3b62; color: #fff; }
.button-light { background: rgba(255, 253, 251, .43); border-color: #c5a8b7; }
.button-light:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .94rem; font-weight: 700; }
.hero-art { position: relative; width: min(100% - 1.4rem, 36rem); justify-self: center; }
.hero-art::before, .hero-art::after { content: ""; pointer-events: none; position: absolute; }
.hero-art::before { z-index: 0; inset: -.5rem -.55rem 1.35rem; border: 1px solid #aa7897; border-radius: .9rem; }
.hero-art::after { width: 1.2rem; aspect-ratio: 1; background: #9b5b83; right: -1.15rem; top: 27%; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hero-frame { position: relative; border-radius: .55rem; overflow: hidden; background: #dbc4d7; box-shadow: 0 1.15rem 2.8rem #60324627; }
.hero-frame img { width: 100%; aspect-ratio: 16 / 9; }
.hero-art figcaption, .feature-caption { text-align: right; padding-block: .72rem .1rem; font-size: .78rem; line-height: 1.4; }
.hero-art figcaption { position: relative; }
.hero-art figcaption a { text-decoration: none; }
.hero-art figcaption a:hover { text-decoration: underline; }
.profile-grid, .film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.85rem, 6vw, 6.4rem); }
.profile-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.55rem 0 1.2rem; }
.profile-details div { border-top: 1px solid var(--line); padding-top: .6rem; }
.profile-details dt { font-size: .79rem; color: var(--muted); }
.profile-details dd { margin: .2rem 0 0; font-weight: 700; }
.feature-art { display: block; text-decoration: none; padding: .45rem .45rem .2rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; }
.feature-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: .3rem;
    background: var(--feature-image) center / cover, radial-gradient(ellipse at 60% 20%, #eed6ef, #ddd1e7 64%, #cfc0dc);
}
.feature-wallpaper {
    --feature-image: url("https://upload-os-bbs.hoyolab.com/upload/2022/08/29/0/d5fba9dcb7660eb38e033800d521fa25_2478002312860747974.png?x-oss-process=image/resize,w_1120/format,webp");
}
.feature-caption { display: block; padding-right: .35rem; }
.feature-art:hover .feature-caption { text-decoration: underline; }
.video-player { min-width: 0; padding: .6rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); }
.video-sources { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .55rem; }
.video-source-label { padding-inline: .3rem; color: var(--muted); font-size: .78rem; }
.video-source { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .82rem; text-decoration: none; }
.video-source:hover { border-color: var(--wine); }
.video-source[aria-current="true"] { color: var(--white); background: var(--plum); border-color: var(--plum); font-weight: 700; }
.video-screen { position: relative; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .35rem; background: #261720; }
.video-screen iframe, .video-poster, .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { display: grid; place-items: center; text-decoration: none; }
.video-poster img { object-fit: cover; }
.video-poster:focus-visible { z-index: 1; outline-offset: -4px; }
.video-play { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid #ffffff87; border-radius: 2rem; background: #38222fe8; color: #fff; font-size: .88rem; font-weight: 700; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { background: var(--plum); }
.video-caption { padding: .45rem .3rem 0; text-align: right; font-size: .78rem; }
.gallery-section { background: #f8edf2; border-block: 1px solid #ead9e2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.art-grid, .letter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; margin-top: 2.1rem; }
.art-grid { align-items: start; }
.art-card { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; min-width: 0; background: var(--white); }
.art-image { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.5; background: #f4e7ee; }
.art-card--landscape .art-image { aspect-ratio: 8 / 5; }
.art-image:focus-visible { outline-offset: -4px; }
.art-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-velcei .art-image { background: #e9d8e2; }
.art-beamhello .art-image { background: #e5d8fb; }
.art-mamegami .art-image { background: #e9def2; }
.art-card figcaption { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; line-height: 1.5; gap: .2rem; font-size: .8rem; color: var(--muted); }
.art-card figcaption a { font-size: .94rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.art-card figcaption a:hover { text-decoration: underline; }
.letters-section { background: #fbf0e9; border-block: 1px solid #eedbd3; }
.letter-card { min-width: 0; padding: clamp(1.15rem, 2.7vw, 1.7rem); border: 1px solid #e6d4d1; background: var(--white); border-radius: .6rem; }
.letter-card h2, .letter-card h3 { font: 700 clamp(1.22rem, 2.1vw, 1.58rem)/1.4 var(--serif); }
.letter-card h2 a, .letter-card h3 a { text-decoration: none; }
.letter-card h2 a:hover, .letter-card h3 a:hover { text-decoration: underline; }
.letter-accent { display: block; margin-bottom: .55rem; font: 1.6rem/1 Georgia, serif; color: var(--wine); }
.letter-card p { margin-top: .65rem; color: var(--muted); }
.letter-card .text-link { margin-top: 1rem; }
.closing { text-align: center; padding-block: clamp(3.2rem, 8vw, 6.3rem); }
.closing p { font: 700 clamp(1.55rem, 4vw, 2.6rem)/1.65 var(--serif); color: var(--plum); margin-bottom: .9rem; }
.site-footer { background: var(--plum); color: #fae9f0; }
.site-footer a { color: #fff9fc; }
.site-footer :focus-visible { outline-color: #ffd6e8; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.3rem; }
.footer-inner p, .footer-links { font-size: .82rem; }
.footer-inner p { margin-top: .55rem; }
.footer-links a { margin-right: .8rem; }
.entry { max-width: 48rem; margin-inline: auto; }
.entry-header { margin-bottom: 2.2rem; padding-bottom: 1.55rem; border-bottom: 1px solid var(--line); }
.entry-header h1, .archive h1, .error404 h1 { font-size: clamp(2.1rem, 5.7vw, 3.8rem); }
.entry-thumbnail { margin-top: 1.5rem; }
.entry-content { overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.95; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: clamp(1.35rem, 3.1vw, 2rem); margin-top: 2.25rem; }
.entry-content .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content video, .entry-content iframe { max-width: 100%; }
.entry-return { margin-top: 2rem; }
.archive { min-height: 50vh; }
.navigation { margin-top: 2rem; }
.page-numbers { padding-inline: .4rem; }
.comments-area { margin-top: 2rem; }
.comments-area ol { padding-inline-start: 1.4rem; }
input:not([type="checkbox"]):not([type="radio"]), textarea, button { max-width: 100%; padding: .45rem .7rem; border: 1px solid #bd9eae; border-radius: .25rem; font: inherit; }
.search-form { margin-block: 1rem; }
@media (max-width: 850px) {
    .wrap { width: min(100% - 3.25rem, 76rem); }
    .art-grid, .letter-grid { gap: .85rem; }
    .profile-grid, .film-grid { gap: 1.65rem; }
}
@media (max-width: 720px) {
    .wrap { width: min(100% - 2.7rem, 76rem); }
    .hero-grid, .profile-grid, .film-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 2.7rem; padding-block: 3.3rem 2rem; }
    .hero-copy { padding-left: 0; }
    .hero h1 { font-size: clamp(3.7rem, 11.8vw, 5.3rem); }
    .hero-art { width: min(100% - 1rem, 30rem); }
    .film-grid .video-player { grid-row: 2; }
    .section { padding-block: 3.7rem; }
    .art-grid, .letter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading { flex-wrap: wrap; }
}
@media (max-width: 540px) {
    .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem; padding-top: .75rem; }
    .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; }
    .language-nav { grid-column: 2; grid-row: 1; border-left: 0; }
    .nav-list { gap: .12rem .9rem; }
    .nav-list a { min-height: 2.75rem; padding-block: .58rem; font-size: .84rem; }
    .art-grid, .letter-grid, .entry-content .art-grid { grid-template-columns: minmax(0, 1fr); }
    .art-image { aspect-ratio: 4 / 4.2; }
    .footer-inner { flex-direction: column; }
}
@media (max-width: 350px) {
    .wrap { width: calc(100% - 1.95rem); }
    .nav-list { column-gap: .75rem; }
    .hero h1 { font-size: 3.15rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .button { transition: background-color .18s ease, color .18s ease; }
}
