/* SNU main homepage — proportions and rhythm (12 November 2026).
   One type scale, one spacing rhythm, calmer headings and right-sized media. Scoped to the main website's homepage
   (body.is-home without .faculty-site), except the faculty grid, which looks the same on the Faculties page. */

/* ---------------------------------------------------------------- faculty grid (homepage and Faculties page)
   One colour, one grid: flat Somali Blue 800 cells divided by thin white lines, the faculty's name centred. */
body:not(.faculty-site) .fac-tile-grid { gap: 2px; }
body:not(.faculty-site) .fac-tile,
body:not(.faculty-site) .fac-tile:nth-child(4n+2),
body:not(.faculty-site) .fac-tile:nth-child(4n+4) {
  justify-content: center; align-items: center; min-height: 112px; padding: 1rem 1.25rem; border-radius: 0;
  background: var(--c-blue-800); box-shadow: none; text-align: center; transition: background .2s;
}
body:not(.faculty-site) .fac-tile:hover { background: var(--c-blue-700); transform: none; box-shadow: none; }
body:not(.faculty-site) .fac-tile:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
body:not(.faculty-site) .fac-tile-icon,
body:not(.faculty-site) .fac-tile-est,
body:not(.faculty-site) .fac-tile-go { display: none; }
body:not(.faculty-site) .fac-tile-name { margin: 0; font-weight: 500; font-size: 1rem; line-height: 1.5; text-wrap: balance; }
body:not(.faculty-site) .fac-tile:hover .fac-tile-name { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
/* the Graduate Studies band below the grid: the same blue, one step deeper */
body:not(.faculty-site) .grad-banner { margin-top: 2px; border-radius: 0; background: var(--c-blue-900); }
body:not(.faculty-site) .grad-banner .faculty-icon { color: var(--c-blue-200); }

body.is-home:not(.faculty-site) {
  --home-gap: clamp(3.25rem, 2rem + 3.5vw, 5rem);          /* the space above and below every section */
  --home-title: clamp(1.75rem, 1.15rem + 1.45vw, 2.4rem);   /* section titles */
}

/* ---------------------------------------------------------------- hero: present, not overwhelming */
body.is-home:not(.faculty-site) .portal-hero { height: clamp(560px, 80vh, 760px); }
body.is-home:not(.faculty-site) .hero-content > * { max-width: 640px; }
body.is-home:not(.faculty-site) .hero-kicker {
  margin-bottom: .9rem; font-family: var(--font-ui); font-weight: 700; font-size: clamp(.82rem, .75rem + .25vw, .95rem);
  letter-spacing: .18em; line-height: 1.3; color: var(--c-sky-300);
}
body.is-home:not(.faculty-site) .hero-title {
  margin: 0 0 1.1rem; font-size: clamp(2.3rem, 1rem + 3vw, 3.75rem); line-height: .98; letter-spacing: .01em; text-wrap: balance;
}
body.is-home:not(.faculty-site) .hero-text { max-width: 540px; font-size: clamp(1rem, .95rem + .2vw, 1.12rem); line-height: 1.6; }
/* the photo shows: a lighter veil at the top and middle, the text side still deep enough to read */
body.is-home:not(.faculty-site) .hero-shade {
  background:
    linear-gradient(0deg, color-mix(in oklab, var(--navy-900) 88%, transparent) 0%, color-mix(in oklab, var(--navy-900) 38%, transparent) 48%, color-mix(in oklab, var(--navy-900) 8%, transparent) 72%, color-mix(in oklab, var(--navy-900) 45%, transparent) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--navy-900) 62%, transparent), transparent 62%);
}

/* ---------------------------------------------------------------- section titles: a hierarchy, not a shout */
body.is-home:not(.faculty-site) .band-title,
body.is-home:not(.faculty-site) .story-title {
  font-family: var(--font-sans); font-weight: 700; font-size: var(--home-title); line-height: 1.12; letter-spacing: -.02em; text-transform: none; text-wrap: balance;
}
body.is-home:not(.faculty-site) .band-head { margin-bottom: 1.6rem; gap: .75rem 1.5rem; }
body.is-home:not(.faculty-site) .band-head > div:not(.ann-track) { max-width: 720px; }
body.is-home:not(.faculty-site) .band-head p:not(.band-kicker):not(.band-title) { font-size: 1rem; color: var(--muted); }

/* ---------------------------------------------------------------- one rhythm for every section */
body.is-home:not(.faculty-site) main .section { padding: var(--home-gap) 0; }
body.is-home:not(.faculty-site) .today { padding: var(--home-gap) 0 1.75rem; }
body.is-home:not(.faculty-site) .quick-strip { padding-bottom: calc(var(--home-gap) * .75); }
body.is-home:not(.faculty-site) .story { padding: calc(var(--home-gap) * .75) 0 var(--home-gap); }
body.is-home:not(.faculty-site) .ann-band { padding: calc(var(--home-gap) * .8) 0 calc(var(--home-gap) * .9); }

/* ---------------------------------------------------------------- the University's story: compact, balanced */
@media (min-width: 992px) { body.is-home:not(.faculty-site) .story-grid { grid-template-columns: .92fr 1.08fr; } }
body.is-home:not(.faculty-site) .story-media { min-height: 420px; }
body.is-home:not(.faculty-site) .story-panel { padding: 2.5rem 2.75rem 2.4rem 3.75rem; }
body.is-home:not(.faculty-site) .story-sub { margin: .5rem 0 1rem; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; letter-spacing: .14em; color: var(--muted); }
body.is-home:not(.faculty-site) .story-panel > p { font-size: 1rem; line-height: 1.7; }
body.is-home:not(.faculty-site) .story .vm-card { padding: 1.1rem 1.2rem; }
body.is-home:not(.faculty-site) .story .vm-card p { font-size: .92rem; line-height: 1.6; }
body.is-home:not(.faculty-site) .story-emblem { width: 88px; height: 88px; }
@media (min-width: 992px) { body.is-home:not(.faculty-site) .story-emblem { right: -44px; } }
@media (max-width: 991.98px) { body.is-home:not(.faculty-site) .story-emblem { bottom: -44px; } }
body.is-home:not(.faculty-site) .story-emblem img { width: 54px; }
body.is-home:not(.faculty-site) .story-stats { margin-top: 2.25rem; padding: 1.25rem 0; }
body.is-home:not(.faculty-site) .story-stats .stat-value { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
body.is-home:not(.faculty-site) .story-stats .stat-label { font-size: max(.75rem, 12px); }
body.is-home:not(.faculty-site) .rector-strip { margin-top: 2.25rem; }
body.is-home:not(.faculty-site) .rector-strip blockquote p { font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); line-height: 1.55; }

/* ---------------------------------------------------------------- news: a feature that leads, not dominates */
body.is-home:not(.faculty-site) .news-hero-media { aspect-ratio: 2 / 1; }
body.is-home:not(.faculty-site) .news-hero-body { padding: 1.25rem 1.5rem 1.5rem; }
body.is-home:not(.faculty-site) .news-hero-title { font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); line-height: 1.3; }

/* ---------------------------------------------------------------- research, campus life, campuses */
body.is-home:not(.faculty-site) .research-item { padding: 1.3rem 1.4rem; }
body.is-home:not(.faculty-site) .life-mosaic { grid-template-rows: 200px 200px; }
body.is-home:not(.faculty-site) .campus-img { aspect-ratio: 16 / 10; height: auto; object-fit: cover; }

/* ---------------------------------------------------------------- announcements: three readable cards per view */
@media (min-width: 992px) {
  body.is-home:not(.faculty-site) .ann-track { grid-auto-columns: calc((100% - 2 * 1.1rem) / 3); }
}
body.is-home:not(.faculty-site) .ann-title { font-size: .95rem; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 991.98px) {
  body.is-home:not(.faculty-site) .portal-hero { height: clamp(520px, 66vh, 680px); }
  body.is-home:not(.faculty-site) .story-panel { padding: 2rem 1.75rem; }
  body.is-home:not(.faculty-site) .story-media { min-height: 300px; }
  body.is-home:not(.faculty-site) .life-mosaic { grid-template-rows: none; }
}
@media (max-width: 767.98px) {
  body.is-home:not(.faculty-site) .portal-hero { height: clamp(520px, 84vh, 640px); }
  body.is-home:not(.faculty-site) .story-media { min-height: 240px; }
  body.is-home:not(.faculty-site) .news-hero-media { aspect-ratio: 16 / 10; }
  /* a phone shows two faculties and two campus-life photos per row, not one tall column */
  body.is-home:not(.faculty-site) .fac-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-home:not(.faculty-site) .fac-tile { min-height: 96px; padding: .85rem; }
  body.is-home:not(.faculty-site) .fac-tile-name { font-size: .92rem; hyphens: auto; }
  body.is-home:not(.faculty-site) .life-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .6rem; }
  body.is-home:not(.faculty-site) .life-mosaic > :first-child { grid-column: span 2; grid-row: auto; }
  body.is-home:not(.faculty-site) .life-tile .mega-tile-title { font-size: 1rem; }
  body.is-home:not(.faculty-site) .research-item { padding: 1.05rem 1.1rem; }
  body.is-home:not(.faculty-site) .story-panel { padding: 3.2rem 1.25rem 1.75rem; }
  /* campuses as a compact list: photo beside the name */
  body.is-home:not(.faculty-site) .campus-row { grid-template-columns: 1fr; gap: .6rem; }
  body.is-home:not(.faculty-site) .campus-card { flex-direction: row; align-items: stretch; }
  body.is-home:not(.faculty-site) .campus-img { flex: 0 0 112px; width: 112px; aspect-ratio: auto; min-height: 96px; height: auto; }
  body.is-home:not(.faculty-site) .campus-body { padding: .8rem 1rem; align-self: center; }
}
