/* Blue Thread Labs: cozy orchard identity */

@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFFDF8;
  --cream-deep: #FAF4E8;
  --panel: #FFFFFF;
  --sky: #BEE3F5;
  --sky-light: #E3F3FC;
  --leaf: #5CAD4A;
  --leaf-deep: #2F7A35;
  --apple: #E0432F;
  --apple-deep: #B23120;
  --wood: #8A5A38;
  --wood-light: #C89B6D;
  --ink: #33291C;
  --ink-soft: #6F5F49;
  --line: #EFE6D3;
  --thread: #4C7FD1;
  --radius: 18px;
  --display: 'Fredoka', 'Avenir Next Rounded', -apple-system, sans-serif;
  --body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-weight: 450;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--leaf-deep);
}

.wordmark .logo {
  width: 52px;
  height: 23px;
  flex: none;
  margin-right: 10px;
}

.wordmark .dot {
  color: var(--apple);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--leaf-deep);
}

/* Hero — the orchard scene */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 62%, var(--cream) 100%);
  overflow: hidden;
}

.hero-copy {
  padding: 72px 24px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 28px;
}

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--apple);
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  box-shadow: 0 4px 0 var(--apple-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--apple-deep);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -6px;
}

/* Scene motion — gentle, and off for reduced motion */
.cloud-a {
  animation: drift-a 70s linear infinite;
}

.cloud-b {
  animation: drift-b 95s linear infinite;
}

.bob {
  animation: bob 3.4s ease-in-out infinite;
}

.bob-late {
  animation: bob 3.4s ease-in-out 1.7s infinite;
}


@keyframes drift-a {
  from { transform: translateX(-150px); }
  to { transform: translateX(1290px); }
}

@keyframes drift-b {
  from { transform: translateX(-560px); }
  to { transform: translateX(900px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-a, .cloud-b, .bob, .bob-late {
    animation: none;
  }
}

/* Clouds start offscreen so the loop reset is invisible */
.cloud-a { transform: translateX(-150px); }
.cloud-b { transform: translateX(-560px); }

@media (prefers-reduced-motion: reduce) {
  .cloud-a, .cloud-b {
    transform: none;
  }
}

/* Sections */
section {
  padding: 76px 0;
}

section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* First-game feature */
.game {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-deep);
  background: rgba(224, 67, 47, 0.1);
  border: 1px solid rgba(224, 67, 47, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.game p {
  color: var(--ink-soft);
  max-width: 52ch;
}

.game p + p {
  margin-top: 14px;
}

/* Teaser panel */
.teaser-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(138, 90, 56, 0.08);
}

.teaser-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #EAF6E4;
  border: 1px solid #CBE7BF;
}

.card .glyph svg {
  width: 24px;
  height: 24px;
  stroke: var(--leaf-deep);
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* About */
.about p {
  color: var(--ink-soft);
  max-width: 68ch;
}

.about p + p {
  margin-top: 16px;
}

.about strong {
  color: var(--ink);
  font-weight: 800;
}

.about .motto {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--thread);
  margin-top: 18px;
}

/* Contact */
.contact {
  text-align: center;
  background: var(--cream-deep);
}

.contact p {
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 26px;
}

.contact a.email {
  font-family: var(--display);
  font-weight: 600;
  color: var(--apple-deep);
  font-size: 1.25rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.contact a.email:hover {
  border-bottom-color: var(--apple-deep);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--cream);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  color: var(--leaf-deep);
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 22px;
  margin-top: 8px;
}

.legal a {
  color: var(--apple-deep);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-copy {
    padding-top: 48px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  section {
    padding: 56px 0;
  }
}
