/* AWS Student Builder Group - Colegio de Muntinlupa
   Unified cloud-tech design system. Sans-serif typography only. */

:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-pink: #fff0f5;
  --surface-green: #e8f8ef;
  --surface-blue: #edf3ff;
  --ink: #171b2b;
  --muted: #626b80;
  --line: #dfe4ef;
  --pink: #f6a8c5;
  --pink-strong: #c13c78;
  --mint: #b6efd0;
  --mint-strong: #20764f;
  --blue: #b9ceff;
  --nav-bg: rgba(255, 255, 255, .92);
  --grid-line: rgba(64, 82, 125, .09);
  --shadow: 0 18px 55px rgba(26, 35, 68, .10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101321;
  --surface: #171b2d;
  --surface-raised: #1d2338;
  --surface-pink: #302034;
  --surface-green: #18332e;
  --surface-blue: #1d2943;
  --ink: #f2f5ff;
  --muted: #b1bad0;
  --line: #303951;
  --pink: #ffb3d0;
  --pink-strong: #ff9fc7;
  --mint: #a5f0c7;
  --mint-strong: #9be8bd;
  --blue: #a9c2ff;
  --nav-bg: rgba(23, 27, 45, .94);
  --grid-line: rgba(180, 199, 255, .075);
  --shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color .2s ease, color .2s ease;
}

body,
button,
input,
textarea {
  font-family: var(--font-body);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--pink);
  color: #171321;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.floating-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: min(1240px, calc(100% - 32px));
  margin: 12px auto 0;
}

.floating-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: .62rem;
  letter-spacing: .015em;
}

.nav-menu,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-menu {
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 26px);
}

.nav-links {
  gap: clamp(12px, 1.8vw, 24px);
}

.nav-links a {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  transition: color .16s ease;
}

.nav-links a:hover {
  color: var(--pink-strong);
}

.nav-actions {
  gap: 9px;
}

.theme-toggle,
.nav-login {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}

.theme-toggle {
  cursor: pointer;
}

.theme-icon {
  color: var(--mint-strong);
  font-size: 1.05rem;
}

.nav-login {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.nav-login:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #1a1726;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 15px);
  min-height: 660px;
  padding-top: 20px;
  padding-bottom: 34px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: -12%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
  filter: blur(105px);
  opacity: .17;
  pointer-events: none;
}

.hero-copy {
  max-width: 650px;
  padding-block: 24px;
}

.eyebrow,
.detail-index,
.card-tag,
.art-topline,
.art-caption,
.contact-label,
.code-comment {
  font-family: var(--font-code);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--pink-strong);
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #43bf85;
  box-shadow: 0 0 0 4px rgba(67, 191, 133, .14);
}

.hero h1,
.section-intro h2,
.events-top h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: .99;
}

.hero h1 {
  font-size: clamp(3.6rem, 6.7vw, 6.6rem);
}

.text-pink {
  color: var(--pink-strong);
}

.text-green {
  color: var(--mint-strong);
}

.hero-description {
  max-width: 520px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .83rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 9px 20px rgba(18, 24, 43, .16);
}

.button-primary:hover {
  background: var(--pink-strong);
  color: #191522;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--mint-strong);
}

.hero-footnote {
  margin-top: 19px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: .7rem;
}

.hero-footnote::before {
  content: "// ";
  color: var(--mint-strong);
  font-weight: 900;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
}

.art-window {
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.window-bar,
.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-code);
  font-size: .61rem;
}

.window-bar {
  border-bottom: 1px solid var(--line);
}

.window-footer {
  border-top: 1px solid var(--line);
  font-size: .55rem;
  letter-spacing: .04em;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.window-dots i:nth-child(2) {
  background: #e7c86b;
}

.window-dots i:nth-child(3) {
  background: #6ed3a1;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint-strong);
}

.window-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.art-content {
  padding: 20px clamp(18px, 3vw, 30px) 24px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.code-comment {
  margin: 0;
  color: var(--pink-strong);
  font-size: .58rem;
}

.cloud-mark {
  display: grid;
  place-items: center;
  padding: 6px 0 0;
}

.cloud-mark svg {
  width: 220px;
  overflow: visible;
}

.cloud-mark path:first-child {
  fill: var(--surface-green);
  stroke: var(--mint-strong);
  stroke-width: 2.4;
}

.cloud-mark path:nth-child(2) {
  fill: none;
  stroke: var(--pink-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cloud-mark circle {
  fill: var(--pink);
  stroke: var(--pink-strong);
  stroke-width: 1.5;
}

.art-headline {
  margin-top: -2px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.12;
}

.art-headline span {
  color: var(--mint-strong);
}

.terminal-lines {
  display: grid;
  gap: 7px;
  margin-top: 19px;
}

.terminal-lines p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--font-code);
  font-size: .62rem;
}

.terminal-lines b {
  color: var(--pink-strong);
}

.terminal-lines em {
  color: var(--mint-strong);
  font-size: .58rem;
  font-style: normal;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: .73rem;
  font-weight: 800;
}

.floating-chip span {
  font-family: var(--font-code);
}

.chip-pink {
  top: 14%;
  right: -3%;
  transform: rotate(3deg);
}

.chip-pink span {
  color: var(--pink-strong);
}

.chip-green {
  bottom: 12%;
  left: -5%;
  transform: rotate(-3deg);
}

.chip-green span {
  color: var(--mint-strong);
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 9px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-code);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.bottom-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.hero-bottom a {
  color: var(--pink-strong);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.community-section {
  padding: 50px 0;
  background: var(--surface);
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.events-top h2,
.contact-copy h2 {
  font-size: clamp(3rem, 5.7vw, 5.2rem);
}

.section-intro>p:last-child,
.events-intro,
.contact-copy>p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  line-height: 1.85;
}

.community-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 45px;
}

.detail-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.detail-pink {
  background: var(--surface-pink);
}

.detail-green {
  background: var(--surface-green);
}

.detail-blue {
  background: var(--surface-blue);
}

.detail-index {
  color: var(--muted);
  font-size: .62rem;
}

.detail-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--pink-strong);
  font-family: var(--font-code);
  font-size: 1.2rem;
  font-weight: 800;
}

.detail-green .detail-icon {
  color: var(--mint-strong);
}

.detail-blue .detail-icon {
  color: #5978c5;
}

.detail-card h3 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.8;
}

.card-tag {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: .56rem;
}

.community-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.note-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-green);
  color: var(--mint-strong);
  font-size: 1.2rem;
}

.community-note p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.community-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.events-section {
  padding: 50px 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
}

.events-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.events-intro {
  max-width: 370px;
  margin-bottom: 8px;
}

.event-status {
  margin-top: 35px;
  padding: 13px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
}

.event-status:empty {
  display: none;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.event-grid>* {
  min-width: 0;
}

.event-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(25, 34, 65, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: var(--shadow);
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-pink);
  color: var(--pink-strong);
  font-family: var(--font-code);
  font-size: .58rem;
  font-weight: 800;
}

.event-calendar {
  color: var(--mint-strong);
  font-size: 1.15rem;
}

.event-card h3 {
  margin: 22px 0 16px;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.event-meta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.event-meta-icon {
  width: 16px;
  flex: 0 0 16px;
  color: var(--pink-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.event-card-spacer {
  flex: 1;
  min-height: 18px;
}

.event-card-footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--mint-strong);
  font-family: var(--font-code);
  font-size: .63rem;
  font-weight: 700;
}

.events-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.events-bottom p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.text-link {
  color: var(--pink-strong);
  font-size: .83rem;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-section {
  padding: 72px 0;
  background: var(--surface);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  padding: clamp(28px, 5.5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-green);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.contact-copy h2 {
  line-height: 1.02;
}

.contact-copy>p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 26px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.contact-label {
  color: var(--mint-strong);
  font-size: .62rem;
}

.contact-email {
  margin-top: 11px;
  font-size: clamp(1.05rem, 2.1vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.contact-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.contact-details p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.055em;
}

.footer-brand span {
  color: var(--pink-strong);
}

.footer-brand b {
  color: var(--mint-strong);
  font-family: var(--font-code);
  font-size: .75rem;
}

.site-footer p,
.site-footer>span {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.site-footer>span {
  max-width: 100%;
}

@media (max-width: 1020px) {
  .floating-nav {
    gap: 12px;
  }

  .brand-copy strong {
    font-size: .8rem;
  }

  .brand-copy small {
    font-size: .57rem;
  }

  .nav-menu {
    gap: 13px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: .73rem;
  }

  .theme-toggle,
  .nav-login {
    padding-inline: 9px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 6.5vw, 5.6rem);
  }

  .community-details,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 36px);
  }

  .floating-header {
    top: 8px;
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .floating-nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 13px;
  }

  .brand {
    flex: 1 1 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    max-width: 250px;
    font-size: .8rem;
  }

  .brand-copy small {
    font-size: .56rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 12px 1px 3px;
    border-top: 1px solid var(--line);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .nav-links a {
    padding: 11px 10px;
    border-radius: 8px;
    font-size: .88rem;
  }

  .nav-links a:hover {
    background: var(--surface-pink);
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .theme-toggle,
  .nav-login {
    width: 100%;
    min-height: 43px;
    font-size: .76rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding-top: 57px;
    padding-bottom: 25px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 12.5vw, 5.2rem);
  }

  .hero-description {
    font-size: .94rem;
  }

  .hero-art {
    min-height: 440px;
    margin: 0;
  }

  .art-window {
    width: min(100%, 420px);
  }

  .chip-pink {
    right: -1%;
  }

  .chip-green {
    left: -1%;
  }

  .hero-bottom {
    flex-wrap: wrap;
    gap: 10px;
    font-size: .56rem;
  }

  .bottom-line {
    min-width: 20px;
  }

  .community-section,
  .events-section {
    padding: 76px 0;
  }

  .section-intro h2,
  .events-top h2,
  .contact-copy h2 {
    font-size: clamp(2.8rem, 10vw, 4.4rem);
  }

  .events-top {
    display: block;
  }

  .events-intro {
    margin-top: 18px;
  }

  .contact-section {
    padding: 42px 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 22px;
  }

  .contact-details {
    padding: 23px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 25px 18px;
  }
}

@media (max-width: 520px) {

  .community-details,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 250px;
  }

  .hero-art {
    min-height: 395px;
  }

  .art-window {
    width: 94%;
  }

  .art-content {
    padding-inline: 17px;
  }

  .cloud-mark svg {
    width: 185px;
  }

  .floating-chip {
    padding: 9px 11px;
    font-size: .66rem;
  }

  .chip-pink {
    top: 9%;
  }

  .chip-green {
    bottom: 8%;
  }

  .events-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .community-note {
    align-items: flex-start;
    padding: 17px;
  }

  .contact-email {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .brand-copy strong {
    max-width: 190px;
    font-size: .72rem;
  }

  .brand-copy small {
    font-size: .52rem;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .terminal-lines p {
    grid-template-columns: 22px 1fr;
  }

  .terminal-lines em {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s ease;
}

.social-links a:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
}
