/*
 * lucenti.app — one stylesheet for every page.
 *
 * The site speaks the app's onboarding language (style D): a white page, the
 * same ink and greys, Manrope for everything, Instrument Serif italic for the
 * one phrase of the home title, soft spots of colour behind the words. Its own
 * mark is the orbit motif that replaced the mountains (owner, 2026-10-09):
 * thin rings and dots behind the app's icon, one dot travelling round.
 *
 * Fonts are served from this site, not from a font service, so a visit sends
 * nothing to anybody else.
 */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0f1218;
  --muted: #646b79;
  --soft: #4a505c;
  --line: #e3e6ec;
  --plate: #f6f7fa;
  --tile: #16171b;
  --check: #2e9d5b;
  --sky: #dceeff;
  --lavender: #eee9ff;
  --mint: #e3f7ec;
  --focus: #3a8fd6;

  --measure: 40rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --radius-plate: 18px;
}

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

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

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  left: var(--gutter);
}

/* The soft spots of colour the onboarding pages are drawn on: across the
   whole window, behind everything, never cut to the column's width. */
.spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.spot--sky {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  right: -6rem;
  background: var(--sky);
  opacity: 0.85;
}

.spot--lavender {
  width: 20rem;
  height: 20rem;
  top: 24rem;
  left: -9rem;
  background: var(--lavender);
  opacity: 0.6;
}

.spot--mint {
  width: 18rem;
  height: 18rem;
  top: 30rem;
  right: -8rem;
  background: var(--mint);
  opacity: 0.55;
}

.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1;
}

/* ---------- Home ---------- */

/* Wider than a document: the words and the mark side by side. The footer is
   named twice so it wins over the plain .foot rule further down. */
.page--home,
.foot.foot--home {
  max-width: calc(64rem + 2 * var(--gutter));
}

.hero__text {
  max-width: 36rem;
}

.hero {
  position: relative;
  padding: clamp(3.5rem, 12vw, 6.5rem) 0 2.5rem;
}

.mark {
  position: relative;
  width: 6rem;
  height: 6rem;
  margin-bottom: 2.25rem;
}

.mark__icon {
  position: relative;
  display: block;
  width: 6rem;
  height: 6rem;
  border-radius: 22.5%;
  box-shadow: 0 18px 40px rgba(15, 18, 24, 0.2);
}

/* The orbits: centred on the icon, larger than it, under it. */
.orbits {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26rem;
  height: 26rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.orbits__ring {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.09;
  stroke-width: 1;
}

.orbits__dot {
  fill: var(--ink);
  fill-opacity: 0.18;
}

.orbits__traveller {
  transform-origin: 208px 208px;
  animation: orbit 48s linear infinite;
}

.orbits__traveller circle {
  fill: var(--check);
  fill-opacity: 0.7;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbits__traveller {
    animation: none;
  }
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  line-height: 1.6;
}

.perks {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.perks svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -0.05rem;
}

.status {
  margin: 2.75rem 0 0;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-plate);
  background: var(--plate);
  font-weight: 600;
  line-height: 1.5;
}

.status span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Documents: privacy, terms, support, deletion ---------- */

.doc-head {
  padding: clamp(1.5rem, 5vw, 2.25rem) 0 0;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.home-link img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22.5%;
}

.doc {
  padding: clamp(2.5rem, 8vw, 4rem) 0 3rem;
}

.doc h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.125rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc .intro {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.doc h2 {
  margin: 2.75rem 0 0;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 1.75rem 0 0;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0.75rem 0 0;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc strong {
  font-weight: 700;
}

/* "In short": the one plate a document starts with. */
.summary {
  margin: 2rem 0 0;
  padding: 1.25rem 1.375rem;
  border-radius: var(--radius-plate);
  background: var(--plate);
}

.summary h2 {
  margin: 0;
  font-size: 1.0625rem;
}

.summary ul {
  margin-top: 0.625rem;
}

/* Questions on the support page: each a heading with its answer. */
.faq h2 {
  margin-top: 2.25rem;
  font-size: 1.1875rem;
}

.path {
  font-weight: 700;
}

.mail {
  font-weight: 700;
}

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

.foot {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
}

.foot__rule {
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.foot nav a {
  text-decoration: none;
  color: var(--soft);
}

.foot nav a:hover,
.foot nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

.foot p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Narrow: the mark above the words, with only the inner orbits, so no ring
   crosses the title. */
@media (max-width: 55.99rem) {
  .mark {
    margin-bottom: 3rem;
  }

  .orbits {
    width: 18rem;
    height: 18rem;
  }

  .orbits__outer {
    display: none;
  }
}

/* Wide: the words on the left, the mark and its orbits on the right. */
@media (min-width: 56rem) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 36rem) 1fr;
    column-gap: 2rem;
    align-items: center;
  }

  .hero__text {
    grid-column: 1;
    grid-row: 1;
  }

  .mark {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 7.5rem;
    height: 7.5rem;
    margin: 0;
  }

  .mark__icon {
    width: 7.5rem;
    height: 7.5rem;
  }

  .orbits {
    width: 30rem;
    height: 30rem;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }
}
