/* ==========================================================================
   VARKOD — global.css
   Brand palette (sampled from your logo):
     --green  #2a3b19   (background)
     --cream  #dddcd7   (logo / text)
   Everything else is a transparency of these two colours.
   ========================================================================== */

:root {
  --green: #2a3b19;
  --cream: #dddcd7;
  --cream-80: rgba(221, 220, 215, 0.8);
  --cream-60: rgba(221, 220, 215, 0.6);
  --cream-line: rgba(221, 220, 215, 0.18);
  --cream-fill: rgba(221, 220, 215, 0.06);

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: 16px;
  --max: 1200px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--green);
  color: var(--cream-80);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--cream);
  font-weight: 400;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

::selection {
  background: var(--cream);
  color: var(--green);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-60);
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-top: 14px;
}

.section__text {
  margin-top: 22px;
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--cream-80);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.4s,
    color 0.4s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--cream);
  color: var(--green);
}

.btn--solid:hover {
  background: transparent;
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--green);
}

.btn__arrow {
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- Reveal on scroll (toggled by Home.jsx) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Shared keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Coming soon placeholder (pages not designed yet) ---------- */
.coming-soon {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.coming-soon__inner {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.coming-soon__title {
  font-size: clamp(3.5rem, 12vw, 9rem);
  color: var(--cream);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
