:root {
  --ink: #f4f0e8;
  --muted: #c7c1b4;
  --line: rgba(244, 240, 232, 0.18);
  --panel: rgba(12, 13, 13, 0.74);
  --panel-strong: rgba(12, 13, 13, 0.9);
  --brass: #c6a35c;
  --signal: #9ed7c1;
  --danger: #e68472;
  --shadow: rgba(0, 0, 0, 0.48);
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-serif: Georgia, serif;
  --type-small: 0.82rem;
  --type-base: 1rem;
  --type-display: 2.75rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  color: var(--ink);
  background: #080909;
  font-family: var(--font-sans);
  font-size: var(--type-base);
}

body {
  min-height: 100vh;
  margin: 0;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.74)),
    url("./assets/olimp.png") center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 34%, rgba(0, 0, 0, 0.48));
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  min-height: 3.25rem;
  padding: 0 1.2rem;
  color: #080909;
  border: 0;
  border-radius: 6px;
  background: var(--signal);
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gate-shell {
  min-height: 100vh;
}

body:not(.is-unlocked) .gate-shell {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.gate-panel {
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 2rem 5rem var(--shadow);
  backdrop-filter: blur(18px);
}

.gate-panel label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: var(--type-base);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.code-row input {
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.code-row input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(158, 215, 193, 0.18);
}

.gate-error {
  margin: 0.9rem 0 0;
  color: var(--danger);
}

.logout-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.kicker,
.section-label,
.agenda-time {
  margin: 0 0 0.75rem;
  color: var(--brass);
  font-size: var(--type-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 500;
  line-height: 0.9;
}

.date-line {
  margin: 1rem 0 0;
  color: var(--signal);
  font-size: var(--type-base);
  font-weight: 700;
}

.edition-line {
  margin: 0.85rem 0 0;
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-style: italic;
  line-height: 1.1;
}

.hero {
  display: grid;
  min-height: 86vh;
  padding: 3rem 2rem;
  align-items: center;
}

.hero-inner,
.content-grid,
.section-heading,
.agenda-list,
.motivation-inner,
.cfp-inner,
.date-note-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.hero-inner {
  text-align: center;
}

#event-title {
  font-size: 6rem;
  line-height: 0.84;
}

.hero-inner .edition-line {
  margin-top: 1.1rem;
  font-size: var(--type-display);
}

.hero-inner .date-line {
  margin-top: 1.1rem;
  font-size: var(--type-base);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.35rem;
}

.hero-meta span {
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(12, 13, 13, 0.66);
}

.hero-cfp {
  width: min(100%, 44rem);
  margin: 1.1rem auto 0;
  padding: 0.85rem 1rem;
  color: var(--ink);
  border: 1px solid rgba(198, 163, 92, 0.52);
  border-radius: 6px;
  background: rgba(12, 13, 13, 0.78);
  font-size: var(--type-base);
  font-weight: 800;
  line-height: 1.45;
}

.hero-cfp strong {
  color: var(--brass);
}

.content-band {
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.72);
  backdrop-filter: blur(14px);
}

.overview {
  background: rgba(14, 15, 15, 0.78);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.venue-grid {
  grid-template-columns: minmax(0, 1fr);
}

.venue-panel,
.agenda-item,
.cfp-inner,
.motivation-inner,
.date-note-inner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
}

.venue-panel {
  padding: 1.35rem;
}

.venue-panel h2,
.cfp-inner h2,
.motivation-inner h2,
.date-note-inner h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 500;
  line-height: 1.06;
}

.venue-panel p:last-child,
.cfp-inner p:last-child,
.motivation-inner p:last-child,
.date-note-inner p:last-child {
  margin-bottom: 0;
}

.venue-panel p,
.agenda-item p,
.cfp-inner p,
.motivation-inner p,
.date-note-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 500;
}

.section-note {
  width: min(100%, 42rem);
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.agenda-list {
  display: grid;
  gap: 0.75rem;
}

.agenda-section {
  margin: 1.1rem 0 0.15rem;
  color: var(--brass);
  font-size: var(--type-small);
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-section:first-child {
  margin-top: 0;
}

.agenda-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

.agenda-item h3 {
  margin: 0;
  font-size: var(--type-base);
}

.agenda-item p:not(.agenda-time) {
  grid-column: 2;
  margin: 0.25rem 0 0;
}

.agenda-time {
  margin: 0.1rem 0 0;
}

.muted {
  border-color: rgba(244, 240, 232, 0.12);
}

.break-item {
  border-color: rgba(198, 163, 92, 0.42);
}

.cfp-inner,
.motivation-inner,
.date-note-inner {
  padding: 1.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050606;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 2.5rem 1rem 2rem;
  color: rgba(244, 240, 232, 0.24);
  background: rgba(8, 9, 9, 0.72);
  font-size: var(--type-small);
  text-align: center;
}

.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 2rem;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
}

.easter-egg.is-visible {
  display: grid;
}

.easter-egg-panel {
  width: min(100%, 34rem);
  padding: 1.5rem;
  border: 1px solid rgba(158, 215, 193, 0.38);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.58);
}

.easter-egg-panel h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 500;
}

.easter-close {
  float: right;
  min-width: 3rem;
  padding: 0;
}

.gps-access {
  display: grid;
  min-height: 100vh;
  padding: 2rem;
  place-items: center;
}

@media (max-width: 760px) {
  body:not(.is-unlocked) .gate-shell,
  .hero,
  .content-band,
  .easter-egg {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .gate-panel {
    padding: 1.25rem;
  }

  .code-row,
  .content-grid,
  .agenda-item {
    grid-template-columns: 1fr;
  }

  .code-row button {
    width: 100%;
  }

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

  .agenda-item p:not(.agenda-time) {
    grid-column: 1;
  }
}
