@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--color-background); color: var(--color-text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
  body { margin: 0; min-width: 320px; line-height: 1.6; }
  button, a { font: inherit; }
  a { color: inherit; }
  button { cursor: pointer; }
  :focus, :focus-visible { outline: none; }
  [hidden] { display: none !important; }
  .site-shell { min-height: 100vh; }
  .site-header { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 76px; padding: 8px 12px 11px; background: var(--color-surface); }
  .site-brand { display: flex; align-items: center; justify-self: end; gap: 10px; min-width: 0; }
  .site-brand-copy { min-width: 0; text-align: right; }
  .site-brand h1 { margin: 0; color: var(--color-text); font-size: clamp(1.08rem, 4.8vw, 1.42rem); line-height: 1.2; letter-spacing: .06em; white-space: nowrap; }
  .site-brand-campus { display: block; margin: 3px 0 0; color: var(--color-muted); font-size: clamp(.62rem, 2.7vw, .78rem); font-weight: 400; line-height: 1.25; letter-spacing: .04em; white-space: nowrap; }
  .site-brand-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
  .site-brand-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .header-start { display: flex; align-items: center; min-width: 0; }
  .theme-toggle { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text); }
  .theme-toggle:hover { background: var(--color-surface-subtle); }
  .theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .theme-icon-moon { display: none; }
  :root[data-theme="dark"] .theme-icon-sun { display: none; }
  :root[data-theme="dark"] .theme-icon-moon { display: block; }
  .header-link { justify-self: start; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--color-header-link); text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .15em; font-weight: 700; font-size: .82rem; }
  .stripe { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-rows: repeat(3, 2px); height: 6px; }
  .stripe i { display: block; width: 100%; height: 2px; }
  .stripe i:nth-child(1) { background: var(--color-tut-blue); }
  .stripe i:nth-child(2) { background: var(--color-surface); }
  .stripe i:nth-child(3) { background: var(--color-tut-gray); }
  .site-footer { max-width: var(--content-width); margin: 0 auto; padding: 22px 18px 34px; background: var(--color-surface); color: var(--color-muted); font-size: .76rem; text-align: center; }
  .site-footer p { margin: 0 0 10px; }
  .site-footer nav, .app-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .site-footer a, .app-footer a { color: var(--color-tut-blue); }
  .noscript-message { margin: 18px auto; padding: 18px; border-radius: 18px; background: var(--color-notice-background); }
  @media (max-width: 430px) {
    .site-header { grid-template-columns: 1fr auto; min-height: 94px; padding-top: 7px; }
    .site-header > .header-start { align-self: start; }
    .site-brand { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 8px; max-width: 100%; }
    .site-brand h1 { font-size: clamp(1.02rem, 5.4vw, 1.28rem); }
    .site-brand-campus { font-size: clamp(.58rem, 2.5vw, .7rem); }
    .site-brand-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  }
}
