/* ============================================================
   Tamak Group — Design System
   ============================================================ */

:root {
  /* Core ink + paper */
  --ink: #0E0F0D;
  --ink-2: #1A1B17;
  --ink-soft: #2A2B27;
  --paper: #F4EFE6;
  --paper-pure: #FBF8F2;
  --paper-warm: #EFE7D8;
  --line: rgba(14, 15, 13, 0.12);
  --line-strong: rgba(14, 15, 13, 0.28);
  --line-soft: rgba(14, 15, 13, 0.06);
  --mute: rgba(14, 15, 13, 0.55);

  /* Signature accents */
  --orange: #CC1B2B;
  --orange-deep: #A11521;
  --tamak: #CC1B2B;
  --tamak-deep: #A11521;
  --tamak-soft: #FEE2E2;
  --teal: #00B8A9;
  --teal-deep: #008C82;
  --yellow: #FFC93D;
  --rose: #F2A6B0;
  --plum: #4B2E4E;
  --forest: #2E7D5B;
  --sky: #4A90E2;
  --olive: #6B7E3F;
  --berry: #D63E5F;

  /* Brand-specific */
  --c-yadea: #00B8A9;
  --c-bottega: #5B7E4F;
  --c-funky: #E84A8C;
  --c-citadel: #B8743C;
  --c-livewell: #4A90E2;
  --c-adopt: #B19CD9;
  --c-uniforms: #2C3E5A;
  --c-pos: #3A3A3A;

  /* Typography */
  --f-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --ink: #F4EFE6;
  --ink-2: #EAE3D2;
  --ink-soft: #C9C1AE;
  --paper: #0E0F0D;
  --paper-pure: #161714;
  --paper-warm: #1E1F1B;
  --line: rgba(244, 239, 230, 0.14);
  --line-strong: rgba(244, 239, 230, 0.30);
  --line-soft: rgba(244, 239, 230, 0.06);
  --mute: rgba(244, 239, 230, 0.55);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--orange); color: white; }

/* Headings reset */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* Helpers */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Layout primitives */
.shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.shell-wide { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }

.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.tag-filled { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* Image placeholder */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.025) 0px,
      rgba(0,0,0,0.025) 1px,
      transparent 1px,
      transparent 9px
    ),
    var(--paper-warm);
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px dashed var(--line-strong);
  pointer-events: none;
  border-radius: inherit;
}
.ph-label {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-fast { animation-duration: 30s; }
.marquee-slow { animation-duration: 90s; }

/* Section spacing */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-loose { padding: 140px 0; }

/* Big display helpers */
.display-hero {
  font-family: var(--f-display);
  font-size: clamp(56px, 9.5vw, 168px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 100, "opsz" 96;
}
.display-xl {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display-lg {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.display-md {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* Pretty cards */
.card {
  position: relative;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

/* Page transitions */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hide scrollbar utility */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Underline link */
.ulink {
  position: relative;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ulink:hover::after { transform: scaleX(0.4); }

/* Ticker bar */
.ticker {
  display: flex;
  gap: 48px;
  overflow: hidden;
  white-space: nowrap;
}

/* Yadea page accent */
.yadea-scope {
  --ink: #0B1212;
  --paper: #F0F4F3;
  --paper-pure: #FBFCFC;
  --paper-warm: #E2EAE8;
  --line: rgba(11, 18, 18, 0.10);
  --line-strong: rgba(11, 18, 18, 0.24);
  --mute: rgba(11, 18, 18, 0.55);
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);
}
.yadea-dark {
  --ink: #F0F4F3;
  --paper: #0B1212;
  --paper-pure: #0F1717;
  --paper-warm: #16201F;
  --line: rgba(240, 244, 243, 0.14);
  --line-strong: rgba(240, 244, 243, 0.32);
  --mute: rgba(240, 244, 243, 0.58);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .shell, .shell-wide { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-loose { padding: 80px 0; }
}
