/* ============================================================================
   SHU News — shared stylesheet for the news index (news.html) and every
   generated article page (news/<slug>.html). Light theme, matches the site.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --bg-soft2:  #f7fafd;
  --ink:       #0f1e2e;
  --ink-dark:  #050b16;
  --body:      #4a5b6e;
  --body2:     #26374a;
  --muted:     #6b7c8d;
  --muted2:    #8798a8;
  --accent:    #388FE1;
  --accent-h:  #2f7ed0;
  --border:    #e7edf5;
  --border2:   #eef3f9;
  --border3:   #eaf0f7;
  --border-in: #e4ebf3;
  --sans:      'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'Space Mono', ui-monospace, monospace;
  --head:      'Montserrat', 'Open Sans', system-ui, -apple-system, sans-serif;  /* headings */
  --brand:     'Montserrat', 'Open Sans', system-ui, sans-serif;  /* SHU wordmark in headings */
  --radius:    6px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-btn:   0 12px 26px -12px rgba(56,143,225,.55), 0 0 0 1px rgba(56,143,225,.25), 0 0 20px -4px rgba(56,143,225,.45);
  --shadow-btn-h: 0 16px 32px -12px rgba(56,143,225,.66), 0 0 0 1px rgba(56,143,225,.4), 0 0 26px -2px rgba(56,143,225,.6);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 17px; overflow-x: hidden; }
a { text-decoration: none; color: var(--accent); transition: color .2s var(--ease); }
a:hover { color: var(--accent-h); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.03em; }
h1, h2 { font-family: var(--head); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 26px; }
.shu-name { font-family: var(--mono); }
/* SHU wordmark in headings renders in Montserrat ExtraBold; surrounding words drop lighter (see :has rule). */
h1 .shu-name, h2 .shu-name { font-family: var(--brand); font-weight: 800; -webkit-text-stroke: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes shuFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shuShine { 0% { transform: translateX(-180%) skewX(-16deg); } 100% { transform: translateX(280%) skewX(-16deg); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* buttons */
.btn { font-family: var(--mono); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; border-radius: var(--radius); cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .2s; }
.btn-primary { position: relative; overflow: hidden; color: #fff; background: var(--accent); border: 1px solid rgba(56,143,225,.6); padding: 16px 34px; font-size: 15px; box-shadow: var(--shadow-btn); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-btn-h); }
.btn-primary .sheen { position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: translateX(-180%) skewX(-16deg); pointer-events: none; }
.btn-primary:hover .sheen { animation: shuShine .7s ease; }
.btn-outline { position: relative; overflow: hidden; z-index: 0; background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 16px 30px; font-size: 15px; }
.btn-outline::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--ease); }
.btn-outline:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(56,143,225,.6), 0 0 0 1px rgba(56,143,225,.2); }
.btn-outline:hover::before { transform: scaleX(1); }
.btn-sm { padding: 10px 20px; font-size: 12.5px; }

/* nav */
nav { position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border3); }
.nav-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 78px; width: auto; transition: transform .4s var(--ease); }
.nav-logo:hover img { transform: scale(1.03); }
.nav-back { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--body); text-decoration: none; padding: 13px 22px; border: 1.5px solid var(--border-in); border-radius: 100px; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.nav-back:hover { color: var(--ink); border-color: var(--accent); background: rgba(56,143,225,.08); }

/* menu overlay */
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(255,255,255,.98); backdrop-filter: blur(8px); overflow-y: auto; animation: shuFade .22s ease; display: none; }
.menu.open { display: block; }
.menu-top { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.menu-top img { height: 46px; width: auto; }
.menu-close { width: 46px; height: 46px; border: 1px solid var(--border-in); border-radius: 11px; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink); transition: border-color .2s var(--ease); }
.menu-close:hover { border-color: var(--accent); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; margin: 24px 0 60px; border-top: 1px solid var(--border2); }
.menu-link { display: block; padding: 26px 6px; border-bottom: 1px solid var(--border2); color: var(--ink); }
.menu-link:hover { color: var(--accent); }
.menu-link .ml-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.menu-link .ml-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* news index — page header */
.page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; text-align: center; }
.page-hero .blob { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(70px); opacity: .5; top: -180px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #d7e8fb, transparent 65%); z-index: 0; }
.page-hero-inner { position: relative; z-index: 2; }
.eyebrow { font-size: clamp(13px,1.6vw,16px); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); }
.page-hero h1 { font-size: clamp(40px,6.5vw,74px); font-weight: 800; letter-spacing: -.035em; margin: 12px auto 0; }
.page-hero p { font-size: clamp(17px,2vw,20px); color: var(--body); max-width: 52ch; margin: 18px auto 0; }

/* news index — list */
.news { padding: 30px 0 100px; }
.news-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.news-card { display: block; border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; background: #fff; scroll-margin-top: 96px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.news-card:hover { border-color: var(--accent); box-shadow: 0 16px 36px -20px rgba(15,30,46,.18); transform: translateY(-2px); }
.news-meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.news-tag { color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 11px; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; }
.news-date { color: var(--muted); }
.news-card h2 { font-size: clamp(21px,3vw,28px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 8px; }
.news-card p { color: var(--body); font-size: 16px; }
.news-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== article page ===== */
.article { max-width: 760px; margin: 0 auto; padding: 52px 26px 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.article-header { margin-bottom: 30px; }
.article-meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; margin-bottom: 16px; }
.article-tag { color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 11px; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; }
.article-date { color: var(--muted); }
.article h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.article-byline { margin-top: 14px; color: var(--muted); font-size: 15px; }
.article-hero { margin: 30px 0 6px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.article-hero img { width: 100%; height: auto; display: block; }

/* prose */
.article-body { font-size: 18px; line-height: 1.75; color: var(--body2); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: clamp(24px,3.4vw,32px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-top: 44px; line-height: 1.15; }
.article-body h3 { font-size: clamp(20px,2.6vw,24px); font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin-top: 34px; line-height: 1.2; }
.article-body h4 { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 26px; }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(56,143,225,.35); }
.article-body a:hover { color: var(--accent-h); border-bottom-color: var(--accent-h); }
.article-body strong, .article-body b { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 22px; margin-left: 0; color: var(--ink); font-size: clamp(20px,2.4vw,24px); font-weight: 600; line-height: 1.4; }
.article-body blockquote p { color: var(--ink); }
.article-body hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }
.article-body figure { margin: 8px 0; }
.article-body img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.article-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.article-body code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.article-body pre { background: var(--ink-dark); color: #cfe1f4; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article-body th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* shortcodes (:::callout / :::cta) */
.callout { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 22px; font-size: 16px; color: var(--body2); }
.callout > * + * { margin-top: 10px; }
.callout strong { color: var(--ink); }
.cta-block { text-align: center; margin: 36px 0; }
/* buttons rendered inside prose must not inherit the prose link colour/underline */
.article-body a.btn, .article-body a.btn:hover { border-bottom: 0; }
.article-body a.btn-primary, .article-body a.btn-primary:hover { color: #fff; }
.article-body a.btn-outline:hover { color: #fff; }

/* article footer / back-to-news */
.article-foot { max-width: 760px; margin: 0 auto; padding: 34px 26px 90px; }
.article-foot-inner { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* footer */
footer { border-top: 1px solid var(--border2); padding: 44px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; }
.foot-inner .footer-logo img { height: 44px; width: auto; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: #9aa8b8; }

/* Heading words drop to a lighter weight when SHU is present, so the bold wordmark pops. */
h1:has(.shu-name), h2:has(.shu-name) { font-weight: 500; }
/* Log In sits in the nav on desktop; on mobile it hides and moves into the hamburger menu. */
.menu-login { display: none; margin: 4px 0 8px; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav .wrap { padding: 0 14px; }
  .nav-inner { height: 76px; }
  .nav-logo img { height: 58px; }
  .nav-back { font-size: 12px; padding: 11px 16px; }
  .foot-inner { flex-direction: column; text-align: center; justify-content: center; }
  .article-body { font-size: 17px; }
}
