/* ============================================================
   Bot&Partners — minimal, neutral, sans
   Crisp whites · true-neutral greys · no accent · UA/EN · light+dark
   ============================================================ */

:root {
  --bg:    #fbfbfb;
  --ink:   #16161a;
  --soft:  #6e6e77;
  --line:  rgba(20, 20, 24, 0.10);
  --hover: rgba(20, 20, 24, 0.035);

  --font: "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 760px;
  --pad: clamp(22px, 6vw, 44px);
}

/* default to OS preference … */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #131316;
    --ink:   #ededee;
    --soft:  #8b8b93;
    --line:  rgba(255, 255, 255, 0.11);
    --hover: rgba(255, 255, 255, 0.05);
  }
}

/* … but a manual toggle wins over the OS */
:root[data-theme="light"] {
  --bg:    #fbfbfb;
  --ink:   #16161a;
  --soft:  #6e6e77;
  --line:  rgba(20, 20, 24, 0.10);
  --hover: rgba(20, 20, 24, 0.035);
}
:root[data-theme="dark"] {
  --bg:    #131316;
  --ink:   #ededee;
  --soft:  #8b8b93;
  --line:  rgba(255, 255, 255, 0.11);
  --hover: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* whisper of grain so flat fields don't feel sterile */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.018; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: 0.025; } }
:root[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: 0.018; }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.025; }

/* ---- shell ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 40px) var(--pad) clamp(28px, 4vw, 40px);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}

/* ---- top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }

.top-right { display: flex; align-items: center; gap: 14px; }
.divider { width: 1px; height: 15px; background: var(--line); }

.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang button {
  font: inherit; font-size: 0.78rem; letter-spacing: 0.03em;
  background: none; border: 0; cursor: pointer; color: var(--soft);
  padding: 2px; transition: color 0.2s ease;
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang button:hover { color: var(--ink); }
.lang .sep { color: var(--soft); opacity: 0.5; font-size: 0.78rem; }

.theme {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--soft);
  padding: 2px; line-height: 0; transition: color 0.2s ease, transform 0.3s ease;
}
.theme:hover { color: var(--ink); transform: rotate(-18deg); }

/* ---- hero ---- */
main { flex: 1; }
.hero { margin-top: clamp(64px, 17vh, 168px); }

.title {
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 26px;
  max-width: 40ch;
  font-size: clamp(1.16rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.lead.muted { color: var(--soft); margin-top: 16px; }

/* ---- offerings (display list, not links yet) ---- */
.offer { margin-top: clamp(56px, 11vh, 120px); }
.label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--soft); margin-bottom: 10px;
}

.links { list-style: none; }
.links li {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  padding: 22px 6px;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.links li:last-child { border-bottom: 1px solid var(--line); }
.links li:hover { background: var(--hover); }

.emoji { font-size: 1.3rem; line-height: 1; flex: none; filter: saturate(0.9); }
.link-name {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 600; letter-spacing: -0.02em; flex: 1;
}

/* ---- footer ---- */
.foot {
  margin-top: clamp(64px, 12vh, 140px); padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--soft);
}
.foot .mail { transition: color 0.25s ease; }
.foot .mail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- gentle staggered entrance ---- */
.r {
  opacity: 0; transform: translateY(14px);
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 95ms + 70ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- responsive ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .title { font-size: clamp(2.6rem, 15vw, 3.5rem); }
  .lead { max-width: none; }
  .links li { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
