/* 下课见 · a campus in four seasons. Local review edition. */
:root {
  --color-paper: #f7f4ec; --color-surface: #fffdf7; --color-paper-2: #e8ede5;
  --color-ink: #223d35; --color-muted: #656e64; --color-rule: #d0d1c4;
  --color-control-rule: #8d9b8c; --color-accent: #294d42; --color-accent-hover: #1b392f;
  --color-accent-ink: #fffdf5; --color-note: #eeeee4; --color-focus: #b56b42;
  --season-rust: #b56b42; --radius-input: 9px; --radius-button: 8px;
  --page-padding: clamp(24px, 4.65vw, 88px);
}
html { scroll-behavior: smooth; }
body { font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { background: #d6dfce; color: #20392e; }
.site-shell { max-width: none; padding: 0; }
.site-header {
  position: relative; z-index: 20; min-height: 105px; padding: 25px var(--page-padding);
  display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  gap: 30px; border-bottom: 1px solid var(--color-rule);
}
body[data-view="home"] .site-header { border-bottom-color: transparent; background: linear-gradient(to bottom, #f7f4ecf2, #f7f4ecb3 80%, #f7f4ec00); }
.brand { flex-direction: column; align-items: flex-start; gap: 5px; }
.brand > span { font-size: 34px; letter-spacing: .13em; line-height: 1.15; }
.brand small { display: block; padding: 0 0 0 2px; border: 0; font-size: 8px; letter-spacing: .62em; font-family: Georgia, serif; }
.site-header nav { width: auto; gap: clamp(20px, 2.7vw, 44px); }
.site-header nav button { padding: 8px 0; min-height: 42px; font-size: 14px; color: var(--color-ink); }
.site-header nav button.active::after { height: 1px; bottom: 3px; opacity: .6; }
.site-header nav button[data-auth-nav] { border: 1px solid #64776a; border-radius: 30px; padding: 8px 23px; }
.site-header nav button[data-auth-nav]::after { display: none; }
.button { border-radius: 8px; min-height: 55px; padding: 14px 28px; font-size: 16px; gap: 25px; }
.button:not(.secondary) { box-shadow: 0 4px 10px #193d2510; }
.button.secondary { background: transparent; }
.text-link { color: var(--color-ink); text-decoration-thickness: 1px; font-size: 15px; gap: 14px; }
.button svg, .text-link svg { width: 22px; height: 22px; stroke-width: 1.5; }
button, a { touch-action: manipulation; }
.season-home { width: 100%; }
.season-hero { position: relative; isolation: isolate; height: clamp(460px, 39vw, 690px); max-height: calc(100svh - 225px); }
.season-art {
  position: absolute; z-index: 0; inset: -105px 0 0; width: 100%; height: calc(100% + 105px);
  background: url("./campus-autumn.webp") center bottom / cover no-repeat; pointer-events: none;

}
.season-hero[data-season="winter"] { --color-paper: #f3f5f3; }
.season-hero::after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-paper) 0%, #f7f4ec00 52%); }
.season-hero[data-season="winter"]::after { background: linear-gradient(90deg, #f3f5f3 0%, #f3f5f300 52%); }
.season-copy { position: relative; z-index: 2; width: 57%; max-width: 870px; padding: clamp(35px, 4.8vw, 90px) 0 0 var(--page-padding); }
.season-copy h1 { font-family: var(--font-display); font-size: clamp(48px, 5.7vw, 106px); line-height: 1.25; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; }
.season-copy h1 span { display: block; white-space: nowrap; }
.season-copy > p:not(.hint) { font-family: var(--font-display); font-size: clamp(16px, 1.67vw, 27px); line-height: 1.8; margin: 0 0 28px; white-space: nowrap; }
.season-copy .button { min-height: 58px; font-size: 18px; padding-inline: 32px; }
.season-copy .auth-home-status { max-width: 26rem; font-size: 12px !important; line-height: 1.7; margin-top: 16px; color: #526151; }
.season-weather { position: absolute; z-index: 3; inset: -105px 0 0; width: 100%; height: calc(100% + 105px); pointer-events: none; }
.season-controls { position: absolute; right: var(--page-padding); bottom: 22px; z-index: 4; display: flex; align-items: center; gap: 14px; color: #354a3b; font-size: 12px; }
.season-controls > span { font-family: var(--font-display); font-size: 16px; }
.season-controls button { padding: 6px 0 6px 14px; border-left: 1px solid #77837180; min-height: 36px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.release-band { position: relative; display: grid; grid-template-columns: 1.1fr 2.5fr 1.1fr; align-items: center; gap: 32px; margin: 0 var(--page-padding); padding: 28px 0; border-block: 1px solid #b9c2b1; }
.release-pending { min-height: 136px; }
.release-status-copy { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.8; }
.release-heading h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 29px); line-height: 1.4; letter-spacing: .08em; margin: 0 0 4px; }
.release-heading time { font-size: 14px; color: #4c5f51; white-space: nowrap; }
.release-clock { display: grid; grid-template-columns: repeat(4, 1fr); border-inline: 1px solid var(--color-rule); align-items: center; }
.clock-unit { display: flex; align-items: baseline; justify-content: center; gap: 9px; line-height: 1.2; }
.clock-unit + .clock-unit { border-left: 1px solid var(--color-rule); }
.clock-unit b { font-family: 'Baskerville', 'Times New Roman', serif; font-size: clamp(40px, 4.3vw, 72px); font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock-unit small { font-family: var(--font-display); font-size: 16px; }
.release-info { justify-self: end; }
.release-info p { font-size: 13px; margin: 0 0 1px; white-space: nowrap; color: #4c5f51; }
.release-info .text-link { color: #97512f; padding: 3px 0; min-height: 32px; }
.season-workflow { padding: 55px var(--page-padding) 70px; }
.season-workflow h2 { font-family: var(--font-display); font-size: clamp(32px, 3.55vw, 57px); line-height: 1.3; font-weight: 700; letter-spacing: -.03em; margin: 0 0 12px; }
.season-workflow header > p { font-family: var(--font-display); font-size: 20px; color: #536455; margin: 0; }
.workflow-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; margin-top: 45px; }
.workflow-step { min-width: 0; }
.workflow-index { display: flex; align-items: center; gap: 25px; font-family: var(--font-outlier); color: var(--season-rust); font-size: 64px; line-height: 1; margin-bottom: 18px; }
.workflow-index::after { content: ''; height: 1px; background: #b9977466; flex: 1; }
.workflow-step h3 { font-size: clamp(20px, 1.8vw, 29px); font-weight: 700; line-height: 1.5; margin: 0 0 10px; }
.workflow-step p { color: var(--color-muted); font-size: 15px; line-height: 1.85; margin: 0; max-width: 27rem; }
.season-letter { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5%; padding: 0 var(--page-padding) 80px 0; }
.season-letter-media { min-width: 0; }
.season-letter-media img { display: block; width: 100%; height: auto; aspect-ratio: 1.56; object-fit: cover; }
.season-letter h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.6vw, 60px); line-height: 1.35; margin: 0 0 18px; }
.season-letter h2 span { display: block; color: var(--season-rust); }
.season-letter p { font-size: 17px; color: var(--color-muted); line-height: 1.85; margin: 0; }
.season-letter .text-link { margin-top: 20px; }
.season-close { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 65px var(--page-padding); background: #29483c; color: #f7f4ec; }
.season-close h2 { font-family: var(--font-display); font-size: clamp(30px, 3.1vw, 50px); font-weight: 500; line-height: 1.45; margin: 0 0 12px; letter-spacing: .02em; }
.season-close h2 span { display: block; }
.season-close p { margin: 0; color: #d6dfd0; font-size: 16px; }
.season-close .button { flex-shrink: 0; background: #f7f4ec; color: #254337; border-color: #f7f4ec; font-family: var(--font-display); font-size: 18px; }
.season-email-note { padding: 28px var(--page-padding) 12px; }
.season-email-note .site-announcement { margin: 0; padding: 15px 0; border: 0; border-bottom: 1px solid var(--color-rule); background: transparent; }
.season-email-note .site-announcement-meta { font-size: 11px; }
.season-email-note .site-announcement h2 { display: inline; font-size: 16px; font-family: var(--font-body); font-weight: 500; }
.season-email-note .site-announcement-lead { font-size: 14px; color: var(--color-muted); margin-top: 6px; }
.season-email-note .site-announcement summary { font-size: 13px; min-height: 34px; color: #97512f; }
.site-footer { min-height: 95px; margin: 0 var(--page-padding); padding: 20px 0; border-top: 0; color: var(--color-muted); }
.site-footer p::before { content: '下课见'; font-family: var(--font-display); font-size: 23px; color: var(--color-ink); margin-right: 24px; padding-right: 24px; border-right: 1px solid var(--color-rule); }
.site-footer p, .site-footer button { font-size: 12px; }
/* Account pages share the same quiet paper, typography, and green controls. */
.page { padding: 65px var(--page-padding) 75px; max-width: 1180px; }
.page h1 { font-size: clamp(32px, 3.3vw, 48px); font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.page-title { margin-bottom: 36px; }
.page .subtitle { font-size: 15px; line-height: 1.8; }
.campus-page { padding: 65px var(--page-padding) 75px; }
.campus-layout { grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 145px); max-width: 1300px; margin: auto; }
.campus-welcome h1 { font-size: clamp(40px, 4.3vw, 68px); font-weight: 700; line-height: 1.35; }
.campus-heading-accent, .headline-accent { color: var(--season-rust); }
.campus-welcome-copy { font-size: 21px; line-height: 1.9; margin: 25px 0 12px; }
.campus-login { max-width: none; padding-top: 5px; }
.campus-login h2 { font-size: 31px; font-weight: 700; }
.campus-login .site-announcement { padding: 14px 17px; border-left-color: #91a184; }
.campus-login .site-announcement h3 { font-size: 15px; }
.campus-page input[type='email'], .campus-page input[type='text'] { background: #fffdf7; border-radius: 9px; font-size: 16px; }
.campus-page .button { border-radius: 8px; }
.desk-note-art { width: 18rem; max-width: 75%; margin: 25px 0 0; mix-blend-mode: multiply; }
.form-layout { gap: clamp(35px, 5vw, 85px); }
.stepper { gap: 16px; margin: 32px 0 38px; }
.stepper > div { padding-top: 14px; font-size: 13px; }
.stepper > div.done { border-color: #82967e; }
.field { margin-bottom: 28px; }
.field > span, .field legend { font-size: 15px; margin-bottom: 11px; }
.choice > span { border-radius: 7px; padding: 11px 16px; font-size: 14px; background: #fffdf7; }
.choice input:checked + span { background: #e6ecdf; color: #294d42; border-color: #557856; }
.choice input:hover + span { border-color: #557856; }
input[type='text'], input[type='number'], select, textarea { border-radius: 8px; font-size: 15px; background: #fffdf7; }
.side-note .note-number { color: #9aab8c; }
.how-row { padding-block: 35px; }
.how-row .number { color: var(--season-rust); }
.faq { margin-top: 45px; }
.faq summary { font-size: 17px; padding-block: 20px; }
.faq p { font-size: 15px; }
.settings-section { padding-block: 28px; }
.match-paper { border-color: #b6c1a8; box-shadow: 0 14px 50px #28402d08; }
.invitation-illustrated .ticket-fields { grid-template-columns: minmax(0, 1fr); }
.invitation-illustrated .ticket-fields > div { grid-template-columns: 5rem minmax(0, 1fr); }
.waiting-layout .invitation { padding: 0; }
.toast { z-index: 100; background: #29483c; }
@media (min-width: 1600px) { .season-hero { height: min(39vw, 800px); } }
@media (max-width: 1050px) {
  .season-copy { width: 65%; padding-top: 42px; }
  .season-copy h1 { font-size: clamp(45px, 6vw, 63px); }
  .season-copy > p:not(.hint) { font-size: 17px; white-space: normal; max-width: 24rem; }
  .release-band { grid-template-columns: 1fr 2fr; gap: 20px; padding: 23px 0; }
  .release-info { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; justify-self: stretch; }
  .clock-unit b { font-size: 48px; }
  .workflow-rows { gap: 30px; }
  .workflow-index { font-size: 54px; }
  .season-letter { gap: 4%; }
  .season-close { gap: 30px; }
}
@media (max-width: 700px) {
  :root { --page-padding: 23px; }
  .site-header { min-height: 112px; padding-block: 17px 0; flex-direction: column; gap: 13px; }
  .brand { flex-direction: row; align-items: center; gap: 16px; }
  .brand > span { font-size: 28px; letter-spacing: .08em; }
  .brand small { font-size: 7px; letter-spacing: .31em; padding-top: 4px; }
  .site-header nav { width: 100%; gap: 0; justify-content: space-between; }
  .site-header nav button { font-size: 12px; min-height: 43px; padding: 8px 0; }
  .site-header nav button[data-auth-nav] { padding: 5px 13px; min-height: 32px; }
  .season-hero { height: 570px; max-height: none; }
  .season-art { inset: 0; height: 100%; background-position: 65% bottom; }
  .season-hero::after { background: linear-gradient(to bottom, #f7f4ec 0%, #f7f4ecf2 20%, #f7f4ec00 58%); }
  .season-hero[data-season="winter"]::after { background: linear-gradient(to bottom, #f7f4ec 0%, #f3f5f3ed 20%, #f3f5f300 58%); }
  .season-copy { width: 100%; max-width: none; padding: 30px var(--page-padding) 0; }
  .season-copy h1 { font-size: clamp(39px, 11vw, 64px); line-height: 1.3; letter-spacing: -.04em; margin-bottom: 13px; }
  .season-copy > p:not(.hint) { font-size: 15px; margin-bottom: 20px; max-width: none; }
  .season-copy .button { font-size: 15px; min-height: 49px; padding: 11px 22px; }
  .season-copy .auth-home-status { font-size: 10px !important; margin-top: 12px; max-width: 21rem; }
  .season-weather { inset: 0; height: 100%; }
  .season-controls { bottom: 14px; font-size: 11px; }
  .season-controls > span { font-size: 14px; }
  .release-band { margin-inline: var(--page-padding); padding: 22px 0 18px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .release-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
  .release-heading h2 { font-size: 20px; margin: 0; }
  .release-heading time { font-size: 12px; }
  .release-clock { border: 0; }
  .clock-unit:first-child { justify-content: flex-start; }
  .clock-unit:last-child { justify-content: flex-end; }
  .clock-unit { gap: 7px; }
  .clock-unit b { font-size: clamp(40px, 11vw, 62px); }
  .clock-unit small { font-size: 13px; }
  .release-info p, .release-info .text-link { font-size: 11px; }
  .release-info .text-link svg { width: 16px; height: 16px; }
  .season-workflow { padding-top: 55px; padding-bottom: 45px; }
  .season-workflow h2 { font-size: 32px; }
  .season-workflow header > p { font-size: 16px; }
  .workflow-rows { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .workflow-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding: 23px 0; border-bottom: 1px solid #d0d1c4; }
  .workflow-index { grid-row: span 2; font-size: 43px; margin: 0; align-self: start; }
  .workflow-index::after { display: none; }
  .workflow-step h3 { font-size: 22px; margin-bottom: 7px; }
  .workflow-step p { font-size: 14px; }
  .season-letter { grid-template-columns: 1fr; padding: 0 0 50px; gap: 15px; }
  .season-letter-media img { aspect-ratio: 1.65; }
  .season-letter-copy { padding-inline: var(--page-padding); }
  .season-letter h2 { font-size: 37px; margin-bottom: 15px; }
  .season-letter p { font-size: 15px; }
  .season-close { padding-block: 42px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .season-close h2 { font-size: clamp(25px, 7.2vw, 36px); }
  .season-close p { font-size: 13px; }
  .season-close .button { font-size: 15px; }
  .season-email-note { padding-top: 18px; }
  .season-email-note .site-announcement h2 { font-size: 14px; }
  .season-email-note .site-announcement-lead { font-size: 12px; }
  .site-footer { flex-wrap: wrap; min-height: 85px; gap: 5px 15px; padding-block: 18px; }
  .site-footer p::before { font-size: 19px; margin-right: 12px; padding-right: 12px; }
  .site-footer p, .site-footer button { font-size: 10px; }
  .page, .campus-page { padding: 35px var(--page-padding) 45px; }
  .campus-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .campus-welcome h1 { font-size: 41px; }
  .campus-welcome-copy { font-size: 19px; margin-top: 18px; }
  .campus-login h2 { font-size: 29px; }
  .desk-note-art { width: 12rem; max-width: 52%; margin: 5px 0 0; }
  .page h1 { font-size: 32px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stepper { gap: 9px; margin: 26px 0 30px; }
  .stepper > div { font-size: 10px; }
  .choice > span { font-size: 13px; padding: 10px 13px; }
  .side-note { display: none; }
  .two-fields { gap: 13px; }
  .how-row { padding-block: 25px; }
  .how-row h2 { font-size: 23px; }
  .how-row p { font-size: 14px; }
}
@media (max-width: 360px) {
  :root { --page-padding: 18px; }
  .season-copy h1 { font-size: 36px; }
  .release-heading { display: block; }
  .release-heading time { display: block; margin-top: 4px; }
  .clock-unit b { font-size: 38px; }
  .release-info { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.brand small { white-space: nowrap; flex-shrink: 0; }
.site-header nav button + button::before { display: none; }

.season-hero::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 55px; pointer-events: none; background: linear-gradient(to top, #f7f4ec, #f7f4ec00); }
.season-hero[data-season="winter"]::before { background: linear-gradient(to top, #f7f4ec, #f3f5f300); }
@media (min-width: 701px) and (max-height: 750px) {
 .season-copy { padding-top: 25px; }
 .season-copy h1 { font-size: clamp(46px, 5.2vw, 80px); margin-bottom: 15px; }
 .season-copy > p:not(.hint) { margin-bottom: 20px; }
 .season-copy .auth-home-status { margin-top: 10px; }
}

.season-controls { background: #f7f4ecd9; border-radius: 5px; padding: 0 10px; }

@media (min-width: 1051px) {
 .site-header nav button { font-size: 15px; }
 .brand > span { font-size: 38px; }
 .season-copy .button { min-height: 66px; padding-inline: 40px; font-size: 20px; gap: 28px; }
 .release-heading time { font-size: 16px; }
 .release-info p, .release-info .text-link { font-size: 14px; }
}

.person-avatar { background: #e3eadd; color: #294d42; }
.confirmation { background: #e9eee2; color: #314b38; border-color: #bbc8ae; }
.reason p, .confirmation p { font-size: 14px; }
@media (max-width: 360px) { .match-actions { flex-direction: column; align-items: stretch; } .match-actions .button { width: 100%; } }

/* Native entrance starts in its first painted frame, including the footer. */
@keyframes panel-rise {
 from { opacity: 0; transform: translateY(24px); }
 to { opacity: 1; transform: translateY(0); }
}
#main [data-reveal], .site-footer[data-reveal] { animation: panel-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
#main [data-reveal-state='pending'], .site-footer[data-reveal-state='pending'] { animation: none; opacity: 0; transform: translateY(24px); }
#main[data-reveal-preserve] [data-reveal], #main [data-reveal-state='settled'], .site-footer[data-reveal-state='settled'] { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
 #main [data-reveal], .site-footer[data-reveal] { animation: none; opacity: 1; transform: none; }
}
