/* TimeByChoice — shared design system.
   Every page loads this. Page-specific rules stay in the page. */

:root {
  --ink: #16171A;
  --paper: #F4F2ED;
  --red: #E8362B;
  --red-text: #EA443A;   /* small text: ~4.6:1 on ink, AA-compliant */
  --muted: #8B8C8F;
  --rule: rgba(244, 242, 237, 0.12);
  --field: rgba(244, 242, 237, 0.36);
}

@font-face {
  font-family: 'TBC';
  src: url('TimeByChoice.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'TBC', 'Helvetica Neue', 'Inter', 'Segoe UI', Roboto,
               'DejaVu Sans Condensed', 'Liberation Sans', Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--paper); }

::selection { background: var(--red); color: var(--paper); }
::-moz-selection { background: var(--red); color: var(--paper); }

/* One visible focus style everywhere, instead of browser defaults */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--red); color: var(--paper); padding: 12px 18px;
  font-weight: 700; text-decoration: none; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Honeypot field (bot-field) — must stay invisible to real visitors at all times,
   including on keyboard focus (unlike .skip-link above, this should never reveal itself). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 44px; flex-wrap: wrap;
}
.mark { display: flex; align-items: center; text-decoration: none; padding: 9px 0; }
.tick { width: 11px; height: 26px; background: var(--paper); border-radius: 6px; }
.tick.red { background: var(--red); margin-left: 9px; }
.markword { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--muted); margin-left: 16px; }
.site-nav { display: flex; gap: 18px; }
.site-nav a {
  font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--muted);
  text-decoration: none; transition: color 0.15s; line-height: 22px; padding: 11px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

@media (max-width: 520px) {
  .site-head { gap: 14px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
}

/* ---------- footer ---------- */
footer {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-social a {
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; transition: color 0.15s;
}
.footer-social a:hover { color: var(--paper); }
.footer-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-nav { justify-self: start; display: flex; gap: 14px; font-size: 12px; letter-spacing: 1px; }
.footer-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; transition: color 0.15s; }
.footer-nav a:hover { color: var(--paper); }
.footer-tag {
  justify-self: center; font-size: 12px; letter-spacing: 2px;
  color: var(--muted); margin: 0; white-space: nowrap;
}
.footer-copy { justify-self: end; font-size: 12px; letter-spacing: 1px; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .footer-bar { grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; }
  .footer-nav, .footer-copy { justify-self: center; }
  .footer-nav { gap: 20px; }
}
@media (max-width: 360px) {
  .footer-tag { white-space: normal; letter-spacing: 1px; }
}

/* ---------- buttons ---------- */
.btn, .btn-red, .cform button, .start-btn, form .btn {
  background: var(--red); color: var(--paper); border: none; font-family: inherit;
  font-size: 19px; font-weight: 700; padding: 15px 28px; border-radius: 10px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover, .btn-red:hover, .cform button:hover, .start-btn:hover { opacity: 0.9; }
button[disabled] { opacity: 0.55; cursor: default; }

/* ---------- form fields ---------- */
input[type=email], textarea {
  display: block; width: 100%; background: transparent;
  border: 1px solid var(--field); color: var(--paper); font-family: inherit;
  font-size: 16px; padding: 14px 16px; border-radius: 10px; resize: vertical;
}
input[type=email]::placeholder, textarea::placeholder { color: var(--muted); }

.cform { margin-top: 18px; }
.cform input[type=email], .cform textarea { margin-bottom: 10px; }
.cform textarea { min-height: 110px; }
.cform-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.cform-thanks { display: none; color: var(--red-text); font-weight: 700; margin-top: 16px; font-size: 17px; }

/* ---------- text wrapping ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li, .body-text, .cite, .lede, .sub, .exp-why, .dim-desc, .form-note { text-wrap: pretty; }
.cite a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
