html:has(> body.home-page){scrollbar-gutter:auto}
body.home-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}.home-accessible-title,.carousel-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.home-main{display:flex;flex:1;min-height:0;padding:0}.bento-grid{display:grid;flex:1;min-height:0;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1.22fr) minmax(0,1fr);gap:14px}.bento-card{display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;border:2px solid var(--ink);border-radius:3px;background:var(--paper);box-shadow:3px 3px 0 var(--ink);overflow:hidden}.campus-tile{grid-column:span 7;grid-row:1}.upcoming-tile{grid-column:span 5;grid-row:1}.perks-tile,.reminder-tile,.food-tile{grid-column:span 4;grid-row:2}.home-page .window-bar{height:27px;font-size:9px;padding:0 10px;gap:7px}.home-page .window-bar .pixel-icon{width:14px;height:14px}.window-translation{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:10px;font-weight:500;padding-left:9px;border-left:1px solid #4c302b66;letter-spacing:0}.window-count{font-size:8px;white-space:nowrap}.window-body{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;padding:14px 18px;overflow:auto;scrollbar-width:thin}.home-page h2{font-size:clamp(24px,2vw,29px);font-weight:600;line-height:1.3;letter-spacing:-.5px}.upcoming-tile h2{font-size:20px;margin-bottom:4px}.home-events{min-height:0;overflow:auto;margin-top:2px;scrollbar-width:thin}.home-event-link{display:grid;grid-template-columns:34px minmax(0,1fr) 12px;align-items:center;gap:11px;padding:8px 0;border-bottom:1px dashed var(--line)}.home-event-link:last-child{border-bottom:0}.home-event-link:hover .home-event-name{text-decoration:underline;text-underline-offset:3px}.home-event-date{font:8px/1.5 var(--retro-mono)}.home-event-date strong{display:block;font-size:20px;font-weight:500;margin-bottom:2px}.home-event-name{display:block;font-size:12px;line-height:1.4}.home-event-meta{display:block;font-size:10px;line-height:1.5;margin-top:2px;color:var(--muted)}.home-event-place{font-size:9px;margin-top:0}.home-event-arrow{font-size:12px}.home-text-link{display:inline-flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;padding:3px 0;align-self:flex-start;background:none}.home-text-link:hover{text-decoration:underline;text-underline-offset:4px}.upcoming-tile .home-text-link{margin-top:auto;padding-top:7px;flex-shrink:0}.featured-slides{flex:1;min-height:0;position:relative;margin:10px 10px 0;border:1.5px solid var(--ink)}.featured-slide{height:100%;min-height:0}.featured-link{height:100%;display:flex;flex-direction:column;min-height:0}.featured-media{position:relative;flex:1;min-height:0;overflow:hidden;background:#eee0cb}.featured-media>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%}.featured-category{position:absolute;left:9px;top:9px;background:var(--paper);border:1px solid var(--ink);padding:4px 7px;box-shadow:2px 2px 0 #4c302b66;font-size:8px;line-height:1.3}.featured-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1.5px solid var(--ink);background:var(--paper);flex-shrink:0}.featured-copy{min-width:0}.featured-slide h2{font-size:24px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.featured-meta{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:13px;line-height:1.4;margin-top:4px;color:var(--muted)}.featured-caption-arrow{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;border:1px solid var(--ink);background:var(--yellow);box-shadow:2px 2px 0 var(--ink);font-size:17px}.featured-controls{display:flex;align-items:center;gap:9px;flex-shrink:0;height:36px;padding:5px 11px 7px}.carousel-arrow{display:grid;place-items:center;width:27px;height:25px;border:1.5px solid var(--ink);background:var(--paper);box-shadow:2px 2px 0 var(--ink);font-size:14px}.carousel-dots{display:flex;align-items:center;gap:1px}.carousel-dot{display:grid;place-items:center;width:25px;height:25px;background:none;padding:0}.carousel-dot span{width:7px;height:7px;border:1px solid var(--ink)}.carousel-dot[aria-pressed=true] span{width:19px;background:var(--ink)}.carousel-playback{margin-left:auto;min-width:48px;padding:5px;background:none;font-size:9px;color:var(--muted)}.featured-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-around;gap:16px;padding:20px 30px;background-color:#f4d788;background-image:linear-gradient(#fff7de70 1px,transparent 1px),linear-gradient(90deg,#fff7de70 1px,transparent 1px);background-size:23px 23px}.featured-art-title{font:800 clamp(30px,4vw,54px)/.96 var(--retro-mono);letter-spacing:-2px;text-shadow:2px 2px 0 #fff2cf}.featured-cone{height:75%;max-height:130px;width:auto;shape-rendering:crispEdges}.featured-art-stamp{display:none}.featured-generic{background-color:#b5d3c4}.featured-generic .pixel-icon{width:64px;height:64px}.featured-empty{height:100%;padding:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center}.featured-empty h2{font-size:21px}.resource-window{isolation:isolate}.resource-window h2{position:relative}.home-resource-badge{align-self:flex-start;position:relative;font-size:12px;line-height:1.45;margin-top:8px;padding:2px 6px;border:1px solid #4c302b36;background:var(--surface-soft)}.home-resource-facts{font-size:clamp(14px,1.25vw,18px);line-height:1.65;margin-top:12px;position:relative}.home-resource-facts>div{display:grid;grid-template-columns:2em minmax(0,1fr);gap:10px;margin-top:6px}.home-resource-facts dt{color:var(--muted)}.home-resource-facts dd{margin:0;overflow-wrap:anywhere}.home-notice-summary{position:relative;font-size:clamp(14px,1.25vw,18px);line-height:1.75;margin-top:14px}.home-compact-copy{display:none}.tile-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:11px;flex-shrink:0;position:relative}.home-small-action{display:inline-flex;align-items:center;justify-content:center;font-size:10px;padding:4px 6px;background:#ffe5b2;border:1px solid var(--ink);border-radius:2px;white-space:nowrap}.home-food-summary{font-size:clamp(14px,1.25vw,18px);line-height:1.7;position:relative;margin-top:12px}.home-food-summary>span{display:block}.home-food-summary>span+span{color:var(--muted);margin-top:7px}.home-food-count{font-size:11px;color:var(--muted);white-space:nowrap}.home-page .site-footer{height:20px;min-height:20px;margin:10px auto 9px;padding:0;background:none;border:0;box-shadow:none;gap:10px;font-size:9px}.home-page .footer-brand{font-size:10px}.home-page .site-footer p{font-size:9px}.home-feature{font-size:12px;line-height:1.7}
@media(max-width:1100px){.window-body{padding:12px 14px}.home-resource-badge{font-size:10px}.tile-bottom{padding-top:8px}.resource-window h2{font-size:21px}.home-page .window-bar>span:first-child{gap:5px}.window-translation{padding-left:6px}}
@media(min-width:761px) and (max-width:1100px) and (max-height:740px){.upcoming-tile h2,.home-event-place{display:none}.home-resource-facts,.home-notice-summary,.perks-tile .home-resource-badge{display:none}.home-compact-copy{display:block;white-space:pre-line;font-size:14px;line-height:1.65;margin-top:10px}}


@media(min-width:761px) and (max-height:480px){.bento-grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:8px}.campus-tile{grid-column:span 7;grid-row:1}.upcoming-tile{grid-column:span 5;grid-row:1}.perks-tile,.reminder-tile,.food-tile{grid-column:span 4;grid-row:2}.upcoming-tile h2,.home-resource-facts,.home-notice-summary,.perks-tile .home-resource-badge,.home-food-summary,.home-event-place{display:none}.home-compact-copy{display:block;white-space:pre-line;font-size:10px;margin-top:6px}.resource-window h2{font-size:16px}.window-body{padding:8px}.tile-bottom{padding-top:6px}}


/* Four equal content cards on the second desktop row. */
.perks-tile,.reminder-tile,.food-tile,.stats-tile{grid-column:span 3;grid-row:2}
.site-stats-list{display:grid;gap:0;flex:1;min-height:0;align-content:start}.site-stat{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px dashed var(--line)}.site-stat:first-child{padding-top:2px}.site-stat:last-child{border-bottom:0}.site-stat dt{font-size:15px;color:var(--muted);white-space:nowrap}.site-stat dd{margin:0;font:500 32px/1.2 var(--retro-mono);font-variant-numeric:tabular-nums;white-space:nowrap}.site-stat small{font-size:10px;font-weight:400;margin-left:5px}
.site-like{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--surface);border:1.5px solid var(--ink);border-radius:2px;width:100%;min-height:36px;box-shadow:2px 2px 0 var(--ink);padding:5px 10px;margin-top:12px;font-size:12px;flex-shrink:0}.site-like .pixel-icon{width:17px;height:17px}.site-like strong{font:600 16px/1.3 var(--retro-mono);margin-left:auto}.site-like #like-label{margin-right:auto}.site-like[aria-pressed=true]{background:#f4c4aa}.site-like:disabled{opacity:.6}.stats-message{position:absolute;bottom:1px;left:6px;right:6px;text-align:center;font-size:8px;line-height:1.3;color:var(--muted);pointer-events:none}.stats-message button{pointer-events:auto;background:none;text-decoration:underline;font-size:inherit;margin-left:5px;padding:0}.home-stats[data-state=error] .stats-body{padding-bottom:17px}
@media(max-width:1100px){.site-stat{padding:9px 0}.site-stat dd{font-size:28px}.site-stat dt{font-size:13px}.site-like{margin-top:10px}}


@media(min-width:761px) and (max-height:480px){.upcoming-tile{display:flex}.perks-tile,.reminder-tile,.food-tile,.stats-tile{grid-column:span 3;grid-row:2}.site-stat{padding:2px 0}.site-stat dd{font-size:16px}.site-stat dt{font-size:9px}.site-like{min-height:26px;padding:2px 6px;font-size:9px;margin-top:5px}.site-like strong{font-size:13px}.site-like .pixel-icon{width:12px;height:12px}}

/* Use the extra height on larger desktops for readable calendar details. */
@media(min-width:1101px) and (min-height:840px){.upcoming-tile h2{font-size:26px;margin-bottom:8px}.home-event-link{grid-template-columns:42px minmax(0,1fr) 14px;gap:14px;padding:10px 0}.home-event-name{font-size:16px}.home-event-meta{font-size:13px}.home-event-place{font-size:12px}.home-event-date{font-size:10px}.home-event-date strong{font-size:28px}}

/* Content thumbnails lead each resource card, above its title. */
.home-resource-photo{display:block;flex:none;width:100%;height:clamp(100px,13dvh,124px);margin-bottom:8px;overflow:hidden;border:1px solid var(--ink);background:#fff;border-radius:2px}
.home-resource-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.home-resource-photo:hover{outline:2px solid var(--yellow);outline-offset:2px}

.resource-window .home-resource-facts,.resource-window .home-notice-summary{display:none}
.resource-window h2{font-size:clamp(18px,1.5vw,25px);line-height:1.25;letter-spacing:-.3px}
.resource-window .home-compact-copy{display:block;white-space:pre-line;font-size:clamp(12px,1vw,15px);line-height:1.5;margin-top:5px}
.resource-window .home-resource-badge{font-size:11px;line-height:1.35;margin-top:5px}
.resource-window .home-food-summary{font-size:clamp(12px,1vw,15px);line-height:1.5;margin-top:5px}
.resource-window .home-food-summary>span+span{margin-top:3px}
.resource-window .tile-bottom{padding-top:5px}
.tile-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0}
@media(min-width:761px) and (max-height:839px){
  .resource-window{padding:10px 14px}
  .home-resource-photo{height:clamp(76px,12dvh,100px);margin-bottom:6px}
  .resource-window h2{font-size:clamp(18px,1.55vw,22px)}
  .resource-window .home-resource-badge{font-size:10px;line-height:1.3;margin-top:4px}
  .resource-window .home-compact-copy,.resource-window .home-food-summary{font-size:12px;line-height:1.45;margin-top:4px}
}
@media(min-width:761px) and (max-width:1100px) and (max-height:839px){
  .resource-window{padding:8px 10px}
  .resource-window h2{font-size:18px}
  .home-resource-photo{height:clamp(60px,10.8dvh,82px);margin-bottom:5px}
  .resource-window .home-compact-copy,.resource-window .home-food-summary{font-size:11.5px}
  .resource-window .tile-bottom{padding-top:3px}
  .resource-window .home-text-link{font-size:12px}
}


@media(min-width:761px) and (max-height:480px){
  .home-resource-photo{height:clamp(30px,8dvh,38px);margin-bottom:3px}
  .resource-window{padding:5px 8px}
  .resource-window h2{font-size:13px}
  .resource-window .home-compact-copy,.resource-window .home-food-summary,.resource-window .home-resource-badge{display:none}
  .resource-window .tile-bottom{padding-top:3px}
}

.carousel-progress{position:relative;flex:1;min-width:28px;height:8px;border:1px solid var(--ink);background:var(--surface-soft);overflow:hidden}
.carousel-progress>span{display:block;width:100%;height:100%;background:var(--yellow);transform:scaleX(0);transform-origin:left center}
.carousel-progress:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 9px,var(--paper) 9px 11px);pointer-events:none}
.carousel-progress[data-state=paused]>span{background:var(--mint)}


/* Keep the image and caption together throughout a carousel transition. */
.featured-slides{overflow:hidden;isolation:isolate}
.featured-slide{position:absolute;inset:0;background:var(--paper)}
.featured-link:focus-visible{outline-offset:-4px}
.home-resource-photo:focus-visible{outline-offset:-3px}
.site-like .pixel-icon{transform-box:fill-box;transform-origin:center}
.stats-body .site-stats-list{grid-template-rows:repeat(3,minmax(0,1fr));align-content:stretch}
.stats-body .site-stat{min-height:0;padding:3px 0}
.stats-body .site-stat dd{font-size:clamp(24px,3.6dvh,32px);line-height:1.15}
.site-guestbook{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;flex-shrink:0;margin-top:9px;padding:5px 10px;border:1.5px solid var(--ink);border-radius:2px;box-shadow:2px 2px 0 var(--ink);background:var(--mint);font-size:12px}
.site-guestbook .pixel-icon{width:17px;height:17px}
.guestbook-arrow{margin-left:auto;font-size:16px}
.site-guestbook:hover{background:#9fcbbf}
.stats-body .site-like{margin-top:8px}



@media(min-width:761px) and (max-height:480px){
  .stats-body .site-stat dd{font-size:16px}
  .stats-body .site-stat{padding:1px 0}
  .site-guestbook,.stats-body .site-like{min-height:24px;margin-top:4px;font-size:10px}
  .site-guestbook .pixel-icon{width:12px;height:12px}
}
@media(prefers-reduced-motion:no-preference){
  .carousel-dot span{transition:width 180ms ease,background-color 180ms ease}
  .carousel-arrow,.home-small-action,.site-like,.site-guestbook,.featured-caption-arrow{transition:transform 140ms ease,box-shadow 140ms ease,background-color 180ms ease}
  .carousel-arrow:not(:disabled):active,.home-small-action:active,.site-like:not(:disabled):active,.site-guestbook:active,.featured-link:active .featured-caption-arrow{transform:translate(2px,2px);box-shadow:0 0 0 var(--ink)}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  .perks-tile,.reminder-tile,.food-tile{transition:transform 200ms ease,box-shadow 200ms ease}
  .perks-tile:hover,.reminder-tile:hover,.food-tile:hover{transform:translateY(-2px);box-shadow:3px 5px 0 var(--ink)}
  .home-resource-photo img{transition:transform 280ms cubic-bezier(.22,.7,.2,1)}
  .home-resource-photo:hover img{transform:scale(1.035)}
  .home-text-link>span,.home-event-arrow{transition:transform 180ms ease}
  .home-text-link:hover>span,.home-event-link:hover .home-event-arrow{transform:translate(2px,-2px)}
  .featured-link:hover .featured-caption-arrow{transform:translate(1px,-1px);box-shadow:1px 3px 0 var(--ink)}
  .featured-link:active .featured-caption-arrow{transform:translate(2px,2px);box-shadow:none}
}

/* Mobile gives the carousel and calendar the first screen; other cards flow below. */
@media(max-width:760px), (max-width:980px) and (max-height:500px){
  body.home-page{height:auto;min-height:100svh;overflow:visible}
  .home-main{display:block;flex:none}
  /* The mobile header and its margins occupy 76px; two 12px gaps complete the fold. */
  .bento-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(270px,calc(50svh - 50px)));grid-auto-rows:auto;gap:12px}
  .campus-tile,.upcoming-tile,.perks-tile,.reminder-tile,.food-tile,.stats-tile{grid-column:1;grid-row:auto}
  .campus-tile{grid-row:1}
  .upcoming-tile{display:flex;grid-row:2}
  .home-page .window-bar{height:29px;padding:0 10px;gap:6px;font-size:9px}
  .home-page .window-bar>span:first-child{gap:6px}
  .home-page .window-bar .pixel-icon{width:14px;height:14px}
  .window-translation{font-size:11px;padding-left:7px}
  .window-count{font-size:9px}
  .window-body{padding:12px;overflow:visible}
  .featured-slides{margin:8px 8px 0}
  .featured-caption{padding:8px 10px}
  .featured-slide h2{font-size:18px;line-height:1.3;-webkit-line-clamp:2}
  .featured-meta{font-size:11px;line-height:1.45;gap:2px 8px;margin-top:4px}
  .featured-caption-arrow{width:28px;height:28px;font-size:18px}
  .featured-category{left:8px;top:8px;font-size:9px;padding:4px 6px}
  .featured-controls{height:43px;padding:4px 8px 6px;gap:6px}
  .carousel-arrow{width:32px;height:32px;font-size:16px}
  .carousel-dot{width:24px;height:32px}
  .carousel-playback{min-height:32px;min-width:44px;padding:3px;font-size:10px}
  .carousel-progress{height:7px;min-width:20px}
  .featured-art{padding:24px 32px 12px}
  .featured-art-title{font-size:clamp(36px,9vw,54px);letter-spacing:-1px}
  .featured-cone{height:90%;max-height:148px}
  .upcoming-tile h2{display:none}
  .upcoming-tile .window-body{padding:6px 12px 10px}
  .home-events{display:grid;grid-auto-rows:minmax(min-content,1fr);flex:1;overflow:visible;margin:0}
  .home-event-link{grid-template-columns:33px minmax(0,1fr) 12px;gap:10px;padding:6px 0}
  .home-event-link:nth-child(n+3){display:grid}
  .home-event-date{font-size:9px;line-height:1.4}
  .home-event-date strong{font-size:23px;margin-bottom:2px}
  .home-event-name{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .home-event-meta{font-size:11px;line-height:1.4;margin-top:2px}
  .home-event-place{display:block;font-size:10px}
  .home-event-arrow{display:block;font-size:14px}
  .upcoming-tile .home-text-link{margin-top:4px;padding:5px 0 0;font-size:12px}
  .resource-window{padding:14px}
  .home-resource-photo{height:auto;aspect-ratio:16/9;max-height:240px;margin-bottom:12px}
  .resource-window h2{font-size:22px;line-height:1.3}
  .resource-window .home-resource-badge{display:block;font-size:12px;line-height:1.4;margin-top:7px;padding:3px 6px}
  .resource-window .home-compact-copy,.resource-window .home-food-summary{display:block;font-size:14px;line-height:1.6;margin-top:8px}
  .resource-window .home-food-summary>span:first-child{display:block}
  .resource-window .home-food-summary>span+span{margin-top:4px}
  .resource-window .tile-bottom{padding-top:18px}
  .home-text-link{min-height:32px;font-size:13px;gap:7px;align-items:center}
  .home-small-action{min-height:32px;padding:5px 9px;font-size:12px}
  .stats-body{min-height:290px;padding:14px 16px}
  .stats-body .site-stat{padding:10px 0}
  .site-stat dt{font-size:15px}
  .stats-body .site-stat dd{font-size:30px;line-height:1.2}
  .site-guestbook,.stats-body .site-like{min-height:40px;padding:7px 10px;margin-top:12px;font-size:14px}
  .site-guestbook .pixel-icon,.site-like .pixel-icon{width:18px;height:18px}
  .stats-message{font-size:10px}
  .home-page .site-footer{height:auto;min-height:20px;margin:16px auto 12px;justify-content:center}
  .home-page .site-footer>a{display:none}
  .home-page .site-footer p{font-size:10px;flex-basis:auto;order:initial}
}
@media(max-width:760px) and (max-height:700px){
  .home-event-place{display:none}
  .featured-slide h2{font-size:17px}
}
/* Short landscape phones can keep the two primary cards side by side. */
@media(min-width:761px) and (max-width:980px) and (max-height:500px){
  .bento-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(300px,calc(100svh - 72px))}
  .campus-tile{grid-column:1;grid-row:1}
  .upcoming-tile{grid-column:2;grid-row:1}
  .perks-tile,.reminder-tile,.food-tile,.stats-tile{grid-column:auto;grid-row:auto}
}
