/* ---- Sunflowers in the wind ---- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1f2430;
  overflow-x: hidden;
}

/* Sunflower meadow along the bottom of the screen */
.meadow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  min-height: 220px;
  pointer-events: none;
  z-index: -1;
}

/* Wrapper takes the mouse-gust rotation (from script.js);
   the inner svg keeps the idle sway. Both pivot at the stem base. */
.flower-wrap {
  position: absolute;
  bottom: -4px;
  transform-origin: 50% 100%;
  will-change: transform;
}

.flower {
  display: block;
  height: 100%;
  width: auto;
  transform-origin: 50% 100%;
  animation: sway var(--sway-dur, 7.5s) ease-in-out var(--sway-delay, 0s) infinite;
}

/* An uneven wander rather than a metronome tick */
@keyframes sway {
  0%   { transform: rotate(-2.8deg); }
  28%  { transform: rotate(1.6deg); }
  46%  { transform: rotate(3.1deg); }
  64%  { transform: rotate(0.4deg); }
  82%  { transform: rotate(2.2deg); }
  100% { transform: rotate(-2.8deg); }
}

/* Each flower gets its own spot, height and rhythm so the
   wind feels natural rather than synchronised. */
.flower--1 { left: 3%;  height: 62%; --sway-dur: 7.1s; --sway-delay: -2.1s; }
.flower--2 { left: 13%; height: 44%; --sway-dur: 5.8s; --sway-delay: -0.7s; }
.flower--3 { left: 25%; height: 72%; --sway-dur: 8.2s; --sway-delay: -4.4s; }
.flower--4 { left: 37%; height: 50%; --sway-dur: 6.3s; --sway-delay: -3.0s; }
.flower--5 { left: 51%; height: 78%; --sway-dur: 8.9s; --sway-delay: -1.5s; }
.flower--6 { left: 63%; height: 54%; --sway-dur: 6.6s; --sway-delay: -5.2s; }
.flower--7 { left: 77%; height: 68%; --sway-dur: 7.7s; --sway-delay: -3.7s; }
.flower--8 { left: 90%; height: 46%; --sway-dur: 6.0s; --sway-delay: -2.5s; }

@media (max-width: 640px) {
  /* fewer flowers on small screens so it doesn't get crowded */
  .flower--2,
  .flower--6 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flower {
    animation: none;
  }
}

/* ---- Content ---- */

main {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 10vh, 6rem) 1.5rem 2rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1f2430;
}

.tagline {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: #6b7280;
}

nav.links {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 1.15rem;
}

nav.links a {
  color: #1f2430;
  width: fit-content;
  text-decoration: none;
  border-bottom: 2px solid #f2c230;
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.links a:hover {
  color: #8a6d00;
  border-color: #d9a300;
}

.contact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.email-copy {
  font: inherit;
  color: #1f2430;
  background: none;
  border: none;
  padding: 0 0 1px;
  cursor: pointer;
  border-bottom: 2px solid #f2c230;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.email-copy:hover {
  color: #8a6d00;
  border-color: #d9a300;
}

.copy-note {
  margin-left: 0.5rem;
  color: #8a6d00;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-note.show {
  opacity: 1;
}

/* Inner pages */
.card {
  background: #ffffff;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(30, 40, 60, 0.06);
}

.card h1 {
  font-size: 1.7rem;
}

.card p {
  margin-top: 1rem;
  line-height: 1.7;
  color: #3c4354;
}

.card p a {
  color: #b8860b;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
}

.back:hover {
  color: #1f2430;
}

.updated {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #9aa0ad;
}
