:root {
  --paper: #f4f0e8;
  --ink: #151515;
  --muted: #68625b;
  --charcoal: #20211f;
  --steel: #6f7876;
  --rust: #9b4f35;
  --gold: #c0a15f;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #f7f3ea;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
}

.site-header.solid {
  position: sticky;
  color: var(--paper);
  background: rgba(22, 22, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 120px;
}

.brand span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  margin-top: 5px;
  color: rgba(247, 243, 234, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 34px);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  color: rgba(247, 243, 234, 0.78);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta,
.primary-button,
.secondary-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-cta,
.primary-button {
  color: #171715;
  background: var(--gold);
}

.nav-cta:hover,
.primary-button:hover {
  background: #dcc173;
}

.secondary-button {
  color: #f7f3ea;
  border-color: rgba(247, 243, 234, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 150px clamp(22px, 6vw, 86px) 76px;
  color: #f7f3ea;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04) 44%),
    url("assets/dcmun-theme.jpeg") center / cover;
  filter: grayscale(100%) contrast(1.18);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
  opacity: 0.13;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--rust);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.65);
}

.tagline {
  margin-bottom: 20px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.15rem, 3.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  color: rgba(247, 243, 234, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--charcoal);
  color: #f7f3ea;
}

.feature-band article {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-band strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
}

.feature-band span,
.detail-card p,
.intro-copy p,
.committee-copy p,
.registration-panel li,
.form-intro p,
.profile-card p,
.page-hero p,
.edition-hero p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-band span {
  color: rgba(247, 243, 234, 0.72);
}

.intro-section,
.committee-section,
.registration-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(22px, 6vw, 86px);
}

.intro-copy h2,
.section-heading h2,
.registration-panel h2,
.committee-title h2,
.page-hero h1,
.edition-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.04;
}

.intro-copy p {
  max-width: 740px;
  font-size: 1.04rem;
}

.quote-panel {
  min-height: 360px;
  padding: 42px;
  color: #f7f3ea;
  background:
    linear-gradient(rgba(25, 25, 23, 0.8), rgba(25, 25, 23, 0.8)),
    url("assets/dcmun-theme.jpeg") center / cover;
  box-shadow: var(--shadow);
  filter: grayscale(100%);
}

.quote-mark {
  display: block;
  color: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 6rem;
  line-height: 0.8;
}

.quote-panel p {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.13;
}

.details-grid,
.secretariat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(22px, 6vw, 86px) clamp(76px, 9vw, 124px);
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 820px;
}

.detail-card,
.profile-card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.detail-card h3,
.profile-card h2 {
  margin-bottom: 14px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  padding: 28px clamp(22px, 6vw, 86px);
  color: rgba(247, 243, 234, 0.72);
  background: #151515;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.subpage {
  min-height: 72vh;
}

.page-hero,
.edition-hero {
  position: relative;
  color: #f7f3ea;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42)),
    url("assets/dcmun-theme.jpeg") center / cover;
  filter: grayscale(100%);
}

.page-hero.compact {
  padding: clamp(86px, 11vw, 140px) clamp(22px, 6vw, 86px);
}

.page-hero > *,
.edition-hero > * {
  position: relative;
  max-width: 900px;
}

.page-hero p,
.edition-hero p {
  max-width: 720px;
  color: rgba(247, 243, 234, 0.8);
  font-size: 1.1rem;
}

.edition-hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(22px, 6vw, 86px) 78px;
}

.committee-section {
  align-items: start;
}

.committee-title {
  padding: 32px;
  color: #f7f3ea;
  background: var(--charcoal);
}

.committee-title h2 {
  margin-bottom: 8px;
  color: var(--gold);
}

.committee-title p:last-child {
  margin: 0;
  color: rgba(247, 243, 234, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.secretariat-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding-top: 74px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: 0 clamp(22px, 6vw, 86px) clamp(76px, 9vw, 124px);
}

.form-intro {
  position: sticky;
  top: 104px;
}

.form-intro h2 {
  margin-bottom: 22px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 1.04;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  color: #f7f3ea;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.registration-form label {
  display: grid;
  gap: 9px;
  color: rgba(247, 243, 234, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding: 14px 14px;
  color: #f7f3ea;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1rem;
  text-transform: none;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.registration-form textarea {
  resize: vertical;
}

.registration-form .wide,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  text-transform: none;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.consent span {
  color: rgba(247, 243, 234, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: rgba(247, 243, 234, 0.78);
  line-height: 1.55;
}

.form-status.success {
  color: #d8c270;
}

.form-status.error {
  color: #ffb199;
}

.profile-card {
  min-height: 340px;
  background: #ebe5d8;
}

.featured-profile {
  color: #f7f3ea;
  background: var(--charcoal);
}

.featured-profile p {
  color: rgba(247, 243, 234, 0.72);
}

.profile-initials {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 34px;
  color: var(--charcoal);
  background: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr auto;
    color: var(--paper);
    background: rgba(22, 22, 21, 0.98);
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 82px;
  }

  .feature-band,
  .details-grid,
  .secretariat-grid,
  .intro-section,
  .committee-section,
  .registration-panel,
  .form-section {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

  .feature-band article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .quote-panel {
    min-height: 280px;
  }

  .page-hero.compact,
  .edition-hero {
    padding-top: 74px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 1.3rem;
  }

  .nav-cta {
    display: none;
  }

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

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

  .primary-button,
  .secondary-button,
  .form-submit {
    width: 100%;
  }

  .intro-section,
  .committee-section,
  .registration-panel,
  .form-section,
  .details-grid,
  .secretariat-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .registration-form {
    grid-template-columns: 1fr;
  }
}
