/* Colors taken from the original Squarespace theme */
:root {
  --green: #3a6415;      /* dark accent: hero + subscribe sections */
  --orange: #ae4a00;     /* accent: buttons, links */
  --sand: #ebe6e0;       /* light accent */
  --black: #121212;
  --white: #f5f5f5;
  --page-bg: #ffffff;
  --page-text: #121212;
  --heading: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --page-bg: #1b1b1b; --page-text: #f0f0f0; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--page-text); background: var(--page-bg); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .75em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--white); color: var(--black); padding: .5rem 1rem; }
.wrap { width: min(1100px, 100% - 3rem); margin-inline: auto; }

/* Header sits over the hero */
header.site { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--white); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; flex-wrap: wrap; }
header.site .logo img { height: 40px; width: auto; }
header.site nav { display: flex; gap: 1.75rem; font-size: .95rem; }
header.site nav a { text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: grid; place-items: center; text-align: center; color: var(--white); background: var(--green); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, .45); }
.hero .inner { position: relative; z-index: 1; padding: 8rem 1.5rem 4rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: .4em; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0; letter-spacing: .02em; }

/* About */
.about { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.about .wrap { max-width: 760px; }
.about h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.about p { margin: 0 0 1em; }

/* Subscribe */
.subscribe { background: var(--green); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.subscribe h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.subscribe p { margin: 0 0 1.5rem; }
.subscribe form { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; max-width: 520px; margin-inline: auto; }
.subscribe input { flex: 1 1 260px; padding: .9rem 1rem; font: inherit; border: 1px solid var(--white); background: var(--white); color: var(--black); }
.subscribe button { padding: .9rem 1.75rem; font: inherit; font-weight: 500; border: 0; background: var(--orange); color: #fff; cursor: pointer; }
.subscribe button:hover { filter: brightness(1.1); }
.subscribe .form-note { margin-top: 1rem; min-height: 1.6em; font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--black); color: var(--white); padding-block: 3.5rem; text-align: center; font-size: .95rem; }
footer .name { font-family: var(--heading); font-size: 1.25rem; margin-bottom: .75rem; }
footer p { margin: .4rem 0; }
footer .social { display: flex; gap: 1.5rem; justify-content: center; margin: 1.25rem 0; }
footer a:hover { color: var(--sand); }
footer .small { opacity: .75; font-size: .85rem; }

/* Header variant for pages without a hero photo */
header.site.solid { position: static; color: var(--page-text); }
@media (prefers-color-scheme: light) { header.site.solid .logo .on-dark { display: none; } }
@media (prefers-color-scheme: dark) { header.site.solid .logo .on-light { display: none; } }
header.site:not(.solid) .logo .on-light { display: none; }

/* Shared form styles */
.form-note { margin-top: 1rem; min-height: 1.6em; font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

/* Student Committee page */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 1rem 2rem; }
.marquee .track { display: inline-flex; animation: scroll 40s linear infinite; }
.marquee h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); margin: 0; padding-right: .6em; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .marquee { white-space: normal; } .marquee [aria-hidden] { display: none; } }

.committee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 8vw, 6rem); }
.committee .intro { font-size: 1.25rem; margin: 0 0 2rem; }
.committee img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.committee form { display: grid; gap: 1.25rem; }
.committee fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.committee legend { padding: 0; margin-bottom: .5rem; font-weight: 500; }
.committee label { display: grid; gap: .35rem; font-size: .95rem; }
.committee label .req { opacity: .65; }
.committee input { padding: .85rem 1rem; font: inherit; border: 1px solid #8a8a8a; background: var(--page-bg); color: var(--page-text); width: 100%; }
.committee button { justify-self: start; padding: .9rem 2rem; font: inherit; font-weight: 500; border: 0; background: var(--orange); color: #fff; cursor: pointer; }
.committee button:hover { filter: brightness(1.1); }
@media (max-width: 800px) {
  .committee { grid-template-columns: 1fr; }
  .committee img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .committee fieldset { grid-template-columns: 1fr; }
}
