/* freelance-flutter.fr: one stylesheet shared by the Dart pages and the
   Markdown blog. Tokens first, then base, layout and components. */

/* ---------- Fonts (latin subset, self-hosted) ---------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Flutter */
  --flutter: #0175c2;
  /* Flutter blue dark enough for small text on cream (5.2:1); --flutter
     is 4.3:1 there, below WCAG AA. */
  --flutter-text: #0168ad;
  --flutter-light: #13b9fd;
  --navy: #02396b;
  --night: #0b1f33;

  /* Sky */
  --sky-1: #d3ecfb;
  --sky-2: #eef7fd;
  --sky-3: #a9d8f5;

  /* Ink, yellow and backgrounds */
  --ink: #0e1128;
  --ink-soft: #3c4262;
  --yellow: #f6b93b;
  --cream: #f7f1e3;
  /* Form field outline: 3.6:1 on white, the 3:1 non-text minimum. */
  --line-strong: #8c8778;
  --white: #ffffff;
  --line: #dfdbcc;

  /* Shapes */
  --radius-card: 22px;
  --radius-btn: 10px;
  --shadow-card: 0 30px 60px -30px rgb(0 0 0 / 0.35);

  /* Type */
  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: 24px;
  --header-height: 72px;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--flutter-text);
}

:focus-visible {
  outline: 3px solid var(--flutter);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.h1 {
  font-size: clamp(2.75rem, 1.5rem + 5vw, 5.25rem);
  line-height: 1;
}

.h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}

.h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 41rem;
  margin: 1.75rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 0.75rem;
  /* Flutter blue is 4.3:1 on cream, below AA for this size. */
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Highlighted words in titles */
.hl {
  display: inline-block;
  padding: 0 0.15em;
  border-radius: 14px;
  background: var(--flutter-light);
  transform: rotate(-2deg);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.5rem;
}

.page-intro {
  padding-top: 72px;
  padding-bottom: 96px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--white);
  transform: none;
}

main:focus {
  outline: none;
}

/* ---------- Buttons ---------- */

/* A 3 px pixel ledge under each button, in the border colour for white
   ones. Pressing pushes the button 2 px down onto a 1 px ledge, only while
   the pointer stays on it (:active alone sticks until the mouse is
   released, even outside). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 80ms,
    box-shadow 80ms,
    background-color 0.12s;
}

.btn:not(:disabled):active:hover {
  transform: translateY(2px);
}

.btn--primary {
  background: var(--flutter);
  color: var(--white);
  box-shadow:
    0 3px 0 #01548b,
    inset 0 1px 0 rgb(255 255 255 / 18%);
}

.btn--primary:hover {
  background: #0168ad;
  color: var(--white);
}

.btn--primary:not(:disabled):active:hover {
  box-shadow: 0 1px 0 #01548b;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 3px 0 #c98f1a;
}

.btn--yellow:hover {
  background: #ffc54f;
  color: var(--ink);
}

.btn--yellow:not(:disabled):active:hover {
  box-shadow: 0 1px 0 #c98f1a;
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 3px 0 var(--line);
}

.btn--secondary:hover {
  background: #fbfaf6;
  color: var(--ink);
}

.btn--secondary:not(:disabled):active:hover {
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 0 var(--line);
}

.btn--sky {
  background: var(--flutter-light);
  color: var(--ink);
  box-shadow: 0 3px 0 #0a8fc7;
}

.btn--sky:hover {
  background: #4fcbfd;
  color: var(--ink);
}

.btn--sky:not(:disabled):active:hover {
  box-shadow: 0 1px 0 #0a8fc7;
}

.btn--small {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ---------- Cards and separators ---------- */

.card {
  padding: 34px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.separator {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--line);
}

/* Speech bubbles: the only brutalist touch */
.bubble {
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
}

/* ---------- Link lists ---------- */

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 2rem;
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(247 241 227 / 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo__accent {
  color: var(--flutter);
}

.site-nav {
  margin-left: auto;
}

.site-nav .link-list {
  display: flex;
  gap: 28px;
  font-weight: 700;
}

.site-nav a[aria-current='page'],
.mobile-menu a[aria-current='page'] {
  color: var(--flutter-text);
}

.site-header__cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: currentColor;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 0;
  content: '';
}

.menu-toggle__bars::before {
  top: -7px;
}

.menu-toggle__bars::after {
  top: 7px;
}

/* Native popover menu, works without JavaScript */
.mobile-menu {
  inset: var(--header-height) 0 auto auto;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  margin: 0 var(--gutter) 0 0;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.mobile-menu .link-list a {
  display: block;
  padding: 12px 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.mobile-menu li + li {
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ---------- Sky hero ---------- */

.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--sky-1) 0%, var(--sky-2) 60%, #e3f1fb 100%);
}

.hero {
  padding-top: 72px;
  padding-bottom: 120px;
  text-align: center;
}

.hero .lead {
  margin-right: auto;
  margin-left: auto;
}

.hero .lead strong {
  color: var(--ink);
}

.lead.lead--next {
  margin-top: 1rem;
}

.hero .actions {
  justify-content: center;
}

/* Decorative layer of the home sky: rays, clouds, sun and phones */
.sky__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky__cloud,
.sky__sun {
  position: absolute;
  shape-rendering: crispEdges;
}

.sky__cloud {
  fill: var(--white);
  opacity: 0.95;
  animation: drift 9s ease-in-out infinite alternate;
}

.sky__cloud--1 {
  top: 56px;
  left: 6%;
  width: 150px;
}

.sky__cloud--3 {
  top: 40px;
  right: 16%;
  width: 170px;
  animation-delay: -6s;
}

.sky__sun {
  top: 28px;
  right: 6%;
  width: 64px;
  fill: #f6d77a;
  animation: pulse 4s ease-in-out infinite;
}


.sky__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--white);
  opacity: 0.3;
  shape-rendering: crispEdges;
  animation: shimmer 7s ease-in-out infinite;
}

/* Inner pages: sky banner with a plain ground strip */
/* The sky ends on a clear sky blue, so the pixel edge into the cream page
   stays visible. */
.page-hero {
  background: linear-gradient(var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-1) 100%);
}

.page-hero .hero {
  padding-bottom: 96px;
}

.sky--home .hero {
  position: relative;
  padding-bottom: 56px;
}

/* Pixel art: phones in the sky, then the world under the home hero */
.pixel {
  position: absolute;
  shape-rendering: crispEdges;
}

.pixel g {
  transform-box: fill-box;
}

.sky__phone {
  width: 40px;
  animation: float 5s ease-in-out infinite;
}

.sky__phone--1 {
  top: 190px;
  left: 4%;
  transform: rotate(-8deg);
}

.sky__phone--2 {
  top: 220px;
  right: 4%;
  width: 34px;
  animation-delay: -2.5s;
}

.sky__phone-notification {
  animation: blink 1.6s steps(1) infinite;
}

/* The world: stepped hills, then a ground where Dash and the robot chat */
.world {
  position: relative;
}

.world__hills {
  position: relative;
  overflow: hidden;
  height: 64px;
}

/* One tile wider than the band, so that sliding by one tile (128 px) loops
   seamlessly; steps() keeps 8 px jumps, like the pixel art. */
.world__wave {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: calc(100% + 128px);
  max-width: none;
  height: 100%;
  animation: wave 16s steps(16) infinite;
}

.world__wave--front {
  animation-duration: 10s;
  animation-direction: reverse;
}

@keyframes wave {
  to {
    transform: translateX(-128px);
  }
}

.world__ground {
  position: relative;
  height: 230px;
  background: #efe6cf;
}

.world__speckles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world__actor {
  position: absolute;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  translate: -50% 0;
}

.world__actor--dash {
  left: 42%;
}

.world__actor--robot {
  left: 60%;
}

.world__actor .pixel {
  position: static;
}

.world__dash {
  width: 112px;
  animation: bob 1.4s ease-in-out infinite;
}

.world__dash .dash-wing {
  transform-origin: 100% 0;
  animation: flap 0.35s ease-in-out infinite alternate;
}

.world__robot {
  width: 72px;
  animation: hop 2.4s ease-in-out infinite;
}

.sky__robot-light {
  animation: blink 1.2s steps(1) infinite;
}

.sky__robot-eyes {
  transform-origin: 50% 50%;
  animation: wink 4s ease-in-out infinite;
}

.world__bubble {
  margin: 0;
  white-space: nowrap;
  animation:
    popin 0.6s ease-out 0.9s both,
    float 3s ease-in-out 1.5s infinite;
}

.world__bubble--robot {
  animation-delay: 1.3s, 2.4s;
}

/* Small Dash in the logo and the secondary hero button */
.logo__dash,
.btn__dash {
  position: static;
  flex: none;
}

/* 8-bit arrows, in the colour of the text */
.pixel.icon {
  position: static;
  flex: none;
  width: 14px;
  transition: translate 0.15s steps(2);
}

.btn:hover .icon--next {
  translate: 2px 0;
}

.post__back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.post__back:hover .icon--back {
  translate: -2px 0;
}

.logo__dash {
  width: 30px;
}

/* Dash flutters when the logo is hovered or focused */
.logo:hover .logo__dash,
.logo:focus-visible .logo__dash {
  animation: logo-hop 0.5s ease-in-out infinite;
}

.logo .dash-wing {
  transform-origin: 100% 0;
}

.logo:hover .dash-wing,
.logo:focus-visible .dash-wing {
  animation: flap 0.18s ease-in-out infinite alternate;
}

.btn__dash {
  width: 24px;
}

@media (max-width: 860px) {
  .sky__phone {
    display: none;
  }

  .world__ground {
    height: 200px;
  }

  .world__dash {
    width: 76px;
  }

  .world__actor--dash {
    left: 30%;
  }

  .world__actor--dash .world__bubble {
    display: none;
  }

  .world__actor--robot {
    right: var(--gutter);
    left: auto;
    align-items: flex-end;
    translate: none;
  }

  .world__robot {
    width: 48px;
  }

  .sky__sun {
    width: 48px;
  }
}

@keyframes shimmer {
  50% {
    opacity: 0.18;
  }
}

@keyframes logo-hop {
  50% {
    transform: translateY(-3px) rotate(-6deg);
  }
}

@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}

@keyframes flap {
  to {
    transform: scaleY(0.3);
  }
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes hop {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-8px);
  }

  80% {
    transform: translateY(0);
  }
}

@keyframes wink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }

  96% {
    transform: scaleY(0.1);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
  }
}

@keyframes popin {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  70% {
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Pixel edges between sections ----------
   The colour below rises into the colour above through a dithered row of
   8 px squares, drawn by masking a plain colour with dither.svg. */

.page-hero::after,
.world__ground::after,
.dark::before,
.dark::after,
.site-footer::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 32px;
  background: var(--edge-color);
  content: '';
  mask: url('/images/dither.svg') 0 0 / 64px 32px repeat-x;
  pointer-events: none;
}


/* -1px covers the seam a fractional section height can leave. */
/* Page heroes: the sky goes straight into the cream page. */
.page-hero::after,
.world__ground::after,
.dark::after {
  bottom: -1px;
  --edge-color: var(--cream);
}

/* On the home page, the key figures band follows the ground. */
.world__ground::after {
  --edge-color: var(--flutter-light);
}

.dark,
.site-footer {
  position: relative;
}

.dark::before,
.site-footer::before {
  bottom: calc(100% - 1px);
  --edge-color: var(--night);
}

/* ---------- Sections ---------- */

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--last {
  padding-top: 0;
}

.section > .lead {
  margin-bottom: 48px;
}

/* Fade in on scroll, CSS only: content stays visible without support */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-range: entry 0% cover 30%;
      animation-timeline: view();
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Key figures ---------- */

/* A full-width Flutter blue band, between the ground and the dark section;
   ink text stays at 8:1 on it. */
.figures-band {
  /* The dark section's pixel edge covers the last 32 px: 88 px of clear
     blue on each side. */
  padding: 88px 0 120px;
  background: var(--flutter-light);
  color: var(--ink);
}

.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 0 auto;
  list-style: none;
}

.key-figures p {
  margin: 0;
}

.key-figures__label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

/* A pixel square before each label */
.key-figures__label::before {
  width: 10px;
  height: 10px;
  background: var(--navy);
  content: '';
}

.key-figures__caption {
  font-size: 1rem;
}

.key-figures__value {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.key-figures__value--long {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  letter-spacing: -0.03em;
}

/* ---------- Dark project section ---------- */

.dark {
  background-color: var(--night);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--white);
}

.dark .lead {
  margin-bottom: 40px;
  color: #b9c3cf;
}

.dark__accent {
  color: var(--flutter-light);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.features {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.feature__text {
  margin: 6px 0 0;
  color: #b9c3cf;
}

/* Square tiles with a pixel shape in the middle */
.tile {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.tile::before {
  width: 18px;
  height: 18px;
  background: var(--ink);
  content: '';
}

.tile--square {
  background: var(--yellow);
}

.tile--round {
  background: var(--flutter-light);
}

.tile--round::before {
  border-radius: 50%;
}

.tile--diamond {
  background: #ee7f4b;
}

.tile--diamond::before {
  transform: rotate(45deg);
}

/* ---------- Project steps card ---------- */

.project-card {
  color: var(--ink);
}

.project-card p {
  margin: 0;
}

.project-card__bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.project-card__segment {
  height: 12px;
  border-radius: 6px;
  background: #e6e1d3;
  transition: background-color 0.2s ease;
}

.project-card__segment--done {
  background: var(--yellow);
}

.project-card__status {
  margin-top: 14px !important;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Hidden until hydration, but its space stays reserved: no layout shift */
.project-card__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-card__controls[hidden] {
  display: flex;
  visibility: hidden;
}

.project-card__eyebrow {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}

.project-card__title {
  margin-top: 10px !important;
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-card__steps {
  margin: 20px 0 0;
  padding-left: 1.4em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.project-card__steps [aria-current='step'] {
  color: var(--ink);
  font-weight: 700;
}

.project-card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Offers and card grids ---------- */

.offers,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.offer-card {
  position: relative;
  transition: transform 0.15s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
}

.offer-card__number {
  margin: 0;
  color: var(--flutter);
  font-weight: 700;
}

.offer-card__title {
  margin: 12px 0;
}

.offer-card__title a {
  text-decoration: none;
}

/* The title link covers the whole card */
.offer-card__title a::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
}

.offer-card:has(a:focus-visible) {
  outline: 3px solid var(--flutter);
  outline-offset: 3px;
}

.offer-card__title a:focus-visible {
  outline: none;
}

.offer-card__text {
  margin: 0;
  color: var(--ink-soft);
}

/* Card lists */
.grid {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.grid .h3 {
  margin-bottom: 12px;
}

.grid p {
  margin: 0;
  color: var(--ink-soft);
}

/* Detailed offers of the services page */
.offer {
  display: flex;
  flex-direction: column;
}

.offer__number {
  margin: 0;
  color: var(--flutter);
  font-weight: 700;
}

.offer__title {
  margin: 12px 0 14px;
  font-size: 2rem;
}

.offer__text {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.offer__points {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  list-style: none;
}

/* FAQ: native accordion, no JavaScript */
.faq {
  max-width: 48rem;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.faq__item p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

/* Numbered programme of the training page */
.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding-left: 3.25rem;
  font-weight: 700;
}

.steps li::marker {
  color: var(--flutter);
  font-family: var(--font-heading);
}

.steps p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-weight: 400;
}

.steps__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ---------- Long-form text ---------- */

.prose {
  max-width: 48rem;
}

.prose h1 {
  margin-bottom: 40px;
}

.prose h2 {
  margin: 48px 0 16px;
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

/* Markdown elements of the blog posts */
.prose ol,
.prose pre,
.prose blockquote,
.prose figure {
  margin: 0 0 1.5rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose a {
  color: var(--flutter-text);
}

.prose code,
.prose kbd {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.prose code {
  background: var(--sky-2);
}

.prose kbd {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

/* Code blocks: no highlighting, horizontal scroll on long lines */
.prose pre {
  overflow-x: auto;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--night);
  color: #e6e9f7;
  line-height: 1.5;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: 0.8125rem;
}

.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--flutter);
  color: var(--ink-soft);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure img {
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.prose figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
}

/* ---------- Blog ---------- */

.post {
  max-width: calc(48rem + 2 * var(--gutter));
}

.post__back {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.post__header {
  margin: 24px 0 32px;
}

.post__header .h1 {
  margin-bottom: 16px;
}

.post__date {
  margin: 0;
  color: var(--ink-soft);
}

/* Warning on old posts */
.notice {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-btn);
  background: #fdf3dc;
}

.author-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 64px;
}

.author-card > div {
  flex: 1 1 280px;
}

.author-card p {
  margin: 0 0 8px;
}

.author-card .actions {
  margin-top: 20px;
}

.author-card__avatar {
  image-rendering: pixelated;
}

.author-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease;
}

.post-card:hover {
  transform: translateY(-3px);
}

/* Covers share one ratio, so they need no width or height attributes */
.post-card__image {
  width: 100%;
  aspect-ratio: 768 / 314;
  border-radius: 12px;
  object-fit: cover;
}

.grid .post-card__title {
  margin: 8px 0 0;
}

.post-card__title a {
  text-decoration: none;
}

/* The title link covers the whole card */
.post-card__title a::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
}

.post-card:has(a:focus-visible) {
  outline: 3px solid var(--flutter);
  outline-offset: 3px;
}

.post-card__title a:focus-visible {
  outline: none;
}

.grid .post-card__date {
  font-size: 0.9375rem;
}

/* ---------- Mobile Makers banner ---------- */

.event-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-card);
  /* Mobile Makers' graphite, red and cyan, in our card style */
  background: #282828;
  box-shadow: var(--shadow-card);
  color: var(--white);
}

.event-banner :focus-visible {
  outline-color: #20b8e8;
}

.event-banner .btn {
  justify-self: end;
}

.event-banner__eyebrow {
  color: #20b8e8;
}

.event-banner__hl {
  background: #e8402c;
}

.event-banner__fold {
  right: 40px;
  bottom: 0;
  width: 128px;
}

@media (max-width: 480px) {
  .event-banner__fold {
    display: none;
  }
}

.btn--event {
  position: relative;
  z-index: 1;
  background: #b83020;
  color: var(--white);
  box-shadow:
    0 3px 0 #7c1f14,
    inset 0 1px 0 rgb(255 255 255 / 18%);
}

.btn--event:hover {
  background: #c93826;
  color: var(--white);
}

.btn--event:not(:disabled):active:hover {
  box-shadow: 0 1px 0 #7c1f14;
}

.event-banner__title {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
}

.event-banner__text {
  margin: 20px 0 0;
  color: #e6e9f7;
  font-size: 1.1875rem;
}

.event-banner__text + .event-banner__text {
  margin-top: 12px;
}

.event-banner__text strong {
  color: #fff;
}

@media (max-width: 860px) {
  .event-banner .btn {
    justify-self: start;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
}

.contact__details dl {
  margin: 24px 0 0;
}

.contact__details dt {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact__details dd {
  margin: 4px 0 20px;
  font-size: 1.125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e3f5e7;
  color: #1f6b33;
  font-size: 0.9375rem;
  font-weight: 700;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid='true'] {
  border-color: #b3261e;
}

.field__error {
  margin: 0;
  color: #b3261e;
  font-size: 0.9375rem;
}

/* Honeypot: off-screen rather than display: none, which bots skip. */
.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.alert {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-btn);
  background: #fbeceb;
}

.alert:empty {
  display: none;
}

/* Room for the Turnstile widget (65 px): no layout shift when it loads. */
.contact__captcha {
  min-height: 65px;
  margin-top: 20px;
}

.contact__note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__form {
    padding: 24px;
  }
}

/* Below 300 px of content, Turnstile renders compact: 150 × 140. */
@media (max-width: 395px) {
  .contact__captcha {
    min-height: 140px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  background: var(--night);
  color: #d5dbe3;
  font-size: 0.9375rem;
}

.site-footer a:hover {
  color: var(--flutter-light);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer__name {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
}

.site-footer .link-list li + li {
  margin-top: 0.5rem;
}

.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #a9b3c1;
  font-size: 0.875rem;
}

.site-footer__legal > :last-child {
  justify-self: end;
}

@media (max-width: 640px) {
  .site-footer__legal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__legal > :last-child {
    justify-self: center;
  }
}

/* ---------- Motion ---------- */

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