/* Threefold Interactive LLC — shared styles */

/* Dark only. The logo is a cyan glow built for black, so the site commits to
   one palette rather than carrying a washed-out light variant. Accent is
   pulled from the logo's cyan. */
:root {
  color-scheme: dark;

  --accent: #3ad4f0;
  --accent-soft: #7ce7fb;
  --on-accent: #04222b;
  --warm: #f5b45f;

  --bg: #07080c;
  --bg-alt: #0d0f15;
  --surface: #12141b;
  --border: #23262f;
  --text: #e9eaf0;
  --text-muted: #9599a8;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);

  --measure: 68ch;
  --page: 1080px;
  --radius: 14px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Email addresses and phone numbers are single unbreakable tokens and will
   push the page wider than a phone screen unless they're allowed to break. */
a[href^="mailto:"],
a[href^="tel:"] {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  font-weight: 650;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 24px;
}

main { flex: 1 0 auto; }

section { padding-block: clamp(48px, 7vw, 88px); }
section + section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

/* Caps line length on each block without narrowing the container itself —
   keeps prose sections flush with the page gutter, not centered. */
.prose > * { max-width: var(--measure); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 10;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { flex: none; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 7px 12px;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(64px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    55% 75% at 16% 28%,
    color-mix(in srgb, var(--accent) 20%, transparent),
    color-mix(in srgb, var(--accent) 6%, transparent) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.24rem);
  color: var(--text-muted);
  max-width: 58ch;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 560;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* Dark ink on the bright cyan — white text on this accent fails contrast. */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-soft);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.35em; }
.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
}

.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- status / in-development ---------- */

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
  max-width: var(--measure);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm);
  background: color-mix(in srgb, var(--warm) 14%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Released, as opposed to the amber in-development state. */
.tag-live {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------- contact list ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: baseline;
  min-width: 0;
}

.contact-list dt,
.contact-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-width: 5.5em;
}

@media (max-width: 460px) {
  .contact-list li { display: block; }
  .contact-list dt,
  .contact-label { display: block; min-width: 0; }
}

/* ---------- legal / long-form ---------- */

.legal > * { max-width: var(--measure); }
.legal h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}
.legal h2:first-of-type { margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.5em; }

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-left: 3px solid var(--border);
  padding-left: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 36px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: none;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* ---------- 404 ---------- */

.centered {
  min-height: 58vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.centered .actions { justify-content: center; }
