/* Lenio marketing site. Same hand that drew the app: tokens and rules from
   docs/design-language.md. No colours beyond the palette, one filled spot
   action on the page, press physics on anything raised. */

:root {
  --colour-paper: #fbf8f2;
  --colour-paper-dim: #f4efe4;
  --colour-ink: #1c1a17;
  --colour-ink-soft: #46423b;
  --colour-spot: #e2532f;
  --colour-spot-wash: rgba(226, 83, 47, 0.08);
  --colour-rule: rgba(28, 26, 23, 0.28);
  --colour-rule-faint: rgba(28, 26, 23, 0.18);
  --colour-door: #fadfba;
  --colour-quiet-door: #e9eee1;

  --font-body: 'Mali', 'Trebuchet MS', sans-serif;
  --font-hand: 'Shadows Into Light Two', 'Comic Sans MS', cursive;

  --radius-panel: 22px 6px 24px 8px / 8px 24px 6px 22px;
  --radius-panel-alt: 8px 24px 6px 22px / 22px 6px 24px 8px;
  --radius-field: 10px 4px 12px 5px / 5px 12px 4px 10px;

  --shadow-raised: 2px 3px 0 rgba(28, 26, 23, 0.1);
  --shadow-raised-hover: 3px 4px 0 rgba(28, 26, 23, 0.12);
  --touch-target: 44px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--colour-ink);
  background-color: var(--colour-paper);
  background-image: radial-gradient(rgba(28, 26, 23, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- masthead ---------- */

.masthead { text-align: center; margin-bottom: 2.5rem; }

.wordmark {
  font-family: var(--font-hand);
  font-size: 2.25rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}
.wordmark .spot { color: var(--colour-spot); }

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

.hero { text-align: center; margin: 0 auto 3.25rem; max-width: 36rem; }

.hero h1 {
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.0625rem;
  color: var(--colour-ink);
  margin: 0 0 1.75rem;
}

.hero .aside {
  font-style: italic;
  color: var(--colour-ink-soft);
  font-size: 0.8125rem;
  margin: 0.9rem 0 0;
}

/* the one filled spot action on the page */
.button--primary {
  display: inline-block;
  min-height: var(--touch-target);
  padding: 0.7rem 2.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--colour-paper);
  background: var(--colour-spot);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-raised);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised-hover);
}
.button--primary:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ---------- the evening, in three panels (signature) ---------- */

.vignette {
  margin: 0 auto 3.5rem;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vignette-caption {
  text-align: center;
  font-style: italic;
  color: var(--colour-ink-soft);
  font-size: 0.8125rem;
  margin: 0 0 0.25rem;
}

.bubble {
  background: var(--colour-paper);
  border: 2px solid var(--colour-ink);
  box-shadow: var(--shadow-raised);
  padding: 0.9rem 1.1rem;
  max-width: 88%;
}
.bubble .speaker {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.15rem;
}
.bubble p { margin: 0; }

.bubble--parent {
  align-self: flex-end;
  border-radius: var(--radius-panel-alt);
  background: var(--colour-paper-dim);
  transform: rotate(0.4deg);
}
.bubble--lenio {
  align-self: flex-start;
  border-radius: var(--radius-panel);
  transform: rotate(-0.3deg);
}

.banked {
  margin-top: 0.4rem;
  align-self: center;
  width: 100%;
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-field);
  background: var(--colour-spot-wash);
  box-shadow: var(--shadow-raised);
  padding: 0.75rem 1rem;
  transform: rotate(-0.2deg);
}
.banked .label {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--colour-ink-soft);
  display: block;
  margin-bottom: 0.2rem;
}
.banked p { margin: 0; font-weight: 600; }

/* ---------- three things / doors ---------- */

.strip-title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 1.2rem;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 3.5rem;
}
@media (max-width: 700px) {
  .three { grid-template-columns: 1fr; }
}

.door {
  border: 2px solid var(--colour-ink);
  box-shadow: var(--shadow-raised);
  padding: 1.25rem 1.15rem 1.35rem;
  position: relative;
}
.door:nth-child(1) { background: var(--colour-door); border-radius: var(--radius-panel); }
.door:nth-child(2) { background: var(--colour-paper-dim); border-radius: var(--radius-panel-alt); transform: rotate(0.3deg); }
.door:nth-child(3) { background: var(--colour-quiet-door); border-radius: var(--radius-panel); transform: rotate(-0.3deg); }

.door h2 {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}
.door p { margin: 0; font-size: 0.875rem; }
.door .corner {
  display: block;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--colour-ink-soft);
  margin-top: 0.7rem;
}

/* ---------- plain panels ---------- */

.panel {
  background: var(--colour-paper);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-raised);
  padding: 1.75rem 1.5rem 1.9rem;
  margin: 0 0 1.25rem;
}
.panel--alt { border-radius: var(--radius-panel-alt); }

.panel h2 {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
}
.panel p { margin: 0 0 0.8rem; }
.panel p:last-child { margin-bottom: 0; }

.section-gap { margin-bottom: 3.5rem; }

/* ---------- articles ---------- */

.article {
  max-width: 40rem;
  margin: 0 auto;
}

.article .crumb {
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--colour-ink-soft);
  margin: 0 0 1.6rem;
}
.article .crumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article .crumb a:hover,
.article .crumb a:focus-visible { color: var(--colour-spot); }

.article h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.article .standfirst {
  font-size: 1.0625rem;
  margin: 0 0 2rem;
}

.article .dateline {
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--colour-ink-soft);
  margin: 0 0 1.4rem;
}

.article h2 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2.2rem 0 0.6rem;
}

.article p { margin: 0 0 1rem; }
.article ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.article li { margin-bottom: 0.4rem; }

.article .pin {
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-field);
  background: var(--colour-paper-dim);
  box-shadow: var(--shadow-raised);
  padding: 0.85rem 1.05rem;
  margin: 1.4rem 0;
  transform: rotate(-0.25deg);
}
.pin .label {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--colour-ink-soft);
  display: block;
  margin-bottom: 0.2rem;
}
.pin p { margin: 0; font-weight: 600; }

.faq { margin: 1rem 0 0; }
.faq h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.2rem 0 0.3rem;
}
.faq p { margin: 0 0 0.6rem; }

.invite {
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-panel);
  background: var(--colour-door);
  box-shadow: var(--shadow-raised);
  padding: 1.5rem 1.4rem 1.6rem;
  margin: 2.75rem 0 0;
  text-align: center;
}
.invite h2 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}
.invite p { margin: 0 0 1.1rem; }

/* ---------- pillar hubs ---------- */

.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.hub-list a {
  display: block;
  background: var(--colour-paper);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-raised);
  padding: 0.95rem 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.hub-list a:hover,
.hub-list a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised-hover);
}
.hub-list a:active { transform: translateY(2px); box-shadow: none; }
.hub-list .hub-title {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  display: block;
}
.hub-list .hub-line {
  font-size: 0.8125rem;
  color: var(--colour-ink-soft);
  display: block;
  margin-top: 0.15rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--colour-rule-faint);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--colour-ink-soft);
}
footer p { margin: 0 0 0.5rem; }
footer .crisis { font-style: italic; max-width: 34rem; margin: 0 auto 0.9rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1.1rem;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  font-style: italic;
  color: var(--colour-ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--colour-spot); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .settle {
    opacity: 0;
    transform: translateY(6px);
    animation: settle 240ms ease forwards;
  }
  .settle-2 { animation-delay: 120ms; }
  .settle-3 { animation-delay: 240ms; }
  @keyframes settle {
    to { opacity: 1; transform: translateY(0); }
  }
}

:focus-visible {
  outline: 2px solid var(--colour-spot);
  outline-offset: 3px;
}
