/* Marketing website kit — extends root tokens, adds page-level rhythm. */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--paper);
  letter-spacing: var(--tracking-kids);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mirait-green-600);
  text-transform: none;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 12px 0 20px;
  color: var(--fg-1);
  text-wrap: pretty;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-2);
  max-width: 38em;
}

.marker {
  background: linear-gradient(180deg, transparent 62%, var(--insta-orange-bg) 62%, var(--insta-orange-bg) 92%, transparent 92%);
  padding: 0 4px;
}
.hand { font-family: var(--font-hand); color: var(--mirait-green-600); }

/* CTA button system */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em;
  transition: transform var(--dur-base) var(--ease-bounce),
              box-shadow var(--dur-base) var(--ease-out-soft),
              background var(--dur-base) var(--ease-out-soft);
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--mirait-green); color: var(--fg-on-green); box-shadow: var(--shadow-sticker); }
.btn-primary:hover { background: var(--mirait-green-600); }
.btn-secondary { background: var(--white); color: var(--fg-1); box-shadow: 0 0 0 1.5px var(--hairline) inset, var(--shadow-xs); }
.btn-secondary:hover { box-shadow: 0 0 0 1.5px var(--mirait-green) inset, var(--shadow-sm); color: var(--mirait-green-600); }
.btn-accent { background: var(--insta-orange); color: var(--ink); box-shadow: var(--shadow-sticker); }
.btn-accent:hover { background: var(--insta-orange); }

/* Sticker badge */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.sticker-yellow { background: var(--insta-orange); }
.sticker-coral { background: var(--mirait-pink); color: #fff; }

/* Organic blob helper — USE SPARINGLY, as background accent only, never as content */
.blob { border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%; }

/* =======================================================================
   PHOTOGRAPHY — the lead visual medium for this brand.

   Real activity photos go inside .photo. Until real photos land, we render
   a <Photo> placeholder: a tinted rounded frame with a discreet label
   describing the shot we want. The placeholder has no blue/neon hues so
   the page still reads warm & brand-appropriate.

   Treatment (applied via .photo):
     • rounded (24px default, 32px for hero)
     • subtle warm overlay (protects text placed on top, keeps images on-brand)
     • optional slight grain for a classroom-photo feel
     • shadow-sm ambient
   ======================================================================= */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--greige);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.ratio-1 { aspect-ratio: 1 / 1; }
.photo.ratio-3-2 { aspect-ratio: 3 / 2; }
.photo.ratio-16-9 { aspect-ratio: 16 / 9; }
.photo.ratio-4-5 { aspect-ratio: 4 / 5; }
.photo.ratio-hero { aspect-ratio: 5 / 6; border-radius: var(--radius-xl); }

/* Warm protection overlay — keeps photos on-brand + makes them safer under text */
.photo.warm::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(63,152,119,0) 0%, rgba(84,84,85,0.08) 60%, rgba(84,84,85,0.22) 100%),
              linear-gradient(0deg, rgba(230,138,63,0.06), rgba(230,138,63,0.06));
  mix-blend-mode: multiply;
}
.photo.text-over { color: #fff; }
.photo.text-over::after {
  background: linear-gradient(180deg, rgba(42,42,43,0) 35%, rgba(42,42,43,0.55) 100%);
}

/* Grain — applied only when data-grain is set, via SVG noise in background */
.photo.grain::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* Placeholder state — rendered when <img> is missing. Warm, on-brand, NOT blue */
.photo.is-placeholder {
  background:
    linear-gradient(135deg, var(--mirait-green-100) 0%, var(--greige) 50%, var(--insta-orange-bg) 100%);
  display: flex; align-items: center; justify-content: center;
}
.photo .ph-label {
  position: relative; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(246, 245, 239, 0.88);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 80%;
  box-shadow: var(--shadow-xs);
}
.photo .ph-label .ph-icon {
  width: 28px; height: 28px;
  color: var(--mirait-green-600);
}
.photo .ph-label .ph-brief {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-1);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
.photo .ph-label .ph-meta {
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Photo caption — lives under or overlaid on a photo */
.photo-caption {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-top: 10px;
  display: flex; align-items: baseline; gap: 8px;
}
.photo-caption::before {
  content: ''; width: 14px; height: 1px; background: var(--ink-4);
  display: inline-block; margin-bottom: 3px;
}

/* Photo on a colored bg panel (for full-bleed-ish feel inside a section) */
.photo-panel {
  background: var(--mirait-green);
  color: var(--fg-on-green);
  border-radius: var(--radius-xl);
  padding: 28px;
}

/* Dotted grid bg */
.bg-dots {
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--hairline) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}
/* Warm wash */
.bg-wash {
  background:
    radial-gradient(circle at 85% 15%, var(--insta-orange-bg) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, var(--mirait-green-100) 0%, transparent 60%),
    var(--paper);
}
