:root {
  --night: #0b1424;
  --night-2: #13233b;
  --text: #eef3f8;
  --muted: #b9c6d6;
  --green: #8fbf4f;
  --warm: #ffb45c;
  --lime: #b4e04e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 180, 92, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(143, 191, 79, 0.08), transparent 50%),
    linear-gradient(180deg, var(--night-2), var(--night));
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.lang {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(11, 20, 36, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--night);
  background: var(--text);
}

.lang button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.picture { margin: 0; }

.picture img {
  display: block;
  width: 100%;
  height: auto;
}

.message { padding: 0 1.5rem; max-width: 36rem; margin: 0 auto; }

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(180, 224, 78, 0.35);
}

p { margin: 0 0 1rem; }

.signature {
  margin-top: 1.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(180, 224, 78, 0.3);
}

footer { margin-top: 2.5rem; }

footer img { width: 300px; max-width: 80%; height: auto; display: block; }

footer a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Desktop: image and text side by side, the image fills the window height. */
@media (min-width: 900px) {
  .card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    min-height: 100vh;
    padding: 6vh 4rem;
  }

  .picture { justify-self: end; }

  .picture img {
    max-height: 84vh;
    width: auto;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(255, 180, 92, 0.12);
  }

  .message { justify-self: start; padding: 0; margin: 0; max-width: 34rem; }
}
