/* ───────────────────────────────────────────────────────────────────────────
   Remembering Justin — design tokens & base styles
   Ported faithfully from the approved high-fidelity prototype.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #f4ede0;
  --card-white: #fffdf8;
  --ink: #2b2620;
  --body-text: #4a4338;
  --secondary-text: #9a8f78;
  --amber: #b07a3a;
  --sage: #6b9a78;
  --forest: #2f4a39;
  --pending-amber: #c99a4a;
  --hairline: #e7e0d2;
  --field-bg: #fcfaf5;
  --card-shadow: 0 16px 34px -16px rgba(60, 40, 20, 0.5);
  --modal-shadow: 0 40px 90px -30px rgba(40, 30, 20, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

input::placeholder,
textarea::placeholder {
  color: #b3a890;
}

button {
  font-family: "Figtree", sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
button:hover {
  filter: brightness(0.97);
}
button:active {
  transform: translateY(1px);
}

a {
  color: inherit;
}

/* The hero name scales down gracefully on small screens. */
.hero-name {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: clamp(44px, 11vw, 76px);
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Hidden by default; shown via JS. */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.no-scroll {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Small-screen padding trims for the framing rows. */
@media (max-width: 560px) {
  .nav {
    padding: 18px 20px !important;
  }
  .hero {
    padding: 28px 22px 8px !important;
  }
  .wall {
    padding: 30px 20px 10px !important;
  }
}
