/* Nux website — shared styles for every page.
   Layout: 1440 design frame, 1200 content column (120px gutters), sections spaced 140px.
   Tokens come from the Figma file's variables. Single light theme by design. */
:root {
  color-scheme: light;
  --grey-0: #ffffff;
  --grey-100: #faf9f7;
  --grey-200: #efeeee;
  --grey-400: #c4c4c4;
  --grey-600: #837e7a;
  --grey-700: #555555;
  --grey-900: #221e1d;
  --brand: #755afd;
  --lilac: #d7b0ff;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.05);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --content: 1200px;
  --gutter: clamp(16px, 8.33vw, 120px);
  --section: clamp(80px, 9.7vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grey-100);
  color: var(--grey-900);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would stop the sticky header from sticking */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type scale (Figma: 93 / 74 / 60 / 50 / 36 / 24 / 22 / 20 / 18 / 16 / 14) */
.t-mega { font-size: clamp(44px, 6.46vw, 93px); line-height: 1.04; letter-spacing: -0.03em; }
.t-hero { font-size: clamp(42px, 5.14vw, 74px); line-height: 0.92; letter-spacing: -0.03em; }
.t-xl { font-size: clamp(36px, 4.17vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.t-l { font-size: clamp(32px, 3.47vw, 50px); line-height: 1.04; letter-spacing: -0.03em; }
.t-m { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.t-s { font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.39vw, 20px); line-height: 1.4; }
.body-s { font-size: 16px; line-height: 1.3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 12.5px; /* text optically centred: no vertical nudge, so the capitals sit a hair above centre and the mostly lowercase label reads as centred (Doron, Oct 13, 2nd pass) */ border-radius: 999px;
  font: 500 14px/1 var(--font-body); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition-property: transform, background-color, color, border-color;
  transition-duration: .4s; transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
/* Hover: eases into solid brand purple and settles in very slightly (98.5%), like a soft press. No shadow, no outline. */
@media (hover: hover) {
  .btn:hover { background: #755afd; border-color: #755afd; color: #fff; transform: scale(.985); }
}
.btn:focus-visible { background: #755afd; border-color: #755afd; color: #fff; }
.btn-soft { background: var(--grey-200); border-color: var(--line-soft); color: var(--grey-900); }
.btn-dark { background: var(--grey-900); color: var(--grey-0); }
.btn-lg { height: 50px; padding: 1px 22px 0; font-size: 18px; }

/* Header */
.site-header { padding-block: 10px; } /* narrower bar (Doron, Oct 13; was 18px) */
/* Sticky header (Doron, Oct 9): stays at the top on every page, on a frosted page-colour background.
   A hairline fades in under it over the first 60px of scroll (where scroll-driven animations are supported). */
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(250 249 247 / .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-line linear both; animation-timeline: scroll(); animation-range: 0 60px; }
  @keyframes header-line { from { box-shadow: 0 1px 0 rgb(34 30 29 / 0); } to { box-shadow: 0 1px 0 rgb(34 30 29 / .08); } }
}
html { scroll-padding-top: 72px; } /* in-page links land below the sticky header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(1296px + 2 * var(--gutter)); padding-inline: clamp(16px, 5vw, 72px); }
.brand { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: var(--grey-900); }
.brand img { width: 40px; height: 40px; }
.brand span { font: 600 34.3px/1 var(--font-body); letter-spacing: -0.01em; margin-top: -2px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font: 500 14px/24px var(--font-body); letter-spacing: -0.01em; text-decoration: none; }
.site-nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .btns { display: flex; gap: 6px; }

/* Footer */
.site-footer { padding-block: 0 16px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-footer a, .site-footer small { font: 500 18px/1.1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .legal { display: flex; align-items: center; gap: 24px; }
.site-footer small { color: var(--grey-600); }
.site-footer .badge { width: 70px; height: 70px; border-radius: 50%; }

@media (max-width: 760px) {
  .site-nav ul { display: none; }
  /* Phones: both header buttons stay (Doron, Oct 13), a little smaller so they fit next to the logo */
  :root { --gutter: 10px; } /* phones: page content sits 10px from each screen edge (Doron, Oct 13) */
  .site-header .wrap { gap: 12px; padding-inline: 10px; }
  .site-nav .btn { height: 36px; padding-inline: 11px; font-size: 13px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 28px; }
}
@media (max-width: 350px) { .brand span { display: none; } } /* very narrow phones: logo mark only, so both header buttons still fit */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
