/* Every page of the theme (frame in layout.php): the footer, and the look
   of the ordinary pages (body.page-body). The landing page adds
   landing.css, which sets its own page base. */

* {
  box-sizing: border-box;
}

html {
  background: #020820;
}

body.page-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #eef7ff;
  background:
    radial-gradient(
      90% 480px at 50% 0%,
      rgba(78, 121, 168, 0.55) 0%,
      rgba(47, 86, 127, 0.25) 55%,
      rgba(2, 8, 32, 0) 100%
    ),
    #020820;
}

.site-head {
  padding-top: 32px;
}

.site-home {
  display: block;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}

.site-head .brand-logo {
  display: block;
  width: 132px;
  aspect-ratio: 488 / 128;
  background: linear-gradient(to bottom, #ffffff 0%, #9ec8eb 100%);
  -webkit-mask: url("/images/fbadio.svg") center / contain no-repeat;
  mask: url("/images/fbadio.svg") center / contain no-repeat;
}

.page-main {
  flex: 1;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.page-title {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.entry-content h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.entry-content h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.entry-content p,
.entry-content li {
  color: rgba(238, 247, 255, 0.88);
  font-size: 1rem;
}

/* The "Effective <date>" line under a page title (paragraph class "meta"). */
.entry-content p.meta {
  margin-top: -12px;
  color: rgba(225, 239, 251, 0.62);
  font-size: 0.95rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content a {
  color: #cfe6ff;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: #fff;
}

.entry-content code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* Forms (for a contact form block or plugin). */
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.entry-content textarea,
.entry-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(225, 239, 251, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef7ff;
  font: inherit;
}

.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus {
  outline: 2px solid #8cc4ff;
  outline-offset: 1px;
}

.entry-content button,
.entry-content input[type="submit"],
.entry-content .wp-block-button__link {
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #12304f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Footer (every page; the landing page also pins a copy) ---------- */
.license-note {
  margin: 0;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(225, 239, 251, 0.38);
}

.license-note a {
  color: rgba(225, 239, 251, 0.55);
  text-decoration: none;
  white-space: nowrap;
}

.license-note a:hover {
  color: rgba(225, 239, 251, 0.85);
}

.license-note .footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 600px) {
  .license-note {
    justify-content: center;
    text-align: center;
    font-size: 0.62rem;
    padding-inline: 16px;
  }

  .license-note .license-credit {
    flex-basis: 100%;
  }

  .license-note .footer-links {
    margin-left: 0;
  }
}
