/* Good Day Sunshine Studio — draft landing page, version 4
   Draft only. Not for publish or deploy.
   Defaults: bright teal #137382 on hero and About; gentler terracotta #C2694A. */

:root {
  --cream: #FFF6E4;
  --cream-card: #FFFAF3;
  --ink: #1A2428;
  --ink-soft: #3A4A50;
  --sky: #0F5E73;          /* links + teal card stripes */
  --sky-hero: #137382;     /* hero and About box */
  --sky-dark: #0B4B5C;     /* footer, stays put */
  --gold: #F5B012;
  --terracotta: #C2694A;   /* gentler terracotta card stripe */
  --clay: #B5523A;         /* "Coming soon" badge text and border */
  --leaf: #1F7A4D;
  --line: rgba(26, 36, 40, 0.12);
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Tahoma, sans-serif;
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(15, 94, 115, 0.1);
  --shadow-lift: 0 16px 36px rgba(15, 94, 115, 0.16);
  --header-h: 4.25rem;
  --max: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

a {
  color: var(--sky);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--sky-dark); }

a:focus-visible,
.card-link:focus-visible,
.brand:focus-visible,
.nav a:focus-visible,
.skip:focus-visible,
.lil-peek:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nobreak {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 228, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2.35rem;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0;
}

.nav a:hover {
  color: var(--sky);
  text-decoration: underline;
}

/* Hero */

.hero {
  background: var(--sky-hero);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { color: var(--cream); }

.hero .eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
  opacity: 0.95;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 0.7rem;
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 36rem;
  color: var(--cream);
  margin: 0;
}

.hero-sun-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-sun-pulse {
  position: relative;
  width: min(100%, 22rem);
  animation: rays-pulse 3.4s ease-in-out infinite;
}

.hero-sun {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: sun-spin 90s linear infinite;
  transform-origin: 50% 50%;
  /* Flat: no filter, glow, or drop-shadow on the sun itself. */
}

@keyframes sun-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rays-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* Floating sparkles */

.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffd24a;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkle-float 7s ease-in-out infinite;
  opacity: 0;
}

.sparkle.s1 { left: 12%; top: 28%; animation-delay: 0s; animation-duration: 6.5s; }
.sparkle.s2 { left: 28%; top: 16%; width: 8px; height: 8px; animation-delay: 1.4s; animation-duration: 7.2s; }
.sparkle.s3 { left: 62%; top: 22%; width: 10px; height: 10px; animation-delay: 0.6s; animation-duration: 6.8s; }
.sparkle.s4 { left: 78%; top: 18%; animation-delay: 2.1s; animation-duration: 7.6s; }
.sparkle.s5 { left: 86%; top: 42%; width: 9px; height: 9px; animation-delay: 3s; animation-duration: 6.4s; }
.sparkle.s6 { left: 54%; top: 12%; width: 7px; height: 7px; animation-delay: 1.8s; animation-duration: 8s; }

@keyframes sparkle-float {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.7) rotate(0deg); }
  20% { opacity: 0.95; }
  50% { opacity: 1; transform: translateY(-18px) scale(1) rotate(25deg); }
  80% { opacity: 0.7; }
}

/* Guiding path */

.page-body {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
}

.guide-path {
  position: absolute;
  left: 0;
  right: 0;
  top: -1rem;
  width: 100%;
  height: calc(100% + 1rem);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.guide-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10px;
  stroke-linecap: round;
  stroke-dasharray: 0.01 22;
  opacity: 0.95;
  vector-effect: non-scaling-stroke;
}

.guide-mobile { display: none; }

.guide-mask {
  /* fully visible without JS; JS sets dashoffset to draw on scroll */
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

html.js:not(.reduce-motion) .guide-mask {
  stroke-dashoffset: 1;
}

.section {
  position: relative;
  z-index: 1;
  margin-bottom: 3.5rem;
  scroll-margin-top: 5.5rem;
}

#projects {
  padding-bottom: 4.5rem;
}

.section-intro {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto 1.8rem;
  background: var(--cream);
  padding: 0.85rem 1.2rem 1.15rem;
  position: relative;
  z-index: 1;
}

.section-intro p {
  color: var(--ink-soft);
  margin: 0;
}

/* Cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.card {
  --stripe: var(--sky);
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--line);
  padding: 1.7rem 1.35rem 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease var(--delay, 0s),
    transform 0.65s ease var(--delay, 0s),
    box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--stripe);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  transform-origin: 50% 0;
}

.card-sky { --stripe: var(--sky); }
.card-terra { --stripe: var(--terracotta); }
.card-gold { --stripe: var(--gold); }
.card-leaf { --stripe: var(--leaf); }

.card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.card.is-inview:hover,
.card.is-inview:focus-within {
  transform: translateY(-8px) rotate(-0.7deg);
  box-shadow: var(--shadow-lift);
  transition-delay: 0s;
}

.card.is-inview:nth-child(even):hover,
.card.is-inview:nth-child(even):focus-within {
  transform: translateY(-8px) rotate(0.7deg);
}


@keyframes stripe-wiggle {
  0%, 100% { transform: scaleY(1) rotate(0deg); }
  25% { transform: scaleY(1.4) rotate(-2deg) translateX(2px); }
  50% { transform: scaleY(0.85) rotate(2deg) translateX(-2px); }
  75% { transform: scaleY(1.2) rotate(-1deg); }
}

.card-progress {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(245, 176, 18, 0.07) 10px,
      rgba(245, 176, 18, 0.07) 20px
    ),
    var(--cream-card);
}

.card p:last-of-type { margin-bottom: 1.1rem; }

.badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.7rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge-soon {
  background: var(--cream);
  border: 2px solid var(--clay);
  color: var(--clay);
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  text-decoration: none;
  color: var(--sky);
  padding: 0.35rem 0;
  border-bottom: 2px solid var(--gold);
}

.card-link:hover {
  color: var(--sky-dark);
  border-bottom-color: var(--sky);
}

.card-link::after {
  content: " →";
}

/* Lil Sunshine peek */

.lil-peek {
  position: absolute;
  right: -0.4rem;
  bottom: -0.4rem;
  width: 8.75rem;
  margin: 0;
  z-index: 4;
  cursor: pointer;
  opacity: 0;
  transform: translate(12px, 18px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.lil-peek.is-inview {
  opacity: 1;
  transform: none;
}

.lil-peek img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(26, 36, 40, 0.18));
  transform-origin: 70% 90%;
  animation: lil-idle 3.6s ease-in-out infinite;
}


@keyframes lil-idle {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-6px); }
}

@keyframes lil-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

/* About */

.about-card {
  background: var(--sky-hero);
  color: var(--cream);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2rem 1.6rem 1.7rem;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.about-card h2,
.about-card p {
  color: var(--cream);
}

.about-card p {
  margin: 0 auto;
  max-width: 38rem;
}

.about-sun {
  width: 4.5rem;
  height: auto;
  margin: 0 auto 0.8rem;
  animation: sun-spin 90s linear infinite;
}

/* Footer */

.site-footer {
  background: var(--sky-dark);
  color: var(--cream);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-brand img {
  width: 1.75rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.draft-note {
  font-size: 0.95rem;
  opacity: 0.88;
}

/* Phone */

@media (max-width: 760px) {
  body { font-size: 1.15rem; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.2rem 1.15rem 2.4rem;
    text-align: center;
  }

  .hero .lead { margin: 0 auto; }

  .hero-sun-pulse {
    width: min(70vw, 16rem);
  }

  .page-body {
    padding-top: 2.25rem;
  }

  /* No dotted trail on phones (Maria, Nov 18) */
  .guide-path { display: none; }

  .cards { grid-template-columns: 1fr; }

  #projects { padding-bottom: 5.5rem; }

  .lil-peek {
    right: 0.2rem;
    bottom: -0.2rem;
    width: 7.25rem;
  }

  .sparkle.s2,
  .sparkle.s6 { display: none; }
}

/* Reduced motion: all movement off, final state only */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card,
  .lil-peek {
    opacity: 1 !important;
    transform: none !important;
  }

  .card.is-inview:hover,
  .card.is-inview:focus-within,
  .card.is-inview:nth-child(even):hover,
  .card.is-inview:nth-child(even):focus-within {
    transform: none !important;
  }

  .hero-sun,
  .hero-sun-pulse,
  .about-sun,
  .lil-peek img {
    transform: none !important;
    animation: none !important;
  }

  .sparkle { opacity: 0.7; transform: none; }

  .guide-mask { stroke-dashoffset: 0 !important; }
}

/* A "Coming soon" badge in place of a link sits at the bottom of the card */
.card > .badge:last-child { margin: auto 0 0; }

/* Contact email (Maria, Nov 18) */
.about-contact { margin-top: 1rem; font-weight: 700; }
.about-contact a,
.footer-email { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.about-contact a:hover,
.footer-email:hover { color: var(--gold); }
.about-contact a { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { .about-contact a { font-size: 0.92rem; } }
