:root {
    --ink:      #1B2420;
    --paper:    #F6F3EA;
    --surface:  #FFFFFF;
    --gold:     #B8902E;
    --line:     #E3DFD1;
    --muted:    #635C4C;
    --brand:    #1F4033; /* overridden inline per college */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ---- Eyebrow label — the signature device used before every heading ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    display: inline-block;
}
.eyebrow--light { color: rgba(255,255,255,0.92); }
.eyebrow--light::before { background: var(--gold); }

/* ---- Header ---- */
.site-header {
    background: rgba(246, 243, 234, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}
.brand img {
    width: 38px; height: 38px;
    object-fit: contain;
    border-radius: 8px;
}
.brand__monogram {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand__name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.main-nav a {
    position: relative;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    padding-bottom: 3px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0%;
    height: 1.5px;
    background: var(--brand);
    transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.main-nav__cta {
    background: var(--brand);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px !important;
}
.main-nav__cta::after { display: none; }
.main-nav__cta:hover { opacity: 0.88; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 460px;
    background-color: var(--brand);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(0deg, var(--ink) 0%, rgba(27,36,32,0.35) 55%, rgba(27,36,32,0.55) 100%);
    mix-blend-mode: multiply;
    opacity: 0.85;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(184,144,46,0.35), transparent 55%);
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 28px 56px;
    color: #fff;
    width: 100%;
}
.hero h1 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    color: #fff;
    max-width: 820px;
    line-height: 1.12;
}
.hero__desc {
    margin-top: 16px;
    font-size: 16px;
    max-width: 620px;
    color: rgba(255,255,255,0.86);
}
.hero__rule {
    margin-top: 28px;
    width: 64px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ---- Sections ---- */
.section { padding: 76px 28px; }
.section--tinted { background: var(--surface); }
.section__inner { max-width: 1180px; margin: 0 auto; }
.section__inner--split {
    display: grid;
    grid-template-columns: 780px 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 760px) {
    .section__inner--split { grid-template-columns: 1fr; }
    .section { padding: 52px 22px; }
}

.section h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: 22px;
}

.section__image { width: 100%; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 30px -14px rgba(27,36,32,0.35); }
.section__image--round { border-radius: 50%; aspect-ratio: 1/1; }

.rich-text { font-size: 15.5px; color: var(--muted); }
.rich-text p + p { margin-top: 12px; }
.rich-text--small { font-size: 13.5px; }
.rich-text--quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink);
    border-left: 2.5px solid var(--gold);
    padding-left: 20px;
}

/* ---- Card grids ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 6px;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -18px rgba(27,36,32,0.28);
    border-color: transparent;
}
.info-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--brand); }

.card-grid--numbered .info-card--numbered { position: relative; padding-top: 34px; }
.info-card__index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.card-grid--people { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.person-card { text-align: center; }
.person-card img {
    width: 108px; height: 108px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 14px;
    box-shadow: 0 10px 24px -12px rgba(27,36,32,0.35);
}
.person-card h4 { font-size: 15.5px; margin-bottom: 4px; }

/* ---- Departments chips ---- */
.dept-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.dept-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.dept-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 6px;
}
.gallery-grid img {
    width: 100%; height: 160px; object-fit: cover; border-radius: 12px;
    transition: transform 0.25s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ---- Notices ---- */
.notice-list { list-style: none; margin-top: 6px; }
.notice-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list__title {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 4px;
}

/* ---- Updates strip (Announcements / Admission Notice / Publications) ---- */
.updates-strip { padding-top: 0; margin-top: -64px; position: relative; z-index: 3; padding-bottom: 48px; }
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.update-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 44px -22px rgba(27,36,32,0.4);
}
.update-widget--accent { border-top: 3px solid var(--gold); }
.update-widget h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}
.update-list { list-style: none; }
.update-list li {
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}
.update-list li:last-child { border-bottom: none; padding-bottom: 0; }
.update-list__title {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    margin-bottom: 3px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.72);
    padding: 48px 28px 32px;
}
.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}
.site-footer__college {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.site-footer__uni {
    font-size: 12.5px;
    margin-top: 6px;
    color: rgba(255,255,255,0.55);
}
.site-footer__back {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
}
.site-footer__back:hover { text-decoration: underline; }
.site-footer__copy {
    margin-top: 22px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
