/* Fuuds site. Tokens mirror fuuds-app/src/static/css/style.css and docs/brand-guidelines.md. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-600-italic.woff2') format('woff2');
}

:root {
  --color-primary: #8A9A86;           /* Sage Green */
  --color-primary-strong: #647360;    /* Sage fill under white text (5.04:1) */
  --color-primary-ink: #5A6B57;       /* Sage as text and focus rings (5.71:1 on white) */
  --color-bg-base: #F7F5F0;           /* Oatmeal */
  --color-text-main: #2C302E;         /* Charcoal */
  --color-text-muted: #6B6F6D;        /* Secondary text */
  --color-surface: #FFFFFF;           /* Cream */
  --color-ui-border: #E2E0D9;         /* Stone */
  --color-accent-warn: #C27867;       /* Terracotta */

  --radius: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(44, 48, 46, 0.08);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'San Francisco', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(138, 154, 134, 0.18), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.page__brand {
  width: 100%;
  padding: 2rem 0 0;
  text-align: center;
}

.page__footer {
  margin-top: auto;
  width: 100%;
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-ui-border);
}

/* Brand */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-main);
  text-decoration: none;
}

a.wordmark:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary-ink);
  outline-offset: 2px;
}

/* Hero */
.hero {
  width: 100%;
  max-width: 560px;
  padding: 4rem 0 3rem;
  text-align: center;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-text-main);
}

h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary-ink);
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.hero__body {
  margin: 1rem auto 0;
  max-width: 480px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-ui-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-ink);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* Points */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding: 0 0 4rem;
}

.point {
  padding: 1.5rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.point__icon {
  display: block;
  margin: 0 auto 0.75rem;
  color: var(--color-primary-ink);
}

.point h2 {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.point p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Button (404) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background: var(--color-primary-strong);
  color: var(--color-surface);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s, transform 0.08s ease;
}

.btn:hover {
  background: var(--color-primary-ink);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.6s ease-out both;
  }

  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }

  .point {
    animation: rise 0.6s ease-out 0.32s both;
  }

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

@media (prefers-reduced-motion: reduce) {
  .status__dot {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 760px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .points {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 3rem;
  }
}
