/* Public pages of « Apprends avec BeeBee » (frontend/site): same identity as
 * the app — cream paper, brown ink, honey — light and readable everywhere. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --cream: #fff9ee;
  --paper: #fffdf8;
  --honey: #f7dea0;
  --ink: #594536;
  --muted: #7c6b5b;
  --line: #e9decc;
  --sage: #eaf0e3;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
a {
  color: #73592e;
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid #8b744d;
  outline-offset: 3px;
  border-radius: 6px;
}
.site-skip {
  position: absolute;
  left: -999px;
}
.site-skip:focus {
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: var(--paper);
  z-index: 10;
}
.site-header,
.site-main,
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 88px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.4px;
}
.site-brand span {
  margin-left: -0.35em;
  font-weight: 600;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-weight: 700;
  font-size: 15px;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
}
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #e3bd73;
  text-decoration-thickness: 3px;
}
.site-header nav .site-login {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--honey);
}
.site-main {
  padding-bottom: 48px;
}
.site-main h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 24px 0 18px;
}
.site-main h2 {
  font-size: clamp(23px, 3.2vw, 30px);
  line-height: 1.25;
  margin: 44px 0 14px;
}
.site-main h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 26px 0 6px;
}
.site-main p,
.site-main li {
  max-width: 72ch;
}
.site-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 15px;
}
.site-main th,
.site-main td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.site-main th {
  background: var(--sage);
}
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 32px;
  margin: 12px 0 8px;
}
.site-hero img {
  width: 100%;
  height: auto;
}
.site-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.site-lead {
  font-size: 19px;
}
.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.site-button-soft {
  background: var(--paper);
  border: 1px solid var(--line);
}
.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.site-cards article {
  padding: 6px 22px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.site-faq .site-main h3,
.site-legal .site-main h2 {
  scroll-margin-top: 16px;
}
.site-faq .site-main h2 {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-menu-toggle {
  display: none;
}
@media (max-width: 720px) {
  html {
    font-size: 16px;
  }
  /* « Burger » menu (site.js); without JavaScript the menu stays open. */
  .js .site-menu-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
  }
  .site-menu-toggle span,
  .site-menu-toggle span::before,
  .site-menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    content: "";
    position: relative;
  }
  .site-menu-toggle span::before {
    position: absolute;
    top: -6px;
  }
  .site-menu-toggle span::after {
    position: absolute;
    top: 6px;
  }
  .js .site-header nav {
    display: none;
  }
  .js .site-header.is-open nav {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 8px 0 14px;
    font-size: 17px;
  }
  .js .site-header.is-open nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .js .site-header.is-open nav .site-login {
    margin-top: 10px;
    border-bottom: 0;
    text-align: center;
  }
  .site-hero {
    grid-template-columns: 1fr;
  }
  .site-hero img {
    width: 160px;
    justify-self: center;
  }
  .site-header {
    padding-top: 10px;
  }
}
