/* mantrify.site. Colours and type follow docs/DESIGN.md: the same room as the app,
   warm white with ink in the light theme, near-black with white in the dark one.
   Only the dark room has light from the floor: on a light wall nothing glows. */

:root {
  color-scheme: light dark;
  --room: #FFFAF3;
  --ink: #2A1005;
  --soft: rgba(42, 16, 5, 0.64);
  --faint: rgba(42, 16, 5, 0.14);
  --link: #A85C08;
  --floor: none;
  --voice: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --room: #0B0503;
    --ink: #FFFFFF;
    --soft: rgba(255, 255, 255, 0.64);
    --faint: rgba(255, 255, 255, 0.14);
    --link: #FFB866;
    --floor: radial-gradient(120% 60% at 50% 115%, rgba(255, 184, 102, 0.16), transparent 70%);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--floor), var(--room);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.wordmark {
  font-family: var(--voice);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* Home: one block, a little above the middle of the screen. */
.home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 24px 14svh;
  max-width: 34rem;
  margin: 0 auto;
}
.home .wordmark { font-size: clamp(44px, 11vw, 64px); line-height: 1.05; margin: 0; }
.home .tagline { font-family: var(--voice); font-size: 22px; color: var(--soft); margin: 10px 0 36px; }
.home p { margin: 0 0 16px; color: var(--soft); }
.home nav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--faint); font-size: 15px; }
.home nav a { margin-right: 20px; }
.home .contact { margin-top: 12px; font-size: 15px; }

/* Text pages. */
.page { max-width: 38rem; margin: 0 auto; padding: 28px 24px 72px; }
.page header { padding-bottom: 28px; }
.page header .wordmark { font-size: 24px; }
.page h1 { font-family: var(--voice); font-weight: 400; font-size: clamp(34px, 8vw, 44px); line-height: 1.15; margin: 24px 0 6px; }
.page .updated { color: var(--soft); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-family: var(--voice); font-weight: 400; font-size: 23px; line-height: 1.3; margin: 40px 0 10px; }
.page p, .page ul { margin: 0 0 14px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.page footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--faint); font-size: 15px; color: var(--soft); }
.page footer a { margin-right: 20px; }
