:root {
    --paper: #f4f1eb;
    --paper-deep: #ebe6dc;
    --card: #fbfaf7;
    --ink: #1d1c1a;
    --muted: #77736c;
    --line: rgba(29, 28, 26, 0.16);
    --line-strong: rgba(29, 28, 26, 0.3);
    --red: #78191d;
    --red-dark: #4d0f12;
    --red-soft: #a95155;
    --gold: #a0804d;
    --white: #fffdf9;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "STSong", serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
    --shell: min(100% - 40px, 1120px);
    --header-height: 48px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    color: inherit;
    font: inherit;
}

button,
summary,
label[for] {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: none;
}

.section-shell {
    width: var(--shell);
    margin-inline: auto;
}

.section-shell--wide {
    width: min(100% - 24px, 1260px);
}

.paper-section {
    background: var(--paper);
}

.section-label,
.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading {
    max-width: 640px;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 8.5vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.section-heading > p:last-child {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .94rem;
}

.section-heading--light,
.section-heading--light .section-label,
.section-heading--light > p:last-child {
    color: rgba(255, 253, 249, .68);
}

.section-heading--light h2 {
    color: var(--white);
}

.button {
    min-height: 50px;
    padding: 0 19px;
    border: 1px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .08em;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.button--primary,
.button--submit {
    background: var(--ink);
    color: var(--white);
}

.button--ghost {
    background: transparent;
}

.button:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.line-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--ink);
    background: #f2efe9;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.site-header.is-scrolled,
.site-header.is-nav-open {
    background: #f2efe9;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
}

.brand-monogram {
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: .08em;
}

.brand-monogram i {
    color: var(--red);
    font-weight: 400;
}

.brand-date {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .08em;
}

.menu-button {
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: .98rem;
    font-weight: 400;
    letter-spacing: .12em;
}

.menu-button i {
    position: relative;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    display: block;
    transition: background-color .2s ease;
}

.menu-button i::before,
.menu-button i::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    content: "";
    transition: transform .25s ease;
}

.menu-button i::before {
    top: -6px;
}

.menu-button i::after {
    top: 6px;
}

.menu-button[aria-expanded="true"] i {
    background: transparent;
}

.menu-button[aria-expanded="true"] i::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] i::after {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    left: auto;
    bottom: auto;
    z-index: 99;
    width: min(300px, 72vw);
    max-height: min(60svh, 440px);
    overflow-y: auto;
    padding: 16px 18px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    box-shadow: 0 22px 54px rgba(29, 28, 26, .18);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility .25s, opacity .25s ease, transform .25s ease;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.site-nav a {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
    font-family: var(--serif);
    font-size: .98rem;
}

.site-nav a:last-child {
    border-bottom: 0;
}

.site-nav a span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .58rem;
}

/* Minimal cover */
.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--header-height) + 32px) 24px 28px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    align-items: center;
    background: var(--paper);
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(244, 241, 235, .9) 0%, rgba(244, 241, 235, .38) 38%, rgba(244, 241, 235, .42) 62%, rgba(244, 241, 235, .94) 100%),
        url("assets/web/hero-bg.jpg") center 28% / cover no-repeat;
}

.hero__meta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero__orbit {
    display: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    align-self: end;
    padding-bottom: 20px;
}

.hero h1 {
    margin: 0;
    display: grid;
    gap: 4px;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 8vw, 4.2rem);
    font-weight: 300;
    letter-spacing: .16em;
    line-height: 1.08;
}

.hero h1 b {
    color: var(--ink);
    font-size: .5em;
    font-style: italic;
    font-weight: 300;
    letter-spacing: .02em;
}

.hero__date {
    margin: 22px 0 0;
    color: var(--ink);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.hero__enter {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .12em;
}

/* Event information */
.event-section,
.transit-section,
.guide-section {
    padding: 92px 0;
}

.countdown {
    margin: 0 0 18px;
    padding: 22px 18px;
    border: 1px solid var(--line-strong);
    background: var(--card);
}

.countdown__heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 3px;
}

.countdown__heading span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.countdown__heading strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
}

.countdown__grid {
    padding-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.countdown__grid > div {
    min-width: 0;
    border-right: 1px solid var(--line);
    display: grid;
    justify-items: center;
}

.countdown__grid > div:last-child {
    border-right: 0;
}

.countdown__grid strong {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 8vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.countdown__grid span {
    margin-top: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .48rem;
    letter-spacing: .03em;
}

.countdown__complete {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    text-align: center;
    font-family: var(--serif);
    font-size: 1.3rem;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-card {
    min-height: 110px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .35);
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 15px;
    align-items: start;
}

.info-card span,
.route-card span,
.map-card span,
.upload-card__intro > span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.info-card h3,
.route-card h3,
.upload-card h3 {
    margin: 4px 0 5px;
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: -.005em;
}

.info-card p,
.route-card p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.info-card--link {
    position: relative;
    color: inherit;
    text-decoration: none;
}

.info-card--link > i {
    position: absolute;
    right: 17px;
    top: 17px;
    font-style: normal;
}

.action-row {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

/* Memory notes */
.memory-section {
    padding: 94px 0 100px;
    background: var(--paper);
    color: var(--ink);
}

.memory-line {
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.memory-line li {
    position: relative;
    padding: 0 0 42px 28px;
    border-left: 1px solid rgba(255, 253, 249, .26);
}

.memory-line li:last-child {
    padding-bottom: 10px;
}

.memory-line li::before {
    position: absolute;
    top: 5px;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--paper);
    content: "";
}

.memory-line time {
    color: rgba(255, 253, 249, .55);
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .12em;
}

.memory-line div {
    position: relative;
    margin-top: 10px;
    padding: 22px;
    border: 1px solid rgba(255, 253, 249, .18);
    background: rgba(255, 255, 255, .04);
}

.memory-line div > span {
    position: absolute;
    top: 17px;
    right: 18px;
    color: rgba(255, 253, 249, .2);
    font-family: var(--serif);
    font-size: 2rem;
}

.memory-line h3 {
    max-width: calc(100% - 34px);
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
}

.memory-line p {
    margin: 10px 0 0;
    color: rgba(255, 253, 249, .66);
    font-size: .82rem;
}

.memory-note {
    margin: 36px 0 0;
    color: rgba(255, 253, 249, .45);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Character introduction */
.character-grid {
    display: grid;
    gap: 64px;
}

.character-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(64px, .7fr) minmax(110px, 1.15fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 14px;
}

.character-name {
    padding: 4px 0 0;
    border-top: 1px solid var(--line-strong);
}

.character-name strong {
    display: block;
    margin: 10px 0 5px;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 5.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--ink);
}

.character-name span {
    display: block;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
}

.character-photo {
    position: relative;
    margin: 0;
    overflow: visible;
    filter: drop-shadow(0 14px 26px rgba(29, 28, 26, .14));
}

.character-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.character-info {
    padding: 0 2px;
}

.character-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.character-info li {
    position: relative;
    padding: 9px 0 9px 15px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: "Songti SC", "STSong", "SimSun", "NSimSun", "宋体", "新宋体", serif;
    font-size: .8rem;
    line-height: 1.5;
}

.character-info li:last-child {
    border-bottom: 1px solid var(--line);
}

.character-info li::before {
    position: absolute;
    top: 16px;
    left: 0;
    width: 5px;
    height: 1px;
    background: var(--ink);
    content: "";
}

/* Transit */
.route-list {
    display: grid;
    gap: 12px;
}

.route-card {
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--card);
}

.route-card__head {
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.route-card__head h3 {
    margin-top: 1px;
}

.map-card {
    margin-top: 12px;
    padding: 22px;
    background: var(--ink);
    color: var(--white);
    display: grid;
    gap: 20px;
}

.map-card div {
    display: grid;
    gap: 5px;
}

.map-card strong {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 400;
}

.map-card small {
    color: rgba(255, 253, 249, .58);
}

.map-card a {
    width: max-content;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
}

/* Schedule */
.schedule-section {
    padding: 0 0 0;
    background: var(--red-dark);
    color: var(--white);
}

.schedule-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.schedule-visual img {
    display: block;
    width: 100%;
    height: min(86svh, 820px);
    object-fit: cover;
    object-position: center 30%;
}

.schedule-visual__copy {
    position: absolute;
    left: 24px;
    bottom: 36px;
    z-index: 2;
    color: var(--white);
}

.schedule-visual__copy .section-label {
    color: rgba(255, 253, 249, .7);
}

.schedule-visual__copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 8.5vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}

.schedule-copy {
    padding-block: 46px 86px;
}

.schedule-list > div {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 253, 249, .16);
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: start;
    gap: 12px;
}

.schedule-list time {
    font-family: var(--serif);
    font-size: 1.55rem;
    color: var(--white);
}

.schedule-list span {
    padding-top: 4px;
    font-size: .84rem;
    color: rgba(255, 253, 249, .92);
}

.schedule-list span strong {
    margin-bottom: 2px;
    display: block;
    color: rgba(255, 253, 249, .55);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dress-note {
    margin: 26px 0 0;
    color: rgba(255, 253, 249, .78);
    font-size: .8rem;
}

.dress-note span {
    margin-right: 10px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* RSVP */
.rsvp-section {
    padding: 94px 0;
    background: var(--red-dark);
    color: var(--white);
}

.rsvp-layout {
    display: grid;
    gap: 16px;
}

.rsvp-form {
    padding: 22px;
    background: var(--paper);
    color: var(--ink);
}

.form-note {
    margin: 0 0 24px;
    padding: 11px 12px;
    border-left: 2px solid var(--gold);
    background: rgba(160, 128, 77, .09);
    color: var(--muted);
    font-size: .7rem;
}

.rsvp-form fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.rsvp-form legend,
.field > span,
.attending-only > .field > span {
    margin-bottom: 9px;
    display: block;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .08em;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.choice-grid label {
    position: relative;
}

.choice-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-grid span {
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .78rem;
    cursor: pointer;
}

.choice-grid input:checked + span {
    background: var(--ink);
    color: var(--white);
}

.choice-grid input:focus-visible + span {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.attending-only {
    display: grid;
    gap: 22px;
}

.field {
    display: block;
}

.field input,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
}

.field input {
    min-height: 46px;
}

.field textarea {
    padding: 12px 0;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--red);
    outline: none;
}

.stepper {
    min-height: 48px;
    border: 1px solid var(--line-strong);
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
}

.stepper button {
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
}

.stepper output {
    text-align: center;
    font-family: var(--serif);
    font-size: 1.2rem;
}

.stay-fields {
    padding: 20px;
    border: 1px dashed var(--line-strong);
}

.date-grid {
    display: grid;
    gap: 16px;
}

.stay-fields > .field {
    margin-top: 18px;
}

.decline-note {
    min-height: 136px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    text-align: center;
}

.decline-note > span {
    color: var(--red);
    font-family: var(--serif);
    font-size: 2.2rem;
}

.decline-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.decline-note strong {
    margin-bottom: 4px;
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
}

.button--submit {
    width: 100%;
    border: 0;
}

/* Guide */
.rating-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rating-note span {
    padding: 2px 7px;
    background: rgba(160, 128, 77, .12);
    color: var(--gold);
    font-family: var(--mono);
    font-size: .57rem;
    letter-spacing: .08em;
}

.guide-list {
    border-top: 1px solid var(--line-strong);
}

.guide-list details {
    border-bottom: 1px solid var(--line-strong);
}

.guide-list summary {
    min-height: 72px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
    cursor: pointer;
}

.guide-list summary::-webkit-details-marker {
    display: none;
}

.guide-list summary span {
    font-family: var(--serif);
    font-size: 1.15rem;
}

.guide-list summary small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .08em;
}

.guide-list summary::after {
    color: var(--muted);
    content: "+";
}

.guide-list details[open] summary::after {
    content: "−";
}

.guide-list__content {
    padding: 0 0 20px;
}

.guide-list__content article {
    padding: 16px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--card);
}

.guide-list__content article:last-child {
    border-bottom: 1px solid var(--line);
}

.guide-list__content article > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.guide-list__content strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
}

.guide-list__content article p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .76rem;
}

.stars {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: .74rem;
    letter-spacing: .06em;
}

.stars i {
    color: rgba(29, 28, 26, .16);
    font-style: normal;
}

.stars--favorite {
    padding: 1px 6px;
    border: 1px solid rgba(160, 128, 77, .42);
}

/* Photo wall */
.photo-wall-section {
    padding: 94px 0;
    background: var(--paper);
    color: var(--ink);
}

.photo-wall__en {
    font-size: .52em;
    font-weight: 300;
    letter-spacing: .04em;
}

.wall-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.wall-photo {
    margin: 0;
    flex: 0 0 auto;
    height: 180px;
    overflow: hidden;
    background: var(--paper-deep);
}

.wall-photo img {
    display: block;
    height: 100%;
    width: auto;
    transition: transform .8s var(--ease);
}

.wall-photo:hover img {
    transform: scale(1.02);
}

.upload-card {
    margin-top: 40px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--card);
}

.upload-card__intro h3 {
    color: var(--ink);
    font-size: 1.65rem;
}

.upload-card__intro p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.upload-flow {
    margin: 24px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    list-style: none;
    background: var(--line);
}

.upload-flow li {
    min-height: 64px;
    padding: 12px;
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .7rem;
}

.upload-flow li span {
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-family: var(--mono);
    font-size: .56rem;
}

.upload-drop {
    min-height: 170px;
    padding: 24px;
    border: 1px dashed var(--line-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.upload-drop:hover,
.upload-drop.is-dragover {
    border-color: var(--ink);
    background: rgba(29, 28, 26, .04);
}

.upload-drop strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
}

.upload-drop span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .54rem;
}

.upload-status {
    margin-top: 13px;
    color: var(--muted);
    font-size: .68rem;
}

.pending-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pending-photo {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper-deep);
}

.pending-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pending-photo figcaption {
    position: absolute;
    inset: auto 6px 6px;
    padding: 5px 7px;
    background: rgba(29, 28, 26, .78);
    color: var(--white);
    font-family: var(--mono);
    font-size: .48rem;
    line-height: 1.3;
    backdrop-filter: blur(6px);
}

/* Thanks */
.thanks-section {
    padding: 70px 0;
    background: var(--paper-deep);
}

.thanks-section h2 {
    margin: 0 0 26px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 8.5vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.thanks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.thanks-grid > div {
    min-height: 0;
    padding: 16px 14px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thanks-grid span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.thanks-grid strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
}

.thanks-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .61rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Footer & feedback */
.site-footer {
    min-height: 104px;
    padding: 26px 22px 22px;
    background: var(--red-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 253, 249, .52);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .07em;
}

.site-footer a {
    margin-top: 12px;
    color: rgba(255, 253, 249, .7);
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-decoration: none;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: min(340px, calc(100% - 32px));
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(29, 28, 26, .94);
    color: var(--white);
    font-size: .73rem;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    backdrop-filter: blur(10px);
}

.toast.is-visible {
    opacity: 1;
    transform: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(29, 28, 26, .46);
    backdrop-filter: blur(4px);
}

.modal[hidden] {
    display: none;
}

.modal__box {
    width: min(340px, 100%);
    padding: 34px 28px 28px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.modal__text {
    margin: 0 0 26px;
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.6;
}

.modal__ok {
    min-width: 120px;
    padding: 10px 24px;
    border: 0;
    background: var(--ink);
    color: var(--white);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    cursor: pointer;
}

/* Motion */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (min-width: 720px) {
    :root {
        --shell: min(100% - 80px, 1120px);
        --header-height: 56px;
    }

    .site-header {
        padding-inline: 40px;
    }

    .hero {
        padding: calc(var(--header-height) + 34px) 42px 38px;
    }

    .hero__enter {
        width: min(380px, 100%);
        justify-self: center;
    }

    .event-section,
    .transit-section,
    .guide-section,
    .memory-section,
    .rsvp-section,
    .photo-wall-section,
    .thanks-section {
        padding-block: 126px;
    }

    .countdown {
        padding: 28px 30px;
    }

    .info-list,
    .route-list {
        grid-template-columns: 1fr 1fr;
    }

    .info-card {
        min-height: 136px;
        padding: 25px;
    }

    .action-row {
        grid-template-columns: max-content max-content;
    }

    .character-grid {
        gap: 72px;
    }

    .character-card {
        grid-template-columns: minmax(0, .75fr) minmax(0, .95fr) minmax(0, 1.3fr);
        align-items: start;
        gap: 44px;
    }

    .character-name {
        padding: 8px 0 0;
    }

    .character-name strong {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .character-name span {
        font-size: .6rem;
        letter-spacing: .2em;
    }

    .character-info li {
        font-size: .86rem;
        line-height: 1.55;
    }

    .map-card {
        padding: 28px;
        grid-template-columns: 1fr max-content;
        align-items: end;
    }

    .schedule-visual__copy {
        left: max(42px, calc((100vw - 1120px) / 2));
        bottom: 70px;
    }

    .schedule-copy {
        padding-block: 64px 112px;
    }

    .schedule-list > div {
        grid-template-columns: 140px 1fr;
        padding-block: 28px;
    }

    .rsvp-layout {
        grid-template-columns: .85fr 1.15fr;
        gap: 60px;
        align-items: start;
    }

    .rsvp-layout .section-heading {
        position: sticky;
        top: calc(var(--header-height) + 34px);
    }

    .rsvp-form {
        padding: 34px;
    }

    .date-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guide-list__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .guide-list__content article,
    .guide-list__content article:last-child {
        border: 1px solid var(--line);
    }

    .wall-grid {
        gap: 10px;
    }

    .wall-photo {
        height: 210px;
    }

    .upload-card {
        padding: 34px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 36px;
        align-items: start;
    }

    .upload-flow {
        margin: 0;
    }

    .upload-drop,
    .upload-status,
    .pending-grid {
        grid-column: 1 / -1;
    }

    .pending-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .thanks-grid > div {
        padding: 20px 18px;
    }
}

@media (min-width: 1040px) {
    .menu-button {
        display: none;
    }

    .site-nav {
        position: static;
        inset: auto;
        z-index: auto;
        width: auto;
        max-height: none;
        overflow-y: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        color: var(--ink);
        flex-direction: row;
        gap: 24px;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .site-nav a {
        padding: 8px 0;
        border-bottom: 0;
        gap: 6px;
        font-family: var(--sans);
        font-size: .72rem;
    }

    .site-nav a span {
        display: none;
    }

    .hero__meta {
        max-width: 1120px;
        width: 100%;
        margin-inline: auto;
    }

    .hero__enter {
        width: 340px;
    }

    .event-section .section-shell {
        display: grid;
        grid-template-columns: .72fr 1.28fr;
        gap: 80px;
        align-items: start;
    }

    .event-section .section-heading {
        position: sticky;
        top: calc(var(--header-height) + 40px);
    }

    .event-section .countdown,
    .event-section .info-list,
    .event-section .action-row {
        grid-column: 2;
    }

    .event-section .countdown {
        grid-row: 1;
    }

    .event-section .info-list {
        grid-row: 2;
    }

    .event-section .action-row {
        grid-row: 3;
    }

    .memory-line div {
        min-height: 245px;
    }

    .transit-section .section-shell {
        display: grid;
        grid-template-columns: .72fr 1.28fr;
        gap: 80px;
    }

    .transit-section .section-heading {
        grid-row: 1 / 3;
    }

    .transit-section .route-list,
    .transit-section .map-card {
        grid-column: 2;
    }

    .wall-photo {
        height: 250px;
    }

    .upload-card {
        grid-template-columns: .8fr 1.2fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
