/* ============================================================================
   Ideagen — editorial-minimal site styles.

   Type: Fraunces (display + body) paired with system sans for small-caps
   chrome. Color: pure white, near-black, single gray-500 accent for
   metadata. Layout: narrow centered column with generous breathing room.
   Motion: one well-orchestrated load reveal — staggered fade-up on
   each <main> child. No micro-interactions beyond underline hovers.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,700;1,9..144,400;1,9..144,700&display=swap');

:root {
  --bg: #fafaf7;
  --ink: #0a0a0a;
  --meta: #737373;
  --rule: rgba(10, 10, 10, 0.1);
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'liga', 'kern', 'onum';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ───── Layout ───── */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

@media (max-width: 640px) {
  main {
    padding: 3rem 1.25rem 3rem;
  }
}

/* ───── Type ───── */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.02;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.15;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
}

p + p {
  text-indent: 0;
}

em,
i {
  font-style: italic;
}

strong,
b {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--meta);
}

/* ───── Small-caps metadata ───── */

.eyebrow,
.meta {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 500;
}

.meta {
  color: var(--meta);
}

/* ───── Ornaments ───── */

.asterism {
  text-align: center;
  color: var(--meta);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  margin: 3rem 0;
  user-select: none;
}

.asterism::before {
  content: '⁂';
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ───── Long-form sections (used on privacy/eula) ───── */

.section {
  position: relative;
  margin: 2.25rem 0;
}

.section-num {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.section h2 {
  margin-top: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section p {
  margin-bottom: 0.85rem;
}

.section ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
}

.section li {
  margin-bottom: 0.4rem;
}

/* ───── Landing-specific layout ───── */

.cover {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
  justify-content: center;
}

.cover .display {
  font-style: italic;
  font-weight: 700;
}

.cover .tagline {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.25rem 0 2rem;
  max-width: 32ch;
}

.cover .status {
  margin-bottom: 2.75rem;
}

.cover .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 1rem;
}

.cover .links a {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  font-weight: 500;
}

.cover .links a:hover {
  border-bottom-color: var(--meta);
  color: var(--meta);
}

.cover footer {
  margin-top: auto;
  padding-top: 4rem;
}

/* ───── Long-form header ───── */

.long-header {
  margin-bottom: 2rem;
}

.long-header .eyebrow {
  margin-bottom: 1rem;
  display: block;
}

.long-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.long-header .effective {
  margin-top: 0.5rem;
}

.back-link {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 3rem;
}

.back-link:hover {
  color: var(--ink);
}

.intro {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 1.5rem 0 2rem;
  max-width: 50ch;
}

/* ───── Load motion ───── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > * {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

main > *:nth-child(1) { animation-delay: 0.05s; }
main > *:nth-child(2) { animation-delay: 0.15s; }
main > *:nth-child(3) { animation-delay: 0.25s; }
main > *:nth-child(4) { animation-delay: 0.35s; }
main > *:nth-child(5) { animation-delay: 0.45s; }
main > *:nth-child(6) { animation-delay: 0.55s; }
main > *:nth-child(7) { animation-delay: 0.6s; }
main > *:nth-child(n+8) { animation-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  main > * {
    opacity: 1;
    animation: none;
  }
}

/* ───── Selection ───── */

::selection {
  background: var(--ink);
  color: var(--bg);
}
