:root {
  color-scheme: dark;
  font-family: "DejaVu Sans", Verdana, sans-serif;
  color: #f2eee8;
  background: #0a0a0c;
  --gold: #f5dbab;
  --accent: #e4ba70;
  --muted: #b1a89a;
  --art-height: 174px;
  --line: #493b28;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, dl, dd { margin: 0; }

.page {
  width: min(90%, 1440px);
  margin-inline: auto;
  text-align: center;
}

.hero {
  padding: 30px 0 0;
  background: radial-gradient(ellipse 42% 48% at 50% 37%, #9c723c15, transparent);
}

.banner {
  display: block;
  width: min(100%, 800px);
  height: auto;
  margin-inline: auto;
}

h1 {
  margin-top: 18px;
  font: bold clamp(1.4rem, 2.1vw, 2rem)/1.2 Georgia, serif;
  text-transform: uppercase;
}

.description {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.opening { width: min(100%, 593px); margin: 20px auto 0; }

.notice {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .65em;
  min-height: 58px;
  padding: 10px;
  border: 2px solid #8c6a3a;
  border-radius: 19px;
  background: #211a12;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-label {
  margin: 10px 0 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.countdown div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 7px;
  min-height: 55px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #131210;
}
.countdown dt { font-size: .625rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.countdown dd { font-size: 1.1875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }

.programme { margin: 22px 20px 0; }
.competitions {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), minmax(0, 441px));
  justify-content: center;
  gap: 27px;
  margin: 0 12px;
  padding: 0;
  list-style: none;
}
.competitions li {
  min-width: 0;
  min-height: 266px;
  padding: 17px 18px;
  border: 2px solid var(--line);
  border-radius: 21px;
  background: #111112;
}
.artwork { height: calc(var(--art-height) + 16px); }
.artwork img { display: block; margin-inline: auto; max-width: 100%; max-height: var(--art-height); }
.competitions p {
  margin-inline: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}
footer {
  margin-top: 22px;
  padding: 14px 0 26px;
  border-top: 1px solid #332b20;
  color: var(--muted);
  font-size: .75rem;
}
footer a { color: inherit; text-underline-offset: .2em; }
footer a:hover, footer a:focus-visible { color: var(--gold); }
footer strong { color: var(--gold); }

@media (max-width: 700px) {
  .page { width: calc(100% - 40px); --art-height: 180px; }
  footer { margin-inline: 4px; }
  .headline-period { display: none; }
  .registration-heading { display: block; }
  .hero { padding: 20px 2px 0; background-size: 100% 330px; background-repeat: no-repeat; }
  .intro { display: flex; flex-direction: column; align-items: center; }
  h1 { margin-top: 24px; font-size: clamp(1.12rem, 5.35vw, 1.45rem); }
  .opening { margin-top: 18px; padding-inline: 3px; }
  .notice { flex-direction: column; gap: 4px; min-height: 76px; border-radius: 17px; }
  .notice span { font-size: .8125rem; color: var(--accent); }
  .notice time { font-size: 1.375rem; }
  .countdown-label { margin-top: 11px; }
  .description {
    order: 1;
    max-width: 33ch;
    margin-top: 12px;
    font-size: .8125rem;
    line-height: 1.7;
    color: inherit;
  }
  .programme { margin: 18px 0 0; }
  .competitions { grid-template-columns: minmax(0, 441px); gap: 16px; margin: 0; }
  .competitions li { min-height: 0; padding: 14px 12px; border-radius: 19px; }
  .artwork { height: auto; margin-bottom: 14px; }

  .competitions p { margin-inline: 8px; padding-top: 14px; }
  footer { margin-top: 18px; padding: 19px 0 18px; }
}

.logo-frame { margin-inline: auto; }
.logo-frame img { display: block; max-width: 100%; }
.logo-frame.cropped {
  width: 100%;
  aspect-ratio: var(--logo-ratio);
  overflow: hidden;
}
.artwork .logo-frame.cropped { width: min(100%, calc(var(--art-height) * var(--logo-ratio))); }
.logo-frame.cropped img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transform: scale(var(--logo-zoom));
}
h1 { letter-spacing: -.015em; }
.competitions p { letter-spacing: -.012em; }

