/* TAIPAN! companion site — shared styles */

/* No external font request: Google Fonts' CDN logs visitor IPs on every
   page load, which is exactly the kind of third-party data transfer
   GDPR wants disclosed (and a German court has fined sites for loading
   it without consent). System font stacks get a near-identical look
   with zero network requests and zero consent burden. */

:root {
  --ink: #f4ead9;
  --ink-dim: #c9bda6;
  --navy: #0c1522;
  --navy-deep: #070c14;
  --navy-card: #121e2e;
  --gold: #c9a15a;
  --gold-bright: #e4c07e;
  --red: #8b2a2a;
  --red-bright: #b33c3c;
  --border: rgba(201, 161, 90, 0.25);
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at top, rgba(139, 42, 42, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 18%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 20, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }

.brand svg { width: 28px; height: 28px; flex: none; }

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

nav.main-nav a {
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

nav.main-nav a:hover {
  background: rgba(201, 161, 90, 0.1);
  color: var(--gold-bright);
  text-decoration: none;
}

nav.main-nav a.current {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1.3rem;
  padding: 4px 10px;
  cursor: pointer;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--ink-dim);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--gold);
  color: var(--gold-bright);
}

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

main .section {
  padding: 48px 0;
}

main .section + .section {
  border-top: 1px solid var(--border);
}

h2.section-title {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  font-size: 1.9rem;
  margin: 0 0 8px;
}

p.section-sub {
  color: var(--ink-dim);
  margin: 0 0 32px;
  max-width: 620px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.card p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }

/* ---- Ports strip ---- */

.ports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ports span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* ---- FAQ ---- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
}

.faq-item p {
  margin: 0;
  color: var(--ink-dim);
}

.faq-item p + p { margin-top: 10px; }

/* ---- Legal / prose pages ---- */

.prose h2 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin: 36px 0 10px;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--ink-dim); }

.prose ul { padding-left: 1.2em; }

.updated-note {
  display: inline-block;
  background: rgba(201, 161, 90, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 28px;
}

.legal-disclaimer {
  margin-top: 36px;
  padding: 16px 18px;
  border-left: 3px solid var(--red-bright);
  background: rgba(139, 42, 42, 0.12);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

/* ---- Support / contact ---- */

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .support-grid { grid-template-columns: 1fr; }
}

.troubleshoot details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--navy-card);
}

.troubleshoot summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.troubleshoot details p {
  color: var(--ink-dim);
  margin: 10px 0 0;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form.contact-form label {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

form.contact-form textarea { min-height: 130px; resize: vertical; }

.hp-field { position: absolute; left: -9999px; }

.consent-field { margin-top: -4px; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-weight: 400;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold);
  flex: none;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.form-note {
  color: var(--ink-dim);
  font-size: 0.82rem;
}

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 24px;
}

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

footer.site .foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer.site .foot-links a { color: var(--ink-dim); font-size: 0.9rem; }

footer .credit { color: var(--ink-dim); font-size: 0.85rem; }

@media (max-width: 680px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 2px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 8px; width: 100%; }
  .nav-toggle { display: inline-block; }
}
