/* getlulo.app: the privacy policy and support pages linked from Settings → About.
   Colours follow DESIGN.md: Day earthenware, and Nursery when the visitor's device is dark. */

:root {
  color-scheme: light dark;
  --canvas: #f4ede3;
  --bloom: #ebdcc8;
  --card: #fbf7f1;
  --ink: #2b2521;
  --ink-secondary: #6b5f57;
  --ink-tertiary: #72675c;
  --hairline: #2b252114;
  --accent: #9c5a3d;
  --crescent: #b8704f;
  --bead: #6b8671;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --bloom: #1f150c;
    --card: #15110e;
    --ink: #e3c59e;
    --ink-secondary: #ab8e6c;
    --ink-tertiary: #937f6c;
    --hairline: #e0a15a1f;
    --accent: #e0a15a;
    --crescent: #e0a15a;
    --bead: #b8a26a;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--bloom), transparent 70%),
    radial-gradient(ellipse 60% 45% at 0% 100%, var(--bloom), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
}

/* Header: the mark and the name, home from every page. */

.site-header {
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.mark {
  display: block;
  flex: none;
}

.mark .crescent {
  fill: var(--crescent);
}

.mark .bead {
  fill: var(--bead);
}

/* Content */

main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 56px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.125rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  margin: 28px 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.25em;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--ink-tertiary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.meta {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.summary {
  margin: 24px 0 8px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

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

/* Support: the way to reach a person comes first. */

.contact {
  margin: 24px 0 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

.contact .address {
  display: inline-block;
  margin: 2px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
}

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

/* Home */

.intro {
  padding-top: 48px;
}

.intro .mark {
  margin-bottom: 20px;
}

.intro h1 {
  font-size: 2.75rem;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding-top: 20px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--ink-secondary);
}

.site-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}
