/* TenTwo public site.
   Tokens and component values are copied from the TenTwo build repo
   (platform/web/shared/tokens.css and tentwo-ui/gen-2-substrate/tentwo-ui.css).
   Change them there first, then copy here. */

:root {
  --paper:        #f3f1ec;
  --paper-raised: #faf8f3;
  --paper-high:   #ffffff;
  --paper-sunken: #ebe7dd;
  --paper-ink:    #1a1813;

  --ink:    #1a1813;
  --ink-2:  #5a544a;
  --ink-3:  #8b8478;
  --ink-on-dark:   #f3f1ec;
  --ink-2-on-dark: #b8b1a3;

  --line:        #e1dccf;
  --line-strong: #d2ccbc;

  --sage-50:  #eaf1ee;
  --sage-200: #bcd3c9;
  --sage-300: #94b8aa;
  --sage:     #5f9386;
  --sage-700: #3c6a5e;
  --sage-800: #2e5249;

  --gold-50:  #f7efdf;
  --gold-100: #efe1c4;
  --gold-700: #87622b;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --sh-sm: 0 1px 3px rgba(26,24,19,.06), 0 1px 2px rgba(26,24,19,.04);
  --sh-md: 0 4px 14px rgba(26,24,19,.07), 0 1px 3px rgba(26,24,19,.05);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-700); }
a:hover { color: var(--sage-800); }
::selection { background: var(--sage-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.eyebrow {
  display: block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-700);
}
.eyebrow.muted { color: var(--ink-2); margin-bottom: 8px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(243,241,236,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .tt-globe { margin: 0 0 5px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; color: var(--ink); }
.wordmark .ten2 { color: var(--sage-700); font-weight: 600; }
.topnav { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.topnav a { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; }
.topnav a:hover { background: var(--paper-sunken); color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .topnav { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  line-height: 1; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--sage-700); color: #fbfaf6; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--sage-800); color: #fff; box-shadow: var(--sh-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn .ext { font-size: 0.9em; opacity: .8; margin-left: 6px; }
.btn-outline:hover { border-color: var(--ink-2); background: var(--paper-raised); color: var(--ink); }

/* hero */
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); line-height: 1.03; letter-spacing: -0.025em; margin-top: 14px; }
.hero .lede { margin-top: 20px; max-width: 44ch; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .globe-stage { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .globe-stage { display: none; }
}

/* sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
section[id] { scroll-margin-top: 66px; }
.sec-tint { background: var(--paper-raised); border-block: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-top: 12px; }
.sec .body { margin-top: 18px; max-width: 64ch; color: var(--ink-2); font-size: 1.0625rem; }
.sec .body + .body { margin-top: 12px; }
.sec .body .btn { margin-top: 8px; }

.cards { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards + .body { margin-top: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-top: 24px; }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--paper-high); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; box-shadow: var(--sh-sm); }
.card h3 { font-size: 1.3rem; }
.cards > .card h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--sage); margin-bottom: 14px; }
.card .card-action { margin-top: auto; padding-top: 16px; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.card p { margin-top: 8px; color: var(--ink-2); }
.card p + p { margin-top: 10px; }

.card-wide { margin-top: 16px; }
.card-wide p { max-width: 72ch; }

/* Nigeria: story beside what has been done */
.split { margin-top: 8px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split > .panel { margin-top: 18px; }
.panel { background: var(--paper-high); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.panel h3 { font-size: 1.2rem; }
.checklist { margin: 10px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 6px 0 6px 22px; color: var(--ink-2); border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li { padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 10px; border: solid var(--sage-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.phase { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.phase-h { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 10px; }
.phase .cards-2 { max-width: none; }
.next { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: var(--ink-2); font-size: 1.0625rem; }
.next .eyebrow { display: inline; }

/* scripture band (ink plane) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.verse { background: var(--paper-ink); color: var(--ink-on-dark); }
.verse .container { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
@media (max-width: 820px) { .verse .container { grid-template-columns: 1fr; gap: 36px; } }
.verse .eyebrow { color: var(--sage-300); }
.verse blockquote { margin: 0; }
.verse blockquote p { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-on-dark); }
.verse-main blockquote { margin-top: 18px; }
.verse-main blockquote p { font-size: clamp(1.55rem, 3.2vw, 2.3rem); line-height: 1.2; letter-spacing: -0.01em; text-indent: -0.42em; }
.verse-side { border-left: 2px solid var(--sage); padding-left: 20px; }
.verse-side p { font-size: 1.2rem; line-height: 1.45; color: var(--ink-2-on-dark); text-indent: -0.36em; }
.verse footer { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2-on-dark); }
.verse cite { font-style: normal; font-weight: 600; color: var(--sage-300); }
.verse-note { margin-top: 20px; max-width: 48ch; color: var(--ink-2-on-dark); font-size: 1.05rem; }

.contact-email { display: inline-block; margin-top: 14px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); text-decoration: none; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* unfilled content. Remove the class once a placeholder is replaced. */
.placeholder { background: var(--gold-50); border: 1px dashed var(--gold-700); color: var(--gold-700); border-radius: 4px; padding: 0 6px; font-weight: 600; }

/* footer */
body > footer { background: var(--paper-ink); color: var(--ink-2-on-dark); padding: 44px 0; }
body > footer .container { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
body > footer .wordmark { font-size: 1.15rem; color: var(--ink-on-dark); }
body > footer .wordmark .ten2 { color: var(--sage-300); }
body > footer p { font-size: 0.875rem; }
body > footer a { color: var(--ink-on-dark); }
body > footer a:hover { color: var(--sage-300); }
body > footer .placeholder { background: transparent; color: var(--gold-100); border-color: var(--gold-100); }
