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

:root {
  --bg: #eaebbf;

  --green-900: #2E5A2A;
  --green-800: #3E7133;
  --green-700: #49853C;
  --green-600: #5FA97F;
  --green-500: #6FAF5F;
  --green-300: #7bb54b;
  --green-200: #BDDEB6;
  --green-100: #E4FDB2;

  --text-dark: #1F1F1F;
  --text-body: #2F2F2F;
  --text-muted: #516055;

  --on-dark: #E7EFE9;
  --on-dark-2: #D6E2D8;

  --accent: var(--green-600);

  --cta: #efcd7e;
  --cta-hover: #e6c36d;

  --line: rgba(0, 0, 0, 0.06);

  --ff-title: "Gilda Display", Georgia, "Times New Roman", serif;
  --ff-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-subheading: "Quattrocento", Georgia, "Times New Roman", serif;
  --ff-body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --ff-body-alt: "Tinos", Georgia, "Times New Roman", serif;
  --ff-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-btn: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 6px;
}

/* Base */
body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--ff-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

li {
  list-style: none;
}

/* Components */
.btn {
  background-color: var(--cta);
  color: var(--text-dark);
  padding: 15px 25px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
  font-family: var(--ff-btn);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

.btn:hover {
  background-color: var(--cta-hover);
}

.btn:active {
  transform: translateY(1px);
}

.mail-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--text-body);
  color: var(--on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mail-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealScroll 0.8s ease-out forwards;
}

.reveal--d1 { animation-delay: 0.3s; }
.reveal--d2 { animation-delay: 0.45s; }
.reveal--d3 { animation-delay: 0.6s; }

@supports (animation-timeline: view()) {
  .reveal {
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
}

@keyframes revealScroll {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
