/* Mystery Message site (spec 0014): the app's light sticker style. No inline styles anywhere:
   the Content-Security-Policy in _headers allows only this file. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-700Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/dm-sans-800ExtraBold.woff2') format('woff2');
}

:root {
  --ink: #1b1030;
  --cream: #fff4dc;
  --white: #ffffff;
  --yellow: #ffd23f;
  --violet: #7b5cff;
  --muted: #6b5f85;
  --lilac-pale: #f1ebff;
  --butter: #ffe7a1;
  --border: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet);
}

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

/* The one sticker card: border plus hard shadow. */
.sticker {
  background: var(--white);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.site-header {
  max-width: 728px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.site-header .sticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--yellow);
}

.brand {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-weight: 700;
  font-size: 15px;
}

.nav a[aria-current='page'] {
  text-decoration: none;
  color: var(--muted);
}

.page {
  max-width: 728px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  margin: 8px 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  margin: 40px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

.effective {
  color: var(--muted);
  font-weight: 500;
}

.toc {
  background: var(--lilac-pale);
  border: var(--border);
  border-radius: 14px;
  padding: 12px 20px 4px;
  margin: 24px 0 8px;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.toc li {
  margin-bottom: 4px;
}

section {
  overflow-wrap: break-word;
}

.history {
  border-top: var(--border);
  margin-top: 48px;
}

/* Landing and 404 */
.landing .hero {
  padding: 24px;
  margin-top: 8px;
}

.tagline {
  font-size: 20px;
  font-weight: 700;
}

.soon {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  background: var(--butter);
  border: var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.landing-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-weight: 700;
}

.site-footer {
  max-width: 728px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: var(--border);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-weight: 700;
}

.footer-note {
  color: var(--muted);
}

@media (max-width: 480px) {
  .page,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 28px;
  }
}
