/*
 * motamo.fr — shared stylesheet.
 *
 * Colours are taken verbatim from the iOS app's `EditorialPalette`
 * (ios/App/Sources/Features/Onboarding/EditorialDesign.swift) so the web
 * surface matches "the rest of the app": warm cream paper, near-black ink,
 * and a single golden accent. The app uses the system sans (San Francisco),
 * mirrored here with the system font stack.
 */

:root {
  color-scheme: light;

  /* EditorialPalette, converted from sRGB components to hex. */
  --paper: #f9f5ef;       /* paper       rgb(.976 .961 .937) */
  --paper-deep: #f3eee5;  /* paperDeep   rgb(.953 .933 .898) */
  --ink: #141414;         /* ink         rgb(.078 .078 .078) */
  --mute: #6f6960;        /* mute        rgb(.435 .412 .376) */
  --hairline: rgba(20, 20, 20, 0.14);
  --accent: #ffd10d;      /* accent      rgb(1 .82 .05) */

  --measure: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, var(--paper-deep), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- Landing */

.is-landing {
  display: flex;
  flex-direction: column;
}

.coming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

/* The brand wordmark is the app's actual logo asset (the bold serif "Motamo"
 * shared with iOS and the CMS), kept modest in size so the headline stays the
 * focal point. Intrinsic ratio 840×186; height is driven by CSS, width auto. */
.wordmark {
  display: block;
  height: clamp(26px, 6vw, 34px);
  width: auto;
  margin: 0 0 30px;
}

.coming__title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.coming__rule {
  width: 44px;
  height: 3px;
  margin: 28px 0 0;
  border: 0;
  background: var(--accent);
  border-radius: 3px;
}

.coming__sub {
  margin: 24px 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--mute);
}

/* ------------------------------------------------------------ Legal pages */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.doc__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--mute);
  text-decoration-color: var(--hairline);
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.doc__meta {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--mute);
}

.doc__lead {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--mute);
}

.doc hr.doc__divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.doc section {
  margin-top: 32px;
}

.doc h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.doc p,
.doc li {
  font-size: 1rem;
  line-height: 1.72;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc .identity {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.doc .identity li {
  margin-bottom: 4px;
}

.doc .identity li:last-child {
  margin-bottom: 0;
}

.doc .placeholder {
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(255, 209, 13, 0.28);
  font-style: normal;
}

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

.site-footer {
  padding: 28px 24px 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mute);
}

.doc .site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
}

.legal-links a {
  color: var(--mute);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.legal-links span {
  color: var(--hairline);
}

.copyright {
  margin: 12px 0 0;
  color: var(--mute);
}

/* --------------------------------------------------------- Preferences */

@media (max-width: 640px) {
  .doc {
    padding: 40px 20px 32px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .doc__back,
  .site-footer {
    display: none;
  }
}
