/* User-provided Edelweiss Academy artwork and event material. */
.site-header .wordmark-flower,
.footer-wordmark .wordmark-flower {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: none;
}
.footer-wordmark .wordmark-flower {
  width: 37px;
  height: 37px;
}

.hero {
  background:
    radial-gradient(ellipse at 76% 54%, rgba(67, 95, 134, 0.34), transparent 32%),
    radial-gradient(ellipse at 90% 18%, rgba(158, 129, 91, 0.1), transparent 26%),
    linear-gradient(120deg, #080e18 0%, #111d2c 58%, #0a1423 100%);
}
.hero-shade {
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 12, 22, 0.64) 0%, rgba(7, 13, 24, 0.34) 46%, rgba(7, 13, 24, 0.04) 100%), linear-gradient(0deg, rgba(7, 13, 24, 0.58), transparent 33%);
}
.hero-portrait {
  position: absolute;
  z-index: 1;
  right: max(calc((100vw - var(--max)) / 2 + 10px), 4vw);
  bottom: 0;
  width: min(43vw, 560px);
  height: min(78vh, 700px);
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.36));
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 100%);
}
.hero-inner {
  z-index: 2;
}
.hero-caption,
.hero-vertical,
.hero-bottom {
  z-index: 3;
}

.dorm-card::after {
  z-index: 0;
}
.dorm-crest {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: 19px;
  width: 128px;
  height: 155px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}
.dorm-card-top,
.dorm-card > p,
.dorm-card > h3,
.dorm-card-foot {
  position: relative;
  z-index: 2;
  max-width: 76%;
}
.dorm-card-top {
  max-width: none;
}
.dorm-card-foot {
  max-width: none;
}

.event-materials {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.material-disclosure > summary,
.rules-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.material-disclosure > summary::-webkit-details-marker,
.rules-disclosure > summary::-webkit-details-marker {
  display: none;
}
.material-disclosure > summary {
  min-height: 75px;
  color: var(--white);
}
.material-label {
  color: var(--gold);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.material-disclosure > summary strong {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.material-plus {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.25s;
}
.material-disclosure[open] > summary .material-plus {
  transform: rotate(45deg);
}
.material-disclosure > summary:focus-visible,
.rules-disclosure > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
.materials-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) 1fr;
  gap: clamp(25px, 6vw, 78px);
  align-items: center;
  padding: 12px 0 38px;
}
.cocktail-figure,
.original-menu-figure {
  margin: 0;
}
.cocktail-figure img {
  display: block;
  width: min(100%, 320px);
  max-height: 470px;
  margin: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.cocktail-figure figcaption,
.original-menu-figure figcaption {
  margin-top: 10px;
  color: #aeb3b8;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.materials-copy {
  max-width: 490px;
  color: #c2c5c7;
  font-size: 12px;
  line-height: 2.15;
}
.materials-copy .eyebrow {
  color: var(--gold);
}
.materials-copy h3 {
  margin: 18px 0 14px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.materials-copy p {
  margin: 0 0 14px;
}
.materials-copy .menu-limit {
  color: #d6c9aa;
  font-size: 11px;
}
.rules-disclosure {
  margin: 0 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.rules-disclosure > summary {
  min-height: 58px;
  color: #ece9df;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.rules-layout {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.8fr);
  gap: clamp(22px, 4vw, 50px);
  align-items: start;
  padding: 4px 0 8px;
}
.guideline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c1c4c6;
  font-size: 11px;
  line-height: 1.95;
}
.guideline-list li {
  padding: 10px 0 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  position: relative;
}
.guideline-list li::before {
  content: '✳';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--gold);
  font-size: 10px;
}
.original-menu-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff5dc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-note a {
  color: #d1c09a;
  text-decoration: underline;
  text-decoration-color: rgba(209, 192, 154, 0.48);
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .hero-portrait {
    right: 1vw;
    width: 45vw;
    height: 72vh;
  }
  .dorm-crest {
    right: 10px;
    width: 112px;
    height: 142px;
  }
}
@media (max-width: 600px) {
  .site-header .wordmark-flower {
    width: 34px;
    height: 34px;
  }
  .hero-portrait {
    right: -38px;
    width: 76vw;
    height: 56svh;
    opacity: 0.62;
    mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
  }
  .hero-shade {
    background: linear-gradient(90deg, rgba(6, 12, 22, 0.75), rgba(7, 13, 24, 0.43) 72%, rgba(7, 13, 24, 0.19)), linear-gradient(0deg, rgba(7, 13, 24, 0.6), transparent 39%);
  }
  .dorm-crest {
    top: 44px;
    right: 11px;
    width: 112px;
    height: 134px;
  }
  .dorm-card-top,
  .dorm-card > p,
  .dorm-card > h3 {
    max-width: 70%;
  }
  .dorm-card-foot {
    max-width: none;
  }
  .material-disclosure > summary {
    min-height: 68px;
    gap: 10px;
  }
  .material-label {
    display: none;
  }
  .material-disclosure > summary strong {
    margin-left: 0;
    font-size: 12px;
  }
  .materials-grid,
  .rules-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cocktail-figure img {
    width: min(100%, 300px);
    max-height: 440px;
  }
  .original-menu-figure img {
    max-width: 440px;
    margin: 0 auto;
  }
  .materials-copy h3 {
    font-size: 25px;
  }
  .guideline-list {
    font-size: 11px;
  }
}

.dorm-card > p.dorm-detail {
  max-width: 64%;
  margin-top: 9px;
  color: rgba(232, 219, 183, 0.82);
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .dorm-card > p.dorm-detail {
    max-width: 64%;
  }
}

/* Student introductions */
.student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(38px, 5vw, 68px);
  scroll-margin-top: 100px;
}
.student-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(202, 183, 137, 0.24);
  background: linear-gradient(160deg, rgba(25, 34, 49, 0.97), rgba(12, 19, 30, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}
.student-card:hover {
  transform: translateY(-4px);
  border-color: rgba(202, 183, 137, 0.55);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.32);
}
.student-card-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid rgba(202, 183, 137, 0.22);
  background: radial-gradient(ellipse at 50% 42%, rgba(91, 111, 135, 0.26), transparent 62%), #101827;
}
.student-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 700ms ease;
}
.student-card:hover .student-card-photo img {
  transform: scale(1.035);
  filter: saturate(1.06);
}
.student-dorm-tag,
.student-card-number {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(232, 219, 183, 0.34);
  background: rgba(9, 15, 25, 0.78);
  color: #f0e8d6;
  backdrop-filter: blur(8px);
}
.student-dorm-tag {
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.student-card-number {
  right: 13px;
  bottom: 13px;
  padding: 5px 7px;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.dorm-edel .student-dorm-tag { border-color: rgba(222, 198, 137, 0.7); color: #f1dca6; }
.dorm-vireo .student-dorm-tag { border-color: rgba(157, 192, 167, 0.68); color: #c7e0cc; }
.dorm-mira .student-dorm-tag { border-color: rgba(159, 178, 219, 0.68); color: #c8d8f4; }
.student-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 20px 22px;
}
.student-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: rgba(222, 226, 232, 0.58);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.student-card-meta span + span::before {
  content: "／";
  margin-right: 13px;
  color: rgba(202, 183, 137, 0.62);
}
.student-card h3 {
  margin: 10px 0 0;
  color: #f2eee6;
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}
.student-reading {
  min-height: 1em;
  margin: 4px 0 0;
  color: rgba(222, 226, 232, 0.52);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.student-card blockquote {
  margin: 16px 0 18px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(202, 183, 137, 0.65);
  color: rgba(238, 233, 222, 0.9);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 12px;
  line-height: 1.8;
}
.student-evaluation {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(202, 183, 137, 0.2);
}
.student-eval-heading {
  margin: 0 0 10px;
  color: #dbc68e;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.student-eval-heading small {
  display: block;
  margin-top: 3px;
  color: rgba(222, 226, 232, 0.42);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}
.student-evaluation > p:not(.student-eval-heading) {
  margin: 8px 0 0;
  color: rgba(229, 231, 235, 0.82);
  font-size: 10px;
  line-height: 1.8;
}
.student-evaluation > p > span {
  display: inline-block;
  min-width: 5em;
  margin-right: 4px;
  color: rgba(219, 198, 142, 0.86);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.student-draft-note {
  margin: 24px 0 0;
  color: rgba(222, 226, 232, 0.5);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.035em;
}
@media (max-width: 1050px) {
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .student-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .student-card-photo { aspect-ratio: 5 / 4; }
  .student-card-body { padding: 17px 18px 20px; }
  .student-card h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .student-card,
  .student-card-photo img { transition: none; }
  .student-card:hover { transform: none; }
}
