:root {
  --blue: #1266c8;
  --ink: #15345f;
  --card: rgba(255, 255, 255, 0.97);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: #0c4660;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.hero {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 4rem);
}

.background, .background img, .hero::after {
  inset: 0;
  position: absolute;
}

.background { z-index: -2; }

.background img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 34, 54, .24) 0%, transparent 35%, rgba(3, 23, 35, .38) 100%);
}

.hero-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.headline, .date-display {
  background: rgba(5, 34, 54, .14);
  border-radius: .75rem;
  color: var(--headline-color, #eaf6ff);
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .32);
}

.headline { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: .04em; padding: .35rem .6rem; }
.date-display { font-size: clamp(1.85rem, 4.1vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: .4rem; padding: .2rem .55rem; }

.admin-link {
  align-items: center;
  background: rgba(255, 255, 255, .25);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  text-decoration: none;
  width: 2rem;
  opacity: .62;
  transition: opacity .2s, transform .2s;
}

.admin-link:hover, .admin-link:focus-visible { opacity: 1; transform: rotate(24deg); outline: 2px solid white; outline-offset: 3px; }

.cards {
  display: grid;
  gap: clamp(1rem, 8vw, 11rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: auto auto 0;
  max-width: 1210px;
  padding-top: 3rem;
  width: 100%;
}

.card {
  background: var(--card);
  border-radius: 1.35rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 20, 35, .22);
  display: grid;
  grid-template-columns: 4.35rem 1fr;
  padding: 1.35rem;
  gap: 0 1rem;
}

.card-icon, .qr-code {
  align-items: center;
  background: #edf5ff;
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  grid-row: span 2;
  height: 4.35rem;
  justify-content: center;
  width: 4.35rem;
}

.card-icon svg { height: 2rem; width: 2rem; }

.card h2 { font-size: 1.1rem; margin: .2rem 0 .55rem; }
.card p { color: #55667e; font-size: .9rem; line-height: 1.55; margin: 0; max-width: 26rem; }
.card-footer { border-top: 1px solid #e8edf3; grid-column: 1 / -1; margin-top: 1.1rem; padding-top: 1rem; }
.card-footer a { align-items: center; color: var(--blue); display: inline-flex; font-size: 1rem; font-weight: 700; gap: .7rem; overflow-wrap: anywhere; text-decoration: none; }
.card-footer a:hover, .card-footer a:focus-visible { text-decoration: underline; }

.qr-code { overflow: hidden; padding: .48rem; }
.qr-code img { display: block; height: 100%; width: 100%; }

@media (max-width: 680px), (orientation: portrait) {
  .hero { min-height: 100svh; padding: 1.25rem; }
  .cards { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; padding-top: 0; }
  .card { border-radius: 1.15rem; grid-template-columns: 3.8rem 1fr; padding: 1.1rem; }
  .card-icon, .qr-code { height: 3.8rem; width: 3.8rem; }
  .date-display { font-size: clamp(1.75rem, 9vw, 2.6rem); }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero { padding: 1.25rem 3rem; }
  .cards { padding-top: 1rem; }
  .card { padding: .9rem 1.1rem; }
  .card-icon, .qr-code { height: 3.4rem; width: 3.4rem; }
}
