body {
  margin: 0;
  font-family: system-ui, sans-serif;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;   /* centers the nav */
  align-items: center;
  padding: 1rem 2rem;
  background: #89cfef;
  border-bottom: 1px solid #d9dee7;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #13233f;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.nav a:hover {
  transform: scale(1.15);    /* grows on hover */
}

.nav a[aria-current="page"] {
  border-bottom: 2px solid #4a86d8;   /* no bold anymore */
}

.site-footer {
  background: #13233f;
  color: #dfe5f0;
  padding: 2rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-list a {
  color: #ffffff;
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

:root {
  --header-h: 4rem;
}

.site-header {
  height: var(--header-h);
  box-sizing: border-box;
}

.registration {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.registration h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 2rem;
  color: #13233f;
}

.deadlines {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.deadlines li {
  padding: 1.25rem 1.5rem;
  background: #eef4fb;
  border-left: 6px solid #4a86d8;
  border-radius: 6px;
  text-align: left;
}

.deadline-label {
  display: block;
  color: #55627a;
}

.deadline-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #13233f;
}

.apply-text {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.apply-btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: #13233f;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.apply-btn:hover {
  background: #2c5fa8;
  transform: scale(1.05);
}

/* Welcome hero */
.home-hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.welcome-text {
  margin: 0;
  font-size: clamp(3.5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #13233f;                       /* fallback if the image can't load */
  background-image: url("images/welcome-fill.png");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.conference-date {
  margin: 1.5rem 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: #13233f;
}

/* Shared style for the sections below the hero */
.home-section {
  padding: 4rem clamp(1.5rem, 8vw, 6rem);
}

.home-section > * {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.home-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #13233f;
}

/* Director */
.director {
  background: #eef4fb;
}

.director blockquote {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 6px solid #4a86d8;
  font-size: 1.2rem;
  line-height: 1.7;
}

.director blockquote p {
  margin: 0 0 1rem;
}

.signature {
  font-weight: 700;
  font-size: 1.1rem;
}

.signature span {
  font-weight: 400;
  color: #55627a;
}

/* Theme */
.theme {
  text-align: center;
  background: #13233f;
  color: #ffffff;
}

.theme h2 {
  color: #89cfef;
}

.theme-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1rem;
}

.theme p:last-child {
  font-size: 1.2rem;
  max-width: 38rem;
}

/* Committees overview */
.overview-list {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.overview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 8px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
}

.overview-list .easy   { --bg: #dff3e4; --accent: #2e7d4f; }
.overview-list .medium { --bg: #fff0c9; --accent: #8a5a00; }
.overview-list .hard   { --bg: #fbdad6; --accent: #b23a30; }

.o-name  { font-weight: 700; }
.o-level { color: var(--accent); font-weight: 600; }

.overview-link {
  margin-bottom: 2.5rem;
}

/* Position paper box */
.paper-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem;
  background: #eef4fb;
  border-left: 6px solid #4a86d8;
  border-radius: 6px;
}

.paper-label {
  display: block;
  color: #55627a;
}

.paper-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #13233f;
  overflow-wrap: anywhere;
}

a.paper-value:hover {
  text-decoration: underline;
}

/* Schedule */
.schedule {
  background: #f6f7f9;
}

.day {
  margin-bottom: 2rem;
}

.day h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #2c5fa8;
}

.day ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #d9dee7;
}

.day li:last-child {
  border-bottom: 1px solid #d9dee7;
}

.time {
  font-weight: 700;
  color: #13233f;
}

/* Phones */
@media (max-width: 700px) {
  .paper-box {
    grid-template-columns: 1fr;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cd-unit {
  min-width: 5.5rem;
  padding: 1rem 0.75rem;
  background: #13233f;
  color: #ffffff;
  border-radius: 8px;
  text-align: center;
}

.cd-num {
  display: block;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;   /* stops the boxes jiggling as digits change */
}

.cd-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #89cfef;
}

.countdown-done {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #13233f;
}

@media (max-width: 500px) {
  .cd-unit { min-width: 4.2rem; padding: 0.75rem 0.5rem; }
}

.resources {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.resources h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 2.5rem;
  color: #13233f;
}

.resource-squares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.resource-square {
  aspect-ratio: 1 / 1;           /* keeps each box square */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #13233f;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.resource-square:hover {
  background: #2c5fa8;
  transform: scale(1.04);
}

.square-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.handbook-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.75rem 1.75rem;
  background: #eef4fb;
  color: #13233f;
  border: 2px solid #13233f;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

  .resource-square:nth-child(2) { background: #2c5fa8; }
  .resource-square:nth-child(3) { background: #4a86d8; }s

.handbook-btn:hover {
  background: #13233f;
  color: #ffffff;
}

@media (max-width: 700px) {
  .resource-squares {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin: 0 auto;
  }
}