:root { --maroon: #8b0000; --maroon-dark: #4a2a2a; --maroon-mid: #6b3a38; --cream: #fdf5dc; --ink: #1a1a1a; --bg: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'EB Garamond', Georgia, serif; font-size: 1.15rem; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3, .brand, .footer-title { font-family: 'Oswald', sans-serif; line-height: 1.15; }
a { color: var(--maroon); }

.banner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .6rem 1rem; background: #f2c14e; color: #2b1b00; text-align: center; }
.banner[hidden] { display: none; }
.banner p { margin: 0; }
.banner a { color: #2b1b00; font-weight: 700; }
.banner-close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.site-header { display: contents; color: #fff; }
.site-header nav { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .85rem 1.5rem; background: linear-gradient(115deg, var(--maroon-dark) 0%, var(--maroon-mid) 55%, #7a403c 100%); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.brand { color: #fff; text-decoration: none; font-size: 1.3rem; margin-right: auto; }
.links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; }
.site-header nav a { color: #fff; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; font-weight: 600; }
.dropdown { position: relative; }
.menu { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 15rem; padding: .5rem 0; background: var(--maroon-dark); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.menu a { display: block; padding: .4rem 1rem; }
.dropdown:hover .menu, .dropdown:focus-within .menu { display: block; }
.hero { padding: 4rem 1.5rem 5rem; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 700; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 1.5rem; }
.center { text-align: center; }
.lead { font-size: 1.25rem; }
h2 { color: var(--maroon); font-size: clamp(1.7rem, 4vw, 2.4rem); }
.band, .band-section { background: var(--cream); }
.band { text-align: center; padding: 1.5rem 1rem; margin: 0 0 1rem; }
.band-section { padding: 2rem 1.5rem; margin-top: 1rem; }
.cards { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { text-align: center; padding: 1rem; }
.card h3 { color: var(--maroon); font-size: 1.5rem; margin: 0 0 .5rem; }
.card p { margin: 0; }
.pillar .num { display: block; font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--maroon); }
.button { display: inline-block; padding: .7rem 2rem; background: var(--maroon); color: #fff; border-radius: 4px; text-decoration: none; }
.button:hover { filter: brightness(1.15); }

footer { background: var(--cream); text-align: center; padding: 2rem 1.5rem; margin-top: 2rem; }
.footer-title { color: var(--maroon); font-size: 1.4rem; margin: 0 0 .25rem; }
.copy { opacity: .7; font-size: .95rem; }
@media (max-width: 600px) { .brand { width: 100%; } }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.card-wide { grid-column: 1 / -1; }
.card-wide .img-ph { aspect-ratio: 16 / 7; }
@media (max-width: 600px) { .cards-2 { grid-template-columns: 1fr; } }
.contact-list .card { background: var(--cream); padding: 1.75rem 1rem; }
.contact-list .card h3 { font-size: 1.8rem; }
.contact-list .card p { font-size: 1.25rem; overflow-wrap: anywhere; }
.more-events { text-align: center; margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.more-events p { max-width: 560px; margin: 0 auto 1rem; opacity: .8; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }
.pager > :nth-child(2) { text-align: center; }
.pillar h3 a { text-decoration: none; }
.pillar h3 a:hover { text-decoration: underline; }

/* Placeholders: swap each .img-ph for an <img> and each .text-ph for real text */
.img-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; aspect-ratio: 4 / 3; width: 100%; background: #f4f4f4; border: 2px dashed #cfcfcf; border-radius: 10px; color: #8a8a8a; }
.img-ph span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); font-size: 1.8rem; line-height: 1; color: #222; }
.img-ph small { font-family: 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.img-ph.round { aspect-ratio: 1; width: 9rem; margin: 0 auto; border-radius: 50%; }
img { max-width: 100%; height: auto; }
.text-ph { padding: 1rem 1.25rem; border: 2px dashed #e0cfa3; background: #fffdf5; border-radius: 10px; color: #7a6a40; text-align: left; }
.text-ph p { margin: 0 0 .5rem; }
.text-ph p:last-child { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 1.5rem 0; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-top: 0; }
.narrow { max-width: 560px; margin: 0 auto; }
.card { background: #fff; border-radius: 12px; padding: 1rem; transition: transform .15s, box-shadow .15s; }
.cards .card .img-ph { margin-bottom: .9rem; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(139,0,0,.15); }
.team { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.member { text-align: center; }
.role { opacity: .75; margin: 0; }
.band-section .card { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.hero { color: #fff; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 90px, transparent 90px 200px), linear-gradient(115deg, var(--maroon-dark) 0%, var(--maroon-mid) 55%, #7a403c 100%); }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.button-lg { font-family: "Oswald", sans-serif; font-size: 1.6rem; padding: .6rem 1.6rem; margin-bottom: 1rem; }

/* Homepage pillars: two rows, 1-2-3 on top, 4-5 centered below */
@media (min-width: 700px) {
  .w-shape { grid-template-columns: repeat(6, 1fr); align-items: start; }
  .w-shape .pillar { grid-column: span 2; }
  .w-shape .pillar:nth-child(4) { grid-column: 2 / span 2; }
  .w-shape .pillar:nth-child(5) { grid-column: 4 / span 2; }
}

/* Give Feedback: short header so the button shows without scrolling */
.compact-hero .hero { padding: 2rem 1.5rem 2.5rem; }
.compact-hero .band-section { margin-top: 0; padding: 2.5rem 1.5rem; }

/* Sticky footer: short pages fill the screen so nothing shows under the footer */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
footer { margin-top: 0; }
.feedback-types .card { background: var(--cream); padding: 1.5rem 1.25rem; }

/* Halloween Week: countdown + timeline */
.countdown-band { text-align: center; color: #fff; padding: 2.5rem 1.5rem; background: linear-gradient(115deg, #2a1414, #5b2a28 60%, #8b0000); }
.countdown-band .eyebrow { font-family: 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; margin: 0; opacity: .85; }
.cd-label { font-family: 'Oswald', sans-serif; font-size: 1.6rem; margin: .25rem 0 1rem; }
.cd { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cd[hidden] { display: none; }
.cd div { min-width: 5.5rem; padding: .75rem .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; }
.cd span { display: block; font-family: 'Oswald', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.cd small { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; opacity: .8; }
.cd-note { opacity: .85; margin: 0 0 1rem; }
.button-light { background: #fff; color: var(--maroon); font-weight: 600; }
.timeline-wrap { max-width: 760px; margin: 1.5rem auto; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--maroon); }
.tl-day { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0 0 1.75rem 1.25rem; }
.tl-day::before { content: ""; position: absolute; left: -1.95rem; top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--maroon); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--maroon); }
.tl-date strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--maroon); line-height: 1.1; }
.tl-date small { opacity: .7; }
.tl-tag { display: inline-block; margin-bottom: .35rem; padding: .05rem .6rem; background: var(--cream); color: var(--maroon); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.tl-body ul { list-style: none; margin: 0; padding: 0; }
.tl-body li { margin-bottom: .35rem; }
.tl-body .t { display: inline-block; min-width: 7.5rem; font-weight: 600; color: var(--maroon); }
.tl-body em { opacity: .75; }
@media (max-width: 600px) { .tl-day { grid-template-columns: 1fr; gap: .25rem; } .tl-body .t { display: block; } }

/* Countdown arrows */
.cd-row { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-bottom: 1rem; }
.cd-row[hidden] { display: none; }
.cd-row .cd { margin-bottom: 0; }
.cd-arrow { width: 2rem; height: 3.5rem; flex: none; color: #f2c14e; animation: cd-bounce 1.2s ease-in-out infinite; }
.cd-arrow-r { animation-delay: .6s; }
@keyframes cd-bounce { 0%, 100% { transform: translateY(-8px); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cd-arrow { animation: none; } }
@media (max-width: 640px) { .cd-arrow { display: none; } }

/* Pillar page titles: number on line 1, name on line 2 (never wraps) */
.hero h1.pillar-title { max-width: none; font-size: clamp(1.3rem, 6vw, 3.4rem); }
.pillar-title .nw { white-space: nowrap; }

/* Feedback pillar: hand-drawn scribble pointing at the Give Feedback nav link */
.doodle { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 50; pointer-events: none; }
.doodle-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.d-line, .d-head { stroke: #ff7a1a; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.d-line { stroke-dashoffset: var(--len, 600); animation: doodle-draw 4.2s ease-in-out infinite; }
.d-head { opacity: 0; animation: doodle-head 4.2s ease-in-out infinite; }
@keyframes doodle-draw { 0% { stroke-dashoffset: var(--len, 600); opacity: 1; } 38% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes doodle-head { 0%, 36% { opacity: 0; } 42%, 88% { opacity: 1; } 100% { opacity: 0; } }
.doodle-note { position: absolute; display: inline-block; max-width: 17rem; font-family: 'Caveat', 'Comic Sans MS', cursive; font-size: 1.75rem; line-height: 1.05; font-weight: 700; color: #ff7a1a; text-decoration: none; text-align: center; transform: rotate(-5deg); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9), 1px 1px 0 rgba(0,0,0,.25); pointer-events: auto; animation: doodle-wiggle 2.4s ease-in-out infinite; }
@keyframes doodle-wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .d-line { animation: none; stroke-dashoffset: 0; } .d-head { animation: none; opacity: 1; } .doodle-note { animation: none; } }

/* Phones: keep the sticky nav slim (brand row + one scrollable row of links) */
@media (max-width: 699px) {
  .site-header nav { padding: .5rem 1rem; gap: .25rem 1rem; }
  .brand { font-size: 1.1rem; }
  .links { flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; width: 100%; padding-bottom: .15rem; white-space: nowrap; font-size: 1rem; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .menu { display: none !important; }
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.footer-logo { display: block; width: 72px; height: 72px; margin: 0 auto .5rem; border-radius: 50%; background: #fff; }
.logo-feature { width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; }
@media (max-width: 699px) { .brand-logo { width: 34px; height: 34px; } }

/* Photos */
.photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.card .photo { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .9rem; }

.photo-round { display: block; width: 9rem; height: 9rem; margin: 0 auto .75rem; border-radius: 50%; object-fit: cover; object-position: 62% 40%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* Council tree: President > Vice Presidents > departments > members */
.wrap.wide { max-width: 1180px; }
.tree { --line: var(--maroon); --gap: 28px; text-align: center; }
.tree ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: var(--gap) 0 0; position: relative; }
.tree > ul { padding-top: 0; }
.tree li { position: relative; padding: var(--gap) .6rem 0; text-align: center; }
.tree > ul > li { padding-top: 0; }
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: var(--gap); border-top: 3px solid var(--line); }
.tree li::after { right: auto; left: 50%; border-left: 3px solid var(--line); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: var(--gap); }
.tree > ul > li, .tree > ul > li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 3px solid var(--line); border-radius: 0 8px 0 0; }
.tree li:first-child::after { border-radius: 8px 0 0 0; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: var(--gap); border-left: 3px solid var(--line); }
.node { display: inline-block; min-width: 9rem; padding: .9rem 1rem; background: #fff; border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.node h3 { margin: 0; font-size: 1.3rem; color: var(--maroon); }
.node .role { margin: 0; opacity: .75; }
.node .photo-round, .node .img-ph.round { width: 6rem; height: 6rem; margin: 0 auto .5rem; }
.node-row { display: flex; gap: 1rem; justify-content: center; }
.dept { display: inline-block; position: relative; margin-bottom: 1.1rem; padding: .35rem 1.2rem; background: var(--maroon); color: #fff; border-radius: 999px; font-family: 'Oswald', sans-serif; font-size: 1.15rem; letter-spacing: .02em; }
.dept::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1.1rem; border-left: 3px solid var(--line); }
.tree ul.members { display: block; padding: 0; }
.tree ul.members::before { display: none; }
.tree ul.members li { padding: 0 0 .9rem; }
.tree ul.members li::before, .tree ul.members li::after { display: none; }
@media (max-width: 900px) {
  .tree ul, .node-row { flex-direction: column; align-items: center; }
  .tree li::before, .tree li::after, .tree ul ul::before { display: none; }
  .tree li, .tree li:only-child { padding-top: 1.1rem; }
  .tree > ul > li { padding-top: 0; }
  .tree ul { padding-top: 0; }
  .tree ul.members li { padding-top: 0; }
  .node-row { gap: .75rem; }
}

/* Team tree: every photo/placeholder is the same 9rem circle */
.node { min-width: 11.5rem; }
.node .photo-round, .node .img-ph.round { width: 9rem; height: 9rem; object-fit: cover; }

/* Photos fill the same boxes the placeholders used (4:3 cards, 16:7 wide card); posters/infographics are shown whole */
.split .photo { aspect-ratio: 4 / 3; object-fit: cover; }
.card-wide .photo { aspect-ratio: 16 / 7; }
.photo.fit { object-fit: contain; background: var(--cream); }

.card:hover { position: relative; z-index: 5; }

/* Tall pictures are cropped to fill the normal 4:3 box (posters keep their title at the top) */
.photo.tall { object-fit: cover; object-position: 50% 35%; }
.photo.tall[src*="poster"] { object-position: 50% 0%; }
.photo.tall[src*="anniversary"] { object-position: 50% 25%; }
.photo.tall[src*="umbrella"] { object-position: 50% 45%; }

/* Grand timeline */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; list-style: none; margin: 1rem 0 0; padding: 0; }
.chips a { display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: var(--cream); border: 1px solid color-mix(in srgb, var(--maroon) 35%, transparent); text-decoration: none; font-size: 1rem; }
.chips a:hover { background: #fff; }
.grand { --line: var(--maroon); list-style: none; margin: 1.5rem auto 2rem; padding: 0; position: relative; max-width: 1020px; }
.grand::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(var(--line), #a84a4a 70%, rgba(139,0,0,.25)); }
.gt-month { position: relative; text-align: center; margin: 1.2rem 0 1.6rem; }
.gt-month span { display: inline-block; padding: .4rem 1.6rem; border-radius: 999px; background: var(--maroon); color: #fff; font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: .04em; box-shadow: 0 0 0 6px #fff; }
.gt-month.later span { background: #fff; color: var(--maroon); border: 3px dashed var(--maroon); box-shadow: 0 0 0 6px #fff; }
.gt-item { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; margin-bottom: 2.2rem; }
.gt-dot { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 1.1rem; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--maroon); z-index: 1; box-shadow: 0 0 0 5px #fff; }
.gt-date { grid-row: 1; padding-top: .7rem; font-family: 'Oswald', sans-serif; }
.gt-date strong { display: block; font-size: 1.9rem; line-height: 1.05; color: var(--maroon); }
.gt-date small { font-size: 1rem; opacity: .75; font-family: 'EB Garamond', serif; }
.gt-card { grid-row: 1; background: #fff; border: 2px solid color-mix(in srgb, var(--maroon) 25%, transparent); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.08); text-align: left; }
.gt-card .photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; }
.gt-body { padding: 1rem 1.2rem 1.1rem; }
.gt-body h3 { margin: 0 0 .3rem; color: var(--maroon); font-size: 1.5rem; }
.gt-body p { margin: 0 0 .5rem; }
.gt-list { margin: .2rem 0 .6rem; padding-left: 1.1rem; }
.gt-list li { margin-bottom: .15rem; }
.gt-tag { display: none; margin-bottom: .4rem; padding: .05rem .7rem; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--cream); color: var(--maroon); }
.gt-item.next .gt-tag, .gt-item.now .gt-tag, .gt-item.past .gt-tag { display: inline-block; }
.gt-item.next .gt-card, .gt-item.now .gt-card { border-color: var(--maroon); box-shadow: 0 6px 22px rgba(139,0,0,.28); }
.gt-item.next .gt-dot, .gt-item.now .gt-dot { background: var(--maroon); animation: gt-pulse 1.8s ease-out infinite; }
.gt-item.now .gt-tag { background: var(--maroon); color: #fff; }
.gt-item.past { opacity: .6; }
.gt-item[data-tba] .gt-card { border-style: dashed; }
@keyframes gt-pulse { 0% { box-shadow: 0 0 0 5px #fff, 0 0 0 5px rgba(139,0,0,.5); } 100% { box-shadow: 0 0 0 5px #fff, 0 0 0 20px rgba(139,0,0,0); } }
.gt-item.l .gt-card { grid-column: 1; margin-right: 1.4rem; }
.gt-item.l .gt-date { grid-column: 3; padding-left: 1.4rem; text-align: left; }
.gt-item.r .gt-card { grid-column: 3; margin-left: 1.4rem; }
.gt-item.r .gt-date { grid-column: 1; padding-right: 1.4rem; text-align: right; }
@media (max-width: 800px) {
  .grand::before { left: 22px; }
  .gt-month { text-align: left; padding-left: 0; }
  .gt-item { grid-template-columns: 44px 1fr; }
  .gt-dot { grid-column: 1; grid-row: 1 / span 2; justify-self: start; margin-left: 10px; }
  .gt-item .gt-date, .gt-item.l .gt-date, .gt-item.r .gt-date { grid-column: 2; grid-row: 1; padding: 0 0 .4rem; text-align: left; }
  .gt-item .gt-card, .gt-item.l .gt-card, .gt-item.r .gt-card { grid-column: 2; grid-row: 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .gt-item.next .gt-dot, .gt-item.now .gt-dot { animation: none; } }
