:root {
  color-scheme: light;
  --navy: #182337;
  --deep-navy: #151e2f;
  --crimson: #981c39;
  --paper: #f9f6ef;
  --white: #fffefb;
  --body: #3c4450;
  --muted: #555c66;
  --line: #dfd7cb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--navy); background: var(--white); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
p { color: var(--body); }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 5px; }
.wrap { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  top: .75rem; left: .75rem; z-index: 1; width: auto; height: auto;
  clip-path: none; padding: .55rem 1rem; background: var(--white);
}

.masthead { background: var(--white); }
.masthead-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2rem 2rem; min-height: 5.5rem; padding-block: .45rem; }
.identity, .school, nav { display: flex; align-items: center; }
.identity { gap: 1rem; min-width: 0; max-width: 100%; }
.identity img { display: block; object-fit: contain; flex: none; }
.school { gap: .6rem; border-inline-start: 1px solid var(--line); padding-inline-start: 1rem; text-decoration: none; }
.school > span { font-size: .9rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.school small { display: block; margin-top: .28rem; color: var(--muted); font-size: .81rem; font-weight: 400; }
nav { flex-wrap: wrap; gap: .15rem clamp(1.05rem, 3vw, 2.1rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover, .school:hover > span { text-decoration: underline; }
.mobile-nav { display: none; }

.hero { background: var(--paper); border-block: 1px solid var(--line); container: hero / inline-size; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2.25rem, 6.3vw, 6rem);
  padding-block: clamp(3.15rem, 7.3vw, 6.65rem);
}
.eyebrow { color: var(--crimson); font: 700 .875rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.dedication { display: block; margin-bottom: .42rem; font: normal clamp(1.3rem, 2.5vw, 2.05rem)/1.25 var(--serif); }
.title { display: block; font: normal clamp(3.6rem, 7.5vw, 7.05rem)/.96 var(--serif); letter-spacing: -.035em; }
.hero-copy { max-width: 29rem; margin-top: 1.45rem; font-size: clamp(1.08rem, 1.55vw, 1.28rem); line-height: 1.46; }
.hero-detail { margin-top: .75rem; color: var(--crimson); }
.hero-detail a { text-decoration-color: #be7b89; }
.hero-detail a:hover { text-decoration-color: currentColor; }

.registration {
  position: relative; padding: clamp(1.45rem, 3.1vw, 2.7rem);
  background: var(--navy); color: var(--white); border-top: .32rem solid var(--crimson);
  container-type: inline-size;
}
.registration .eyebrow { margin-bottom: 1.18rem; color: #f4b5be; }
.opening { display: block; font: normal clamp(1.37rem, 2.45vw, 2.15rem)/1.22 var(--serif); }
.opening-date, .opening-time, .calendar-date { display: inline-block; max-width: 100%; }
.calendar-date { overflow-wrap: anywhere; }
.opening-time { display: block; }
.local-opening { margin-top: .72rem; font-size: .875rem; color: #ebd8de; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #586171; margin-top: 1.7rem; padding-top: 1rem; }
.countdown > div { text-align: center; padding-inline: .12rem; }
.countdown > div + div { border-inline-start: 1px solid #586171; }
.countdown span { display: block; font-size: clamp(1.4rem, 3.5vw, 2.65rem); line-height: 1.13; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: .25rem; color: #dcdee3; font-size: .875rem; overflow-wrap: anywhere; }
#registration-status:not(:empty) { border-top: 1px solid #586171; margin-top: 1.45rem; padding-top: 1rem; }
.registration-action {
  display: inline-block; margin-top: .95rem; background: var(--white); color: var(--navy);
  padding: .55rem .95rem; font-weight: 650; text-decoration: none;
}
.registration-action:hover { background: #f4dbe0; }
.registration :focus-visible, .footer :focus-visible { outline-color: #f4b5be; }

.tribute {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  align-items: start; column-gap: clamp(2rem, 7vw, 7rem); row-gap: 2.25rem;
  padding-block: clamp(3.5rem, 7vw, 6.3rem);
}
h2 { font: normal clamp(2.15rem, 4.15vw, 3.65rem)/1.05 var(--serif); letter-spacing: -.045em; }
.tribute h2 { margin-bottom: 1.4rem; }
.tribute-text { max-width: 65ch; font-size: 1.06rem; }
.tribute-text p + p { margin-top: 1rem; }
.portrait { margin-top: .26rem; }
.portrait-image {
  display: grid; place-items: end center; overflow: hidden;
  background: #eee4d8; border-block-start: 2px solid var(--crimson);
  padding: 1.15rem 1.5rem 0; min-height: 18rem;
}
.portrait img { display: block; width: min(100%, 16.25rem); height: auto; }
figcaption { border-block-end: 1px solid var(--line); padding: .64rem 0; color: var(--muted); font-size: .88rem; }
.shloka { grid-column: 1 / -1; background: var(--paper); border-inline-start: 3px solid var(--crimson); padding: 1.43rem 1.8rem; }
.shloka blockquote, .shloka p { font-family: 'Noto Serif Devanagari', 'Devanagari Sangam MN', Mangal, serif; overflow-wrap: anywhere; }
.shloka blockquote { color: var(--navy); font-size: clamp(1.23rem, 2.4vw, 1.74rem); line-height: 1.65; }
.shloka p { margin-top: .6rem; max-width: 65ch; }

.awards { background: var(--paper); border-block: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.5fr); gap: clamp(2rem, 6.5vw, 6rem); padding-block: clamp(3.05rem, 6.8vw, 5.8rem); }
.section-copy p { margin-top: 1rem; max-width: 23rem; }
.section-body { min-width: 0; container-type: inline-size; }
.section-body p { margin-top: 1rem; }
.award-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid #cdbfb2; }
.award-list div { padding: .8rem clamp(.5rem, 1.5vw, 1.15rem); }
.award-list div + div { border-inline-start: 1px solid #cdbfb2; }
.award-list dt { font-size: .875rem; color: var(--crimson); font-weight: 700; }
.award-list dd { margin: .06rem 0 0; font: normal clamp(1.43rem, 7cqi, 3.15rem)/1.25 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.award-consolation { font-weight: 650; color: var(--navy); }
.section-body .assessment-note { margin: 0 0 .55rem; font-size: .9rem; }
.assessment-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.assessment-table th, .assessment-table td { text-align: left; vertical-align: top; }
.assessment-table thead { color: var(--white); background: var(--navy); }
.assessment-table thead th { padding: .6rem .85rem; font-size: .875rem; font-weight: 600; }
.assessment-table thead th:nth-child(2) { width: 5.5rem; }
.assessment-table thead th:nth-child(3) { width: 4.5rem; }
.assessment-table :is(th, td):nth-child(n+2) { text-align: end; font-variant-numeric: tabular-nums; }
.assessment-table tbody tr, .assessment-table tfoot tr { border-bottom: 1px solid var(--line); }
.assessment-table tbody th, .assessment-table tbody td, .assessment-table tfoot th, .assessment-table tfoot td { padding: .8rem .85rem; }
.assessment-table tbody th { font-weight: 650; }
.assessment-table tbody th span { display: block; margin-top: .12rem; font-weight: 400; color: var(--body); }
.assessment-table td { white-space: nowrap; }
.cell-label { display: none; }
.assessment-table tfoot { background: var(--paper); font-weight: 700; }

.footer { padding-block: clamp(2.9rem, 6.6vw, 5.5rem); color: var(--white); background: var(--deep-navy); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 8rem); }
.footer h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
.footer p { margin-top: .8rem; color: #d9dce2; }
.footer h3 { margin-top: 1.25rem; font-size: 1rem; }
.footer h3 + p { margin-top: .3rem; }
.dates { margin: 1.2rem 0 .9rem; border-top: 1px solid #545d6e; }
.dates div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1.3rem; padding: .58rem 0; border-bottom: 1px solid #545d6e; }
.dates dd { margin: 0; font-weight: 650; }
address { margin-top: 1.2rem; font-style: normal; }
address strong { font-size: 1.1rem; }
address div { color: #d9dce2; }
address a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.contact-list { display: flex; flex-wrap: wrap; gap: 0 1rem; list-style: none; padding: 0; margin: .65rem 0 0; }

@container (max-width: 15rem) {
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .75rem; }
  .countdown > div:nth-child(3) { border-inline-start: 0; }
}

@container hero (max-width: 35rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .title-break { display: none; }
}

@container (max-width: 21rem) {
  .award-list { display: block; }
  .award-list div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .1rem .75rem; }
  .award-list div + div { border-inline-start: 0; border-top: 1px solid #cdbfb2; }
  .assessment-table, .assessment-table tbody, .assessment-table tfoot { display: block; }
  .assessment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .assessment-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assessment-table :is(tbody, tfoot) th { grid-column: 1 / -1; padding-bottom: .25rem; overflow-wrap: anywhere; }
  .assessment-table :is(tbody, tfoot) td { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; padding-top: .12rem; white-space: normal; text-align: start; }
  .assessment-table .cell-label { display: inline; font-size: .875em; color: var(--muted); }
}

@media (max-width: 53rem) {
  .wrap { width: calc(100% - 3rem); }
  .masthead-inner { gap: .75rem; }
  nav { column-gap: 1rem; }
  .hero-inner { gap: 2rem; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .section-copy p { max-width: 36rem; }
}

@media (max-width: 47rem) {
  .wrap { width: calc(100% - clamp(2rem, 9vw, 3rem)); }
  .masthead-inner { min-height: 4rem; }
  .identity { gap: .65rem; }
  .identity > img, .school img { width: clamp(2.15rem, 9vw, 2.6rem); height: auto; }
  .school { padding-inline-start: .65rem; }
  .masthead-nav { display: none; }
  .mobile-nav { display: flex; gap: 0 1.5rem; }
  .mobile-nav a { color: var(--crimson); text-decoration: underline; text-decoration-color: #be7b89; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-block: 1.6rem .8rem; }
  .dedication { margin-bottom: .3rem; }
  .title { font-size: clamp(2.15rem, 9vw, 3.7rem); line-height: .98; }
  .title-break { display: none; }
  .hero-copy { margin-top: .65rem; }
  .hero-detail { margin-top: .45rem; }
  .registration { padding: 1.15rem 1.1rem; }
  .registration .eyebrow { margin-bottom: .55rem; }
  .countdown { margin-top: .9rem; padding-top: .65rem; }
  .countdown span { font-size: 1.72rem; }
  .tribute { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .tribute-copy { display: contents; }
  .tribute h2 { grid-row: 1; margin: 0; }
  .portrait { grid-row: 2; }
  .portrait-image { min-height: 0; }
  .portrait img { max-height: 15rem; width: auto; max-width: 100%; object-fit: contain; }
  .shloka { padding: 1rem .9rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22.5rem) {
  .registration { padding: .95rem .85rem; }
  .countdown { margin-top: .7rem; padding-top: .55rem; }
}
