@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #191b32;
  --muted: #51546a;
  --violet: #503bcb;
  --violet-dark: #372395;
  --lime: #dcff72;
  --line: #dcddea;
  --sans: "Geist", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; background: #fcfcff; color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: .085em; text-underline-offset: .26em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #275ab9; outline-offset: 4px; }
img { display: block; max-width: 100%; }
::selection { background: #d8ff78; color: #171937; }
.wrap { width: min(100% - 2 * clamp(1.1rem, 5vw, 5rem), 76rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; top: .5rem; left: 1rem; z-index: 10; padding: .55rem .9rem; background: white; }
.mast { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #cbcbd9; }
.mast-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--violet); color: white; font-size: 1.65rem; line-height: 1; font-weight: 950; font-style: italic; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--lime); border-radius: .18rem; }
.brand-words { display: flex; flex-direction: column; gap: .24rem; }
.brand-words strong { font-size: 1.22rem; line-height: 1.1; font-weight: 850; letter-spacing: .07em; }
.brand-words small { font: 700 .75rem/1 var(--mono); letter-spacing: .12em; color: #575575; }
.mast nav { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 2.8rem); }
.mast nav a { text-decoration: none; font-size: .94rem; font-weight: 670; }
.nav-text:hover { color: var(--violet); text-decoration: underline; }
.manage-link { display: inline-flex; align-items: center; justify-content: center; padding: .36rem 1rem; min-height: 2.5rem; border: 1px solid #9392a7; border-radius: 2rem; background: white; }
.manage-link:hover { border-color: var(--violet); color: var(--violet); }
.cover { position: relative; isolation: isolate; overflow: hidden; border-bottom: 2px solid var(--ink); background: #edecff; }
.cover-art { position: absolute; z-index: -2; inset: 0 0 0 39%; background: #9fdcf0; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 40%; }
.cover-grid { position: absolute; z-index: -1; inset: 0; background: linear-gradient(103deg, transparent 49.5%, #7164ce 49.6%); clip-path: polygon(0 0,54% 0,44.5% 100%,0 100%); }
.cover-grid::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0,53.65% 0,44.15% 100%,0 100%); background-color: #f0efff; background-image: linear-gradient(90deg, #d7d4f162 1px, transparent 1px), linear-gradient(#d7d4f162 1px, transparent 1px), linear-gradient(120deg, #fafaff, #e9e6ff 54%); background-size: 24px 24px, 24px 24px, 100% 100%; }
.cover-inner { position: relative; display: flex; align-items: center; min-height: clamp(27rem, 35vw, 31rem); }
.cover-copy { width: 46%; padding-block: 2.65rem 3rem; }
.overline, .eyebrow, .card-category { font: 780 .79rem/1.4 var(--mono), var(--sans); letter-spacing: .14em; }
.overline { display: flex; align-items: center; gap: .64rem; font-family: var(--sans); font-size: .94rem; color: #41405a; letter-spacing: .14em; }
.overline i { display: inline-block; width: 1.65rem; height: .53rem; border-block: 2px solid var(--violet); transform: skew(-28deg); }
.cover h1 { margin: .85rem 0 1.15rem; font-family: var(--sans); font-size: clamp(4.25rem, 6.35vw, 6.3rem); font-weight: 950; line-height: 1.06; letter-spacing: -.075em; }
.cover h1 em { display: inline-block; position: relative; z-index: 0; color: var(--violet); font-style: normal; transform: skew(-5deg); transform-origin: 8% 100%; }
.cover h1 em::after { position: absolute; z-index: -1; content: ""; height: .11em; width: 31%; background: var(--lime); bottom: .015em; right: -.035em; transform: skew(-18deg); }
.cover-deck { max-width: 21em; color: #3c3e56; line-height: 1.75; font-size: 1.04rem; }
.primary, .quiet-button, .text-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; border-radius: .32rem; font-weight: 700; text-decoration: none; }
.primary { border: 1px solid var(--violet); background: var(--violet); color: white; padding: .54rem 1.22rem; gap: .65rem; }
.primary:not(:disabled):hover { background: var(--violet-dark); }
.cover-button { margin-top: 1.4rem; min-height: 3rem; padding-inline: 1.32rem; box-shadow: 3px 3px 0 #c1bbed; }
.grid-icon { width: .42rem; height: .42rem; display: inline-block; background: currentColor; box-shadow: .53rem 0, 0 .53rem, .53rem .53rem; margin: -.53rem .58rem 0 0; }
.cover-credit { position: absolute; bottom: 1.15rem; right: 0; background: #20203be8; color: white; display: inline-flex; align-items: center; gap: .55rem; padding: .34rem .72rem; font-size: .82rem; letter-spacing: .035em; text-decoration: none; }
.cover-credit i { display: inline-block; width: .5rem; height: .5rem; background: var(--lime); transform: rotate(45deg); }
.cover-credit:hover { text-decoration: underline; }
.section { padding-block: 3.1rem 3.8rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.eyebrow { color: var(--violet); margin-bottom: .3rem; }
.section h2, .shortcut-intro h2, .admin-title h1 { font-size: clamp(2rem, 2.9vw, 2.8rem); line-height: 1.2; font-weight: 900; letter-spacing: -.055em; }
.search-box { display: flex; align-items: center; gap: .6rem; border: 1px solid #b9b8ca; border-radius: 2rem; background: white; padding: .32rem .95rem; min-height: 2.6rem; width: min(15rem, 45%); }
.search-box:focus-within { border-color: var(--violet); outline: 2px solid #c4b9fa; }
.search-box input { border: 0; background: transparent; width: 100%; min-width: 0; outline: 0; color: var(--ink); font-size: .94rem; }
.search-icon { width: .88rem; height: .88rem; border: 1.8px solid #66647d; border-radius: 50%; display: block; position: relative; flex: none; }
.search-icon::after { content: ""; position: absolute; width: .35rem; height: 1.8px; background: #66647d; right: -.24rem; bottom: -.12rem; transform: rotate(46deg); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.theme-iris { --accent: #5838c3; --tint: #eeebff; }
.theme-lagoon { --accent: #006656; --tint: #d7f2e9; }
.theme-rose { --accent: #a72d58; --tint: #ffe9ef; }
.theme-amber { --accent: #894716; --tint: #fff0da; }
.dept-card { position: relative; display: grid; grid-template-columns: minmax(7.5rem, 32%) minmax(0, 1fr); overflow: hidden; border: 1px solid #bcbcca; border-radius: .6rem; background: white; min-height: 13.8rem; box-shadow: 0 3px 0 #e9e8f2; }
.card-image { position: relative; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.card-image::after { content: ""; position: absolute; right: -.1rem; top: -.1rem; bottom: -.1rem; width: 10%; background: white; clip-path: polygon(100% 0,100% 100%,0 100%); }
.card-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 46% center; }
.theme-lagoon .card-image img { object-position: 29% center; }
.letter-art { align-self: center; color: var(--accent); font-weight: 950; font-size: clamp(2.1rem, 3vw, 3rem); letter-spacing: -.08em; writing-mode: vertical-rl; }
.card-body { padding: 1.5rem 1.35rem 1.3rem 1.15rem; display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.card-category { font-size: .75rem; color: var(--accent); letter-spacing: .11em; }
.card-body h3 { font-size: clamp(1.4rem, 1.65vw, 1.7rem); font-weight: 830; letter-spacing: -.035em; line-height: 1.36; margin: .36rem 0 .55rem; }
.card-description { color: var(--muted); line-height: 1.7; white-space: pre-line; }
.card-link { margin-top: auto; padding-top: .85rem; text-decoration: underline; color: var(--accent); font-size: .94rem; font-weight: 760; }
.card-link:hover { text-decoration-thickness: 2px; }
.no-results { padding: 1.4rem; background: #f1effa; border-radius: .4rem; color: var(--muted); overflow-wrap: anywhere; }
.no-results .quiet-button { margin-top: .7rem; }
.shortcut-zone { padding: 2.65rem 0 3rem; background: #f0effa; border-block: 1px solid #dddbe9; }
.shortcut-layout { display: grid; grid-template-columns: minmax(12rem, .78fr) 2fr; gap: 2.7rem; }
.shortcut-intro > p:last-child { color: var(--muted); margin-top: .65rem; }
.shortcut-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.shortcut-group h3 { min-height: 2rem; font-size: 1rem; display: flex; align-items: baseline; gap: .55rem; overflow-wrap: anywhere; }
.shortcut-group h3 i { display: inline-block; width: .72rem; height: .72rem; background: var(--accent); transform: skew(-14deg); flex: none; }
.shortcut-group ul { list-style: none; padding: 0; }
.shortcut-group li { border-top: 1px solid #cfcedf; }
.shortcut-group a { display: block; padding: .55rem .15rem; color: #38324c; text-decoration: none; overflow-wrap: anywhere; }
.shortcut-group a:hover { color: var(--accent); text-decoration: underline; }
.footer { color: #515165; background: #fff; font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-block: 1.4rem; }
.foot-inner b { color: var(--ink); }
.foot-school { margin-left: 1rem; }
.credits { max-width: 33rem; text-align: right; }
.credits summary { cursor: pointer; }
.credits p { text-align: left; margin-top: .7rem; }

.admin-page { max-width: 66rem; padding-block: 3rem 5rem; }
.admin-title { border-left: .4rem solid var(--violet); padding-left: 1rem; }
.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.4rem 0 2rem; }
.admin-tools p, .signin-box p { color: var(--muted); }
.admin-tools .primary { flex-shrink: 0; }
.notice { margin: 1rem 0; padding: .7rem 1rem; background: #e2f3eb; border-left: 3px solid #2a7957; }
.notice.is-error { background: #fff0ec; border-color: #ac4235; }
.notice .quiet-button { margin-left: .7rem; }
.admin-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; border-bottom: 1px solid var(--line); }
.row-info { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.row-color { flex: none; width: .6rem; height: 2.5rem; background: var(--accent); border-radius: .15rem; }
.row-info h2 { font-size: 1.16rem; overflow-wrap: anywhere; }
.row-info p { color: var(--muted); font-size: .9rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.row-actions button, .quiet-button { background: white; border: 1px solid #bcbbcc; border-radius: .32rem; padding: .36rem .7rem; min-height: 2.45rem; font-size: .94rem; }
.row-actions button:hover:not(:disabled), .quiet-button:hover:not(:disabled) { border-color: var(--violet); color: var(--violet); }
.row-actions .row-edit { background: #eeeaff; color: var(--violet-dark); font-weight: 700; }
.row-actions .row-remove { color: #993b49; }
.editor-form, .signin-box { margin: 1.5rem 0; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid #c5c3da; border-radius: .55rem; background: white; box-shadow: 0 4px 0 #edecf8; }
.editor-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.editor-form legend, .signin-box h2 { padding: 0; font-size: 1.45rem; font-weight: 820; }
.fields { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.fields .wide { grid-column: 1/-1; }
.editor-form label { display: block; font-size: .95rem; font-weight: 680; }
.editor-form label small { color: var(--muted); margin-left: .2rem; font-size: .82rem; font-weight: 400; }
.editor-form :is(input:not([type=checkbox]), textarea, select) { width: 100%; margin-top: .3rem; display: block; padding: .55rem .7rem; min-height: 2.65rem; color: var(--ink); background-color: #fcfcff; border: 1px solid #aaa9bc; border-radius: .3rem; font-size: 1rem; font-weight: 450; }
.editor-form select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,#5a5775 50%),linear-gradient(135deg,#5a5775 50%,transparent 50%); background-position: calc(100% - 15px) 50%,calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.editor-form textarea { resize: vertical; }
.link-editor { margin-top: 1.35rem; border-block: 1px solid var(--line); padding-block: 1rem; }
.link-editor h3 { font-size: 1rem; margin-bottom: .5rem; }
.link-fields { display: grid; grid-template-columns: 1fr 1.8fr auto; align-items: end; gap: .7rem; margin-bottom: .7rem; }
.text-btn { padding: .3rem .8rem; background: transparent; border: 0; color: var(--muted); }
.text-btn:hover { color: var(--violet); text-decoration: underline; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.form-bottom > div { display: flex; gap: .3rem; }
.editor-form .check-label { display: inline-flex; align-items: center; gap: .55rem; }
.check-label input { accent-color: var(--violet); width: 1.15rem; height: 1.15rem; margin: 0; }
.signin-box p { margin: .5rem 0 1.3rem; }
.inline-link { margin-left: 1rem; color: var(--violet); }
@media (min-width: 1600px) { .cover-grid { clip-path: polygon(0 0,53% 0,46% 100%,0 100%); } }
@media (max-width: 930px) {
  .cards { gap: 1rem; }
  .dept-card { grid-template-columns: 1fr; grid-template-rows: 9.5rem auto; }
  .card-image::after { display: none; }
  .card-image img { object-position: 50% 39%; }
  .theme-lagoon .card-image img { object-position: center 45%; }
  .card-body { padding: 1.25rem; }
  .letter-art { writing-mode: horizontal-tb; }
  .shortcut-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .cover-copy { width: 48%; }
  .cover h1 { font-size: clamp(3.5rem, 7.8vw, 4.8rem); }
  .cover-inner { min-height: 25rem; }
}
@media (max-width: 660px) {
  .mast-inner { min-height: 4.15rem; gap: .6rem; }
  .brand { gap: .55rem; }
  .brand-mark { width: 2rem; height: 2rem; font-size: 1.38rem; }
  .brand-words strong { font-size: 1.02rem; }
  .brand-words small { font-size: .75rem; letter-spacing: .04em; }
  .mast nav { gap: .7rem; }
  .mast nav a { font-size: .88rem; }
  .mast nav .nav-text:first-child { display: none; }
  .manage-link { padding-inline: .65rem; }
  .cover-inner { display: grid; min-height: auto; grid-template-rows: minmax(11.7rem, 49vw) auto; }
  .cover-art { inset: 0 0 auto 0; height: clamp(12.75rem, 56vw, 22.5rem); }
  .cover-art img { object-position: 57% 36%; }
  .cover-grid { background: linear-gradient(to bottom, #7764cf, #7764cf); clip-path: polygon(0 clamp(10.8rem,46vw,18.2rem),100% clamp(12.8rem,55vw,22.2rem),100% 100%,0 100%); }
  .cover-grid::before { clip-path: polygon(0 calc(clamp(10.8rem,46vw,18.2rem) + 2px),100% calc(clamp(12.8rem,55vw,22.2rem) + 2px),100% 100%,0 100%); }
  .cover-copy { grid-row: 2; width: 100%; padding: 1.25rem .1rem 1.6rem; }
  .cover h1 { font-size: clamp(2.35rem, 8.8vw, 3.6rem); line-height: 1.18; margin: .5rem 0 .6rem; }
  .cover h1 br { display: none; }
  .overline { font-size: .82rem; }
  .cover-deck { font-size: 1rem; max-width: 25em; }
  .cover-button { margin-top: 1rem; min-height: 2.65rem; }
  .cover-credit { bottom: auto; top: .7rem; left: 0; right: auto; font-size: .75rem; }
  .section { padding-block: 2rem 2.3rem; }
  .section-head { gap: .75rem; margin-bottom: 1.1rem; }
  .section h2, .shortcut-intro h2 { font-size: 1.9rem; }
  .search-box { width: 49%; padding: .3rem .65rem; }
  .search-box input { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .dept-card { grid-template-columns: minmax(5.8rem, 29%) minmax(0, 1fr); grid-template-rows: auto; min-height: 12rem; }
  .card-image::after { display: block; }
  .card-body { padding: 1rem .85rem; }
  .card-image img { object-position: 46% center; }
  .theme-lagoon .card-image img { object-position: 28% center; }
  .card-body h3 { font-size: 1.35rem; }
  .shortcut-zone { padding-block: 2rem; }
  .shortcut-groups { grid-template-columns: 1fr; gap: 1rem; }
  .foot-inner { align-items: flex-start; }
  .foot-school { display: block; margin: .2rem 0 0; }
  .credits { max-width: 56%; }
  .admin-page { padding-block: 2rem 4rem; }
  .admin-tools, .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-tools { margin-bottom: 1.35rem; }
  .fields, .link-fields { grid-template-columns: 1fr; }
  .link-fields { gap: .45rem; padding: .7rem; background: #f3f2f9; }
  .link-fields .text-btn { justify-self: start; }
  .form-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .mast nav .nav-text { display: none; }
  .dept-card { grid-template-columns: 1fr; grid-template-rows: 7rem auto; }
  .card-image::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
