/*
 * Pine Reader — coming-soon landing.
 *
 * A deliberate sibling of the pinedawn.com apex page: same deep pine field,
 * same rounded-square mark holder, same calm hierarchy. Three things on the
 * page — mark, name, promise — plus a quiet "in development" marker so the
 * work-in-progress state is honest and unmistakable without shouting.
 *
 * No JS, no web fonts, no external requests. Colors are lifted verbatim from
 * the Pine apex and the @pine/tokens palette so Reader looks like it came off
 * the same press.
 */

:root {
  color-scheme: dark;

  /* Pine apex field (matches pinedawn.com verbatim). */
  --field: #083f2c;
  --field-deep: #06311f;
  --glow: #0d5a3f;
  --holder: #0b5039;

  /* Ink + accents from @pine/tokens. */
  --paper: #eaf3ee;
  --paper-muted: rgba(234, 243, 238, 0.64);
  --paper-faint: rgba(234, 243, 238, 0.42);
  --leaf: #7ba789;
  --hairline: rgba(234, 243, 238, 0.12);
  --chip: rgba(234, 243, 238, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100%;
  background:
    radial-gradient(120% 90% at 50% 28%, var(--glow) 0%, rgba(13, 90, 63, 0) 46%),
    linear-gradient(180deg, var(--field) 0%, var(--field-deep) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  display: grid;
  place-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 30rem;
  animation: rise 640ms var(--ease) both;
}

/* In-development marker — quiet pill with a soft living dot. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 5px 12px 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--chip);
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(123, 167, 137, 0.5);
  animation: pulse 2.6s var(--ease) infinite;
}

.mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: var(--holder);
  display: grid;
  place-items: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 10px 30px rgba(0, 0, 0, 0.22);
}

.mark svg {
  display: block;
  width: 42px;
  height: 42px;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.021em;
}

.promise {
  margin: 0 auto;
  max-width: min(22rem, 100%);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-muted);
  text-wrap: balance;
}

.tagline {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--paper-faint);
  letter-spacing: 0.01em;
}

footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--paper-faint);
  letter-spacing: 0.01em;
}

footer a {
  color: var(--paper-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

footer a:hover {
  color: var(--paper);
  border-color: var(--leaf);
}

footer a:focus-visible {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(123, 167, 137, 0.42);
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 167, 137, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(123, 167, 137, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(123, 167, 137, 0);
  }
}

@media (max-width: 30rem) {
  main {
    padding: 36px 20px;
  }
  h1 {
    font-size: 28px;
  }
  .promise {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
  .status .dot {
    animation: none;
  }
  footer a {
    transition: none;
  }
}
