/* ───────────────────────────────────────────
   nichcraft.com — shared styles
   Fonts: Instrument Serif (display) + Outfit (body)
   Palette: warm cream, deep charcoal, terracotta accent
   ─────────────────────────────────────────── */

:root {
  --color-bg: #f4f1eb;
  --color-bg-subtle: #ece8e0;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6560;
  --color-accent: #c45d35;
  --color-accent-hover: #a84d2b;
  --color-border: #d9d4cc;
  --color-surface: #fff;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: radial-gradient(
    ellipse at 70% 15%,
    rgba(196, 93, 53, 0.045) 0%,
    transparent 55%
  );
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Reveal animation ─────────────────────── */

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

.reveal {
  animation: reveal 0.7s ease-out both;
}

.reveal-d1 { animation-delay: 0.12s; }
.reveal-d2 { animation-delay: 0.24s; }
.reveal-d3 { animation-delay: 0.36s; }
.reveal-d4 { animation-delay: 0.48s; }
.reveal-d5 { animation-delay: 0.6s; }

/* ── Typography ───────────────────────────── */

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.25;
}

p {
  max-width: 38em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Buttons ──────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #2a2a2a;
  color: var(--color-bg);
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Site footer ──────────────────────────── */

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer nav {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer .divider {
  margin: 0 0.6rem;
  opacity: 0.4;
}

.site-footer .copyright {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* ── Page-level: document/legal ───────────── */

.page {
  padding: 4rem 0 3rem;
}

.page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.page p,
.page li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.page ul {
  padding-left: 1.5rem;
}

.page .placeholder {
  background: var(--color-bg-subtle);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}
