/* =====================================================================
   BAM — by Alex Mihailescu
   Global stylesheet & design system
   ---------------------------------------------------------------------
   To restyle the whole site, edit the variables in :root below.
   ===================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Colors — change these 7 lines to recolor the entire site */
  --color-bg: #FFFFFF;        /* page background          */
  --color-surface: #F7F7F5;   /* section / card background */
  --color-ink: #141414;       /* primary text + wordmark   */
  --color-muted: #6E6E6E;     /* secondary text            */
  --color-line: #E6E6E3;      /* borders & dividers        */
  --color-accent: #141414;    /* buttons & links           */
  --color-accent-ink: #FFFFFF;/* text on accent background  */

  /* Typography */
  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --header-height: 72px;

  /* Misc */
  --radius: 2px;
  --transition: 0.2s ease;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-weight: var(--fw-regular);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; }

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4 { font-weight: var(--fw-semibold); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--color-muted); }
.muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* ---- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--surface { background: var(--color-surface); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { opacity: 0.85; }
.btn--outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--outline:hover { background: var(--color-ink); color: var(--color-bg); opacity: 1; }

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-height); }
.site-header__logo { height: 32px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 1.75rem; }
.site-nav__list a {
  font-size: 0.82rem; font-weight: var(--fw-medium);
  letter-spacing: 0.04em; text-transform: uppercase;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.site-nav__list a:hover, .site-nav__list a.is-active { border-bottom-color: var(--color-ink); }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn { display: inline-flex; color: var(--color-ink); transition: opacity var(--transition); }
.icon-btn:hover { opacity: 0.6; }
.icon-btn svg { width: 20px; height: 20px; }
.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: var(--fw-medium); }
.lang-switch a { color: var(--color-muted); }
.lang-switch a.is-active { color: var(--color-ink); font-weight: var(--fw-semibold); }
.lang-switch span { color: var(--color-line); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-ink); transition: var(--transition); }

/* ---- Hero ----------------------------------------------------------- */
.hero { padding-block: clamp(4rem, 11vw, 8rem); text-align: center; }
.hero__title { font-size: clamp(3rem, 12vw, 6rem); letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.hero__subtitle { max-width: 38rem; margin: 0 auto 2rem; color: var(--color-muted); font-size: 1.1rem; }

/* ---- Feature grid --------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.feature h3 { margin-bottom: 0.5rem; }

/* ---- Page header (inner pages) ------------------------------------- */
.page-header { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--color-line); }
.page-header h1 { margin-bottom: 0.4rem; }

/* ---- Prose (text-heavy pages) -------------------------------------- */
.prose { max-width: 46rem; }
.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose ul { margin: 0 0 1.25rem 1.25rem; list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Coming-soon placeholder --------------------------------------- */
.coming-soon { text-align: center; padding-block: clamp(4rem, 11vw, 7rem); }
.coming-soon h1 { margin-bottom: 1rem; }
.coming-soon p { max-width: 34rem; margin-inline: auto; color: var(--color-muted); }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-line); margin-top: 4rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-block: 3rem; }
.site-footer__logo { height: 26px; margin-bottom: 0.6rem; }
.site-footer__tagline { color: var(--color-muted); font-size: 0.88rem; }
.site-footer__nav, .site-footer__social { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__nav a, .site-footer__social a { color: var(--color-muted); font-size: 0.88rem; transition: color var(--transition); }
.site-footer__nav a:hover, .site-footer__social a:hover { color: var(--color-ink); }
.site-footer__bottom { padding-block: 1.5rem 2rem; color: var(--color-muted); font-size: 0.78rem; border-top: 1px solid var(--color-line); }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .site-nav { order: 5; flex-basis: 100%; margin-left: 0; }
  .site-nav__list { display: none; flex-direction: column; gap: 0; padding-bottom: 0.5rem; }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list li { border-top: 1px solid var(--color-line); }
  .site-nav__list a { display: block; padding: 0.9rem 0; }
}
