/*
Theme Name: decibl
Theme URI: https://deciblapp.com
Author: DECIBL LLC
Author URI: https://deciblapp.com
Description: Simple one-page site for decibl: logo, wordmark, tagline, app download links, and policy pages.
Version: 1.0.1
Requires at least: 5.8
Requires PHP: 7.4
License: Proprietary
Text Domain: decibl
*/

:root {
  --bg: #000000;
  --fg: #f4f2f8;
  --muted: #9b97a8;
  --line: #24222c;
  --purple: #8b5cf6;
  --teal: #2dd4bf;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- landing ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 96px;
  text-align: center;
}

.mark { width: clamp(180px, 42vw, 280px); height: auto; aspect-ratio: 1; margin-bottom: clamp(20px, 5vw, 40px); display: block; }

.wordmark {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
}

.tagline {
  margin: clamp(14px, 3vw, 22px) 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 300;
  color: #b5b2bf;
  letter-spacing: 0.01em;
}

.footer-links {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--teal);
  outline: none;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(36px, 8vw, 64px);
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #3a3744;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.btn:hover, a.btn:focus-visible {
  color: var(--fg);
  border-color: var(--muted);
  outline: none;
}

.btn-soon {
  opacity: 0.55;
  cursor: default;
}

/* nav states: open = purple, soon = greyed out and not clickable */
.footer-links a.is-open,
.page-footer a.is-open { color: var(--purple); }

.footer-links a.is-open:hover,
.footer-links a.is-open:focus-visible,
.page-footer a.is-open:hover,
.page-footer a.is-open:focus-visible { color: #a78bfa; border-bottom-color: var(--purple); }

.is-soon {
  color: var(--muted);
  opacity: 0.4;
  cursor: default;
  user-select: none;
}

.footer-links .is-soon { padding: 4px 0; border-bottom: 1px solid transparent; }

@media (max-width: 480px) {
  .footer-links { gap: 8px 16px; font-size: 0.82rem; }
}

/* ---------- inner pages ---------- */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 96px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0;
  font-size: 1.5rem;
}

.page-nav img { width: 28px; height: 28px; border-radius: 50%; }

.page h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.page h2 {
  font-size: 1.15rem;
  margin: 40px 0 8px;
  letter-spacing: -0.01em;
}

.page p, .page li { color: var(--fg); }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }

.page a.inline {
  color: var(--teal);
  text-underline-offset: 3px;
}

.draft-note {
  border: 1px dashed var(--purple);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}

.contact-card .label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.contact-card .value { font-size: 1.25rem; margin: 0; word-break: break-word; }

.page-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.9rem;
}

.page-footer a { color: var(--muted); text-decoration: none; }
.page-footer a:hover { color: var(--fg); }

/* ---------- WordPress extras ---------- */
body.admin-bar .hero { min-height: calc(100svh - 32px); }
.page img { max-width: 100%; height: auto; }
