/* Shared layout & typography — identical in bad.html and good.html.
   Colour, contrast, and focus-state rules live in bad.css / good.css,
   NOT here, so the two demos stay visually similar apart from the
   accessibility fixes being taught. */

* {
  box-sizing: border-box;
}

/* Standard visually-hidden-but-announced utility — for text that only
   AT should hear (paired with an aria-hidden visual equivalent), as
   opposed to .skip-link/.nav-close-btn's off-screen-until-focused
   technique, which is for interactive controls, not static text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 480px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: relative;
}

.header-bar {
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-icon {
  font-size: 20px;
}

/* Hero */

.hero {
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
}

.hero img {
  border-radius: 12px;
  margin-bottom: 1rem;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero p {
  margin: 0.5rem 0 1.25rem;
  font-size: 1rem;
}

.hero p.body-large {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0.5rem 0 0;
}

/* Sections */

section {
  padding: 1.75rem 1.25rem;
}

.events-section {
  background: #e8f4fb;
}

.spotlight-section {
  background: #ffffff;
}

.news-section {
  background: #fdf6e3;
}

.section-heading {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0em;
  margin: 0 0 1rem;
}

/* Event cards */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-card {
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid;
}

.event-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

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

.event-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0em;
  margin: 0 0 0.25rem;
}

.event-meta {
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.event-desc {
  font-size: 0.875rem;
  margin: 0 0 0.6rem;
}

/* Form */

.form-group {
  margin-bottom: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  border-width: 1px;
  border-style: solid;
}

.btn {
  display: inline-block;
  width: auto;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Spotlight */

.spotlight-card {
  display: flex;
  gap: 1.25em;
  align-items: center;
  padding: 1rem 0;
}

.spotlight-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spotlight-quote {
  margin: 0;
  font-size: 1.35em;
  line-height: 1.5;
}

/* News */

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-image {
  flex: 1;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  min-width: 0;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-headline {
  font-weight: 700;
  letter-spacing: 0em;
  margin: 0 0 0.3rem;
  font-size: 1.0625rem;
}

/* Footer */

.site-footer {
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
