/*
  Naperville Now placeholder styles
  - Colors are easy to tweak via CSS variables below.
  - Default accent nods to Instagram gradient; adjust once brand colors are confirmed.
*/

:root {
  --bg: #0e0e12;
  --text: #ffffff;
  --muted: #cfd3dc; /* higher contrast for readability */
  --card: #16161d;
  --card-border: #242536;
  /* Brandable accent; update to Naperville Now’s color when available */
  --accent: #f05; /* fallback pink */
  --accent-2: #f90; /* fallback orange */

  /* Platform colors */
  --ig: linear-gradient(135deg, #f58529 0%, #feda77 28%, #dd2a7b 56%, #8134af 78%, #515bd4 100%);
  --fb: #1877f2;
  --ss: #ff6719; /* Substack orange */

  /* Motion */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --a-fast: 160ms;
  --a-med: 300ms;
  --a-slow: 9s;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(240,85,0,0.22), transparent 60%),
    radial-gradient(1200px 800px at 110% 110%, rgba(255,0,85,0.20), transparent 60%),
    #0c0c10;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
  padding: 56px 20px;
  position: relative;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  max-width: 860px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px auto;
  background: none;
}

.logo img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

h1 {
  margin: 0 0 6px 0;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.2px;
  text-wrap: balance;
  position: relative;
  animation: fadeUp var(--a-med) var(--ease-out) forwards;
}

/* Eyebrow highlight chip between title and tagline */
.eyebrow {
  display: inline-block;
  margin: 4px auto 0 auto;
  padding: 6px 10px;
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  background-image: linear-gradient(135deg, rgba(255,0,85,0.9), rgba(255,153,0,0.9));
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  animation: fadeUp var(--a-med) var(--ease-out) .04s forwards;
}

.tag {
  margin: 10px auto 0 auto;
  color: #fff;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1px;
  text-wrap: balance;
  max-width: 780px;
  animation: fadeUp var(--a-med) var(--ease-out) .08s forwards;
}

.subtag {
  margin: 8px auto 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.9;
  line-height: 1.45;
  text-wrap: balance;
  max-width: 760px;
  animation: fadeUp var(--a-med) var(--ease-out) .16s forwards;
}

.cta {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--card);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  border-image: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)) 1;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  animation: fadeUp var(--a-med) var(--ease-out) .24s forwards;
}

.coming {
  margin: 0 0 14px 0;
  color: #fff;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 14px;
  height: 64px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform var(--a-fast) var(--ease-out), box-shadow var(--a-fast) var(--ease-out), opacity var(--a-fast) var(--ease-out);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Accessible focus styles */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.24), 0 8px 26px rgba(0,0,0,0.45);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 44%, rgba(255,255,255,0) 50%);
  transform: translateX(-120%);
  transition: transform var(--a-med) var(--ease-out);
  border-radius: inherit;
}
.btn:hover::after {
  transform: translateX(120%);
}

.btn .btn-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #fff; opacity: 0.95; }
.btn .btn-text { display: none; }
.btn .btn-abbr { font-size: 16px; opacity: 0.95; }

/* Platform specific visuals */
.btn.ig { background-image: var(--ig); box-shadow: 0 6px 20px rgba(221,42,123,0.35); }
.btn.fb { background: var(--fb); box-shadow: 0 6px 20px rgba(24,119,242,0.35); }
.btn.ss { background: var(--ss); box-shadow: 0 6px 20px rgba(255,103,25,0.35); }

@media (min-width: 560px) {
  .btn {
    height: 72px;
  }
  .btn .btn-text { display: inline; }
  .btn .btn-abbr { display: none; }
}

/* Improve small-screen tap targets and layout */
@media (max-width: 359px) {
  .cta { padding: 16px; }
  .btn { height: 60px; }
}

.note {
  margin: 12px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Substack embed container */
.embed { margin-top: 16px; }
.embed iframe { width: 100%; height: 320px; border-radius: 12px; }
@media (max-width: 420px) {
  .embed iframe { height: 280px; }
}

.foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Remove previous underline accent under H1 to avoid visual clash */
h1::after { content: none; }

/* Floating glow accents behind content */
.wrap::before,
.wrap::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(60px);
  opacity: .14;
  z-index: -1;
  border-radius: 50%;
}
.wrap::before {
  top: -80px; left: -120px;
  background: radial-gradient(circle at 30% 30%, #ff0055, transparent 60%);
  animation: none;
}
.wrap::after {
  bottom: -120px; right: -80px;
  background: radial-gradient(circle at 70% 70%, #ff9900, transparent 60%);
  animation: none;
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
