/* ==========================================================================
   For Jorg - Holding Site
   Glass morphism over a Bliss-inspired walnut grove
   ========================================================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-bg-strong: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 20px 60px rgba(30, 50, 20, 0.22), 0 2px 8px rgba(30, 50, 20, 0.08);
  --ink: #1e2f14;
  --ink-soft: #3a4a2c;
  --ink-muted: #5a6a4c;
  --accent: #4a7a1f;
  --accent-hover: #3a6018;
  --revolut: #0075eb;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background-color: #6aa8df;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.scene-bg svg {
  width: 100%;
  height: 100%;
}

/* Trees grow from their base on load, staggered by depth via --d */
.tree {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: tree-grow 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes tree-grow {
  from { transform: scale(var(--s), 0); }
  to   { transform: scale(var(--s)); }
}

/* ==========================================================================
   Main card
   ========================================================================== */
.card {
  width: 100%;
  max-width: 560px;
  padding: 2.5rem 2rem 2.25rem;
  border-radius: 22px;

  /* Glass effect */
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);

  /* Fade-in on load */
  animation: card-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-style: italic;
}

h1 .name {
  font-style: normal;
  font-weight: 500;
}

.message {
  font-size: 1.025rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.message p {
  margin: 0 0 0.85rem;
}

.message p:last-child {
  margin-bottom: 0;
}

/* Divider leaf */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
  color: var(--ink-muted);
  opacity: 0.55;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}

.divider svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Contribute section (QR + button)
   ========================================================================== */
.contribute {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.qr-wrap {
  padding: 14px;
  background: var(--glass-bg-strong);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(30, 50, 20, 0.12);
  line-height: 0; /* kill inline-block gap around the QR */
}

.qr-wrap img,
.qr-wrap svg,
.qr-wrap canvas {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 4px;
}

.qr-caption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--revolut);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 117, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  width: 100%;
  max-width: 320px;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 117, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: #005fbf;
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 117, 235, 0.3);
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cta svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footnote {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 1.5rem 0 0;
  font-style: italic;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media (max-width: 640px) {
  .qr-wrap, .qr-label { display: none; }
}

@media (max-width: 480px) {
  body { padding: 1.25rem 1rem; }

  .card {
    padding: 1.85rem 1.4rem 1.75rem;
    border-radius: 18px;
  }

  .qr-wrap img,
  .qr-wrap svg,
  .qr-wrap canvas {
    width: 148px;
    height: 148px;
  }

  .cta {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .card {
    max-width: 600px;
    padding: 3rem 2.5rem 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .cta { transition: none; }
  .tree { animation: none; transform: scale(var(--s)); }
}
