/* Blendies — "peinture fraîche colorée", matte (docs/brand/brand.md). No gloss, no gradient sheen. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/BricolageGrotesque-ExtraBold.woff") format("woff");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DMSans-Regular.woff") format("woff");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DMSans-Bold.woff") format("woff");
}

:root {
  --sky-light: #8fd6ff;
  --sky-deep: #2f7fea;
  --paint-orange: #ff5b1f;
  --paint-magenta: #f0247e;
  --paint-yellow: #ffc21a;
  --paint-cobalt: #2f4bff;
  --paper: #fffdf8;
  --ink: #16112a;
  --night: #0a1e5a;
  --shadow: rgb(10 30 90 / 40%);

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #4a4560;
  --panel: #ffffff;
  --panel-border: rgb(22 17 42 / 12%);
  --link: var(--paint-cobalt);
  --focus: var(--paint-cobalt);

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: var(--paper);
    --muted: #c9c4dc;
    --panel: #221b3d;
    --panel-border: rgb(255 253 248 / 14%);
    --link: var(--paint-yellow);
    --focus: var(--paint-yellow);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
}

main:focus {
  outline: none;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem var(--gutter);
}

.site-header__home {
  text-decoration: none;
  margin-right: auto;
}

.site-nav ul,
.lang-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--paint-orange);
}

.lang-picker {
  position: relative;
}

.lang-picker summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 2px solid var(--panel-border);
  border-radius: 999px;
  font-weight: 700;
}

.lang-picker summary::-webkit-details-marker {
  display: none;
}

.lang-picker summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}

.lang-picker ul {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: 13rem;
  margin-top: 0.4rem;
  padding: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
}

.lang-picker a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.lang-picker a:hover,
.lang-picker a[aria-current="true"] {
  background: rgb(255 91 31 / 16%);
}

/* Wordmark: ink letters on a matte orange paint banner with drips. */

.wordmark {
  position: relative;
  display: inline-block;
  padding: 0.18em 0.55em 0.42em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 1;
  color: var(--ink);
  isolation: isolate;
}

.wordmark--compact {
  font-size: 1.7rem;
}

.wordmark__stroke {
  position: absolute;
  inset: 0 -0.1em -0.32em;
  width: calc(100% + 0.2em);
  height: calc(100% + 0.32em);
  z-index: -1;
  fill: var(--paint-orange);
}

.wordmark__text {
  white-space: nowrap;
}

/* Hero: standard sky background (75° gradient + halo top left). */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  margin: 0.5rem 0 3rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) * 2);
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgb(189 232 255 / 50%), rgb(189 232 255 / 0%) 60%),
    linear-gradient(75deg, #7fd0ff, var(--sky-deep));
  box-shadow: 0 10px 30px var(--shadow);
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.hero__subtitle {
  margin: 0.5rem 0 1rem;
  font-weight: 700;
  font-size: 1.35rem;
}

.hero__pitch {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
}

.hero__soon {
  font-weight: 700;
}

.hero__art img {
  display: block;
  width: 100%;
  border-radius: 22%;
  box-shadow: 0 8px 22px var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button--primary {
  background: var(--paint-orange);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.button--email {
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
}

.button--primary:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--ink);
}

.button--primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Sections */

.section-title {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0 0.3em;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(transparent 58%, var(--paint-yellow) 58%, var(--paint-yellow) 92%, transparent 92%);
}

@media (prefers-color-scheme: dark) {
  .section-title {
    background: linear-gradient(transparent 58%, rgb(255 91 31 / 70%) 58%, rgb(255 91 31 / 70%) 92%, transparent 92%);
  }
}

.features,
.promise {
  margin: 0 0 3rem;
}

.features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 10px solid var(--paint-orange);
  border-radius: var(--radius);
}

.card--2 {
  border-top-color: var(--paint-magenta);
}

.card--3 {
  border-top-color: var(--paint-yellow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
}

.promise p {
  max-width: var(--measure);
}

/* Long-form pages */

.prose {
  max-width: var(--measure);
  margin: 1rem auto 0;
}

.prose h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0.5rem 0 0.5rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.5rem;
}

.prose__meta {
  color: var(--muted);
  margin-top: 0;
}

.prose__lead {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-left: 8px solid var(--paint-orange);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact-card {
  padding: 0.25rem 1.5rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.faq {
  border-bottom: 1px solid var(--panel-border);
}

.faq summary {
  cursor: pointer;
  padding: 0.9rem 0;
  min-height: 44px;
  font-weight: 700;
}

.faq p {
  margin: 0 0 1rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem var(--gutter) 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 6px solid var(--paint-orange);
}

.site-footer a {
  color: inherit;
}

.site-footer p {
  margin: 0.25rem auto;
  max-width: var(--measure);
}

.site-footer__legal {
  font-size: 0.85rem;
}

/* Small screens */

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 18rem;
  }

  .site-header {
    gap: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button--primary:hover,
  .button--primary:active {
    transform: none;
  }
}
