/* =========================================================================
   US-Israel Inheritance  .  site.css
   Navy brand field + calm paper reading surface + cartographic brass accent.
   Display: Fraunces  .  Body: Newsreader  .  Labels/sources: IBM Plex Mono
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy:        #0B1A30;
  --navy-2:      #16294A;
  --navy-line:   rgba(232, 236, 243, 0.14);
  --paper:       #0F1E38;
  --card:        #21375C;
  --card-hi:     #2A4068;
  --head:        #F1F4F9;
  --ink:         #D6DDEB;
  --ink-soft:    #A9B5CC;
  --ink-faint:   #7E8BA6;
  --on-navy:     #E8ECF3;
  --on-navy-soft:#AAB6CC;
  --brass:       #C2914A;
  --brass-deep:  #D2A464;
  --rule:        rgba(180, 196, 224, 0.18);
  --rule-soft:   rgba(180, 196, 224, 0.10);

  --display: 'Fraunces', Georgia, serif;
  --body:    'Newsreader', Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --measure: 40rem;          /* reading width */
  --wide:    72rem;          /* page frame */
  --step:    clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  --tline:   rgba(180, 196, 224, 0.32);   /* visible table gridlines */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- skip link + focus ---- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brass); color: var(--navy);
  padding: 0.5rem 0.9rem; font-family: var(--mono); font-size: 0.8rem; z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- layout frame ---- */
.frame { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 1.5rem; }
.measure { max-width: var(--measure); }

/* ---- typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; color: var(--head); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.6rem 0 0.8rem; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem); margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--brass-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #E6C088; }
strong { font-weight: 600; }

/* eyebrow: mono label that sits over a section, carries the "filed and dated" feel */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.6rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--brass); display: inline-block;
}

/* ---- header ---- */
.site-head {
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid var(--navy-line);
}
.site-head .frame { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--on-navy);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.nav a {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--on-navy-soft); text-decoration: none; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); }

/* ---- hero ---- */
.hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(3rem, 2rem + 6vw, 6rem); }
.hero h1 { color: #EFF2F7; max-width: 18ch; }
.hero .lede { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem); color: var(--on-navy); max-width: 46ch; }
.hero .promise { color: var(--on-navy-soft); max-width: 54ch; }

/* the cartographic route line: thin brass line with node markers, used for sequence */
.route { display: flex; align-items: center; gap: 0; margin: 2rem 0 0; max-width: 30rem; }
.route .seg { flex: 1; height: 1px; background: linear-gradient(90deg, var(--brass), rgba(194,145,74,0.3)); }
.route .node { width: 9px; height: 9px; border: 1.5px solid var(--brass); border-radius: 50%; flex: none; }
.route .node.full { background: var(--brass); }

/* ---- general sections ---- */
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid rgba(194, 145, 74, 0.22); }
.band-a    { background: #10203C; }
.band-b    { background: #182C4F; }
.band-deep { background: #0A1830; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---- cards / lists of articles ---- */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 1.5rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; }
.card:hover { background: var(--card-hi); }
.card .q { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.card .t { font-family: var(--display); font-size: 1.12rem; color: var(--head); line-height: 1.25; }

/* ---- the six questions / locator list ---- */
.locator { counter-reset: q; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.locator li { background: var(--card); padding: 1.1rem 1.3rem 1.1rem 3.4rem; position: relative; counter-increment: q; }
.locator li::before {
  content: counter(q); position: absolute; left: 1.2rem; top: 1.15rem;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--brass-deep);
}
.locator b { font-family: var(--display); font-weight: 500; color: var(--head); }

/* ---- deadline / clock callout: bordered card, brass rule, no alarm red ---- */
.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--brass);
  background: var(--card); padding: 1.3rem 1.5rem; margin: 1.8rem 0;
}
.callout .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 0.5rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---- comparison + general tables (real HTML tables, indexable) ---- */
.tablewrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--tline); }
table { border-collapse: collapse; width: 100%; font-size: 1.02rem; }
caption { text-align: left; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 0.9rem 1.1rem; }
th, td { text-align: left; padding: 1rem 1.15rem; vertical-align: top; border-top: 1px solid var(--tline); border-left: 1px solid var(--tline); }
th:first-child, td:first-child { border-left: none; }
thead th { background: var(--navy); color: var(--on-navy); font-family: var(--mono); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.06em; border-top: none; border-bottom: 2px solid var(--brass); }
tbody th { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--head); background: rgba(194, 145, 74, 0.07); width: 9rem; }
tbody tr:nth-child(even) td { background: rgba(180, 196, 224, 0.04); }

/* phone-friendly: stack each row into a labelled card */
@media (max-width: 40rem) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tbody th,
  table.stack td { display: block; width: auto; border-left: none; }
  table.stack tbody tr { display: block; border-top: 2px solid var(--brass); }
  table.stack tbody tr:first-child { border-top: none; }
  table.stack tbody th { background: transparent; padding-bottom: 0.3rem; font-size: 1.2rem; }
  table.stack td { padding-top: 0.3rem; }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin-bottom: 0.15rem;
  }
}


/* ---- definition list (dictionary) ---- */
.dict { margin: 1.5rem 0 0; }
.dict dt { font-family: var(--display); font-size: 1.15rem; color: var(--head); margin-top: 1.4rem; }
.dict dt .heb { font-family: var(--mono); font-size: 0.78rem; color: var(--brass-deep); letter-spacing: 0.04em; margin-left: 0.4rem; }
.dict dd { margin: 0.3rem 0 0; color: var(--ink-soft); max-width: var(--measure); }
.dict dt:first-child { margin-top: 0; }

/* ---- article body ---- */
.article-head { background: var(--navy); color: var(--on-navy); padding-block: clamp(2.5rem, 2rem + 4vw, 4rem); }
.article-head h1 { color: #EFF2F7; max-width: 24ch; }
.article-head .sub { color: var(--on-navy-soft); max-width: 52ch; font-size: 1.1rem; }
.prose { max-width: var(--measure); line-height: 1.78; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

/* checklist of questions to bring to a pro */
.asklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.asklist li { padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid var(--rule-soft); position: relative; color: var(--ink-soft); }
.asklist li::before { content: "?"; position: absolute; left: 0; top: 0.7rem; font-family: var(--mono); color: var(--brass-deep); font-weight: 600; }

/* ---- sources block ---- */
.sources { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.sources .checked { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.04em; margin: 0 0 0.8rem; }
.sources ol { padding-left: 1.3rem; margin: 0; }
.sources li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ---- capture block ---- */
.capture { background: var(--navy-2); color: var(--on-navy); border: 1px solid var(--navy-line); border-top: 2px solid var(--brass); padding: 1.8rem; margin: 2.5rem 0; }
.capture.full { background: var(--navy); }
.capture h2 { color: #EFF2F7; margin: 0 0 0.5rem; }
.capture p { color: var(--on-navy-soft); max-width: 46ch; }
.ml-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; max-width: 30rem; }
.ml-form label { position: absolute; left: -999px; }   /* visually hidden, screen-reader present */
.ml-form input[type="email"] {
  flex: 1 1 14rem; min-width: 0; padding: 0.8rem 0.9rem; font-family: var(--body); font-size: 1rem;
  border: 1px solid var(--navy-line); background: var(--card-hi); color: var(--ink); border-radius: 2px;
}
.ml-form button {
  padding: 0.8rem 1.3rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--brass); color: var(--navy); border: none; border-radius: 2px;
  cursor: pointer; font-weight: 600;
}
.ml-form button:hover { background: #d6a45c; }
.hp { position: absolute; left: -9999px; }            /* honeypot */
.capture .fine { font-family: var(--mono); font-size: 0.68rem; color: var(--on-navy-soft); margin-top: 0.8rem; letter-spacing: 0.02em; }

/* ---- footer ---- */
.site-foot { background: var(--navy); color: var(--on-navy-soft); border-top: 1px solid var(--navy-line); padding-block: 2.2rem; margin-top: 3rem; }
.site-foot .frame { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.foot-line { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--on-navy); }
.foot-disc { font-size: 0.85rem; max-width: 48ch; color: var(--on-navy-soft); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.foot-nav a { font-family: var(--mono); font-size: 0.72rem; color: var(--on-navy-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--on-navy); }

/* ---- inline disclaimer chip used on content pages ---- */
.orient-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-faint); border-left: 2px solid var(--brass); padding-left: 0.8rem; margin: 1.5rem 0; }

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

@media (max-width: 33rem) {
  .site-head .frame { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .nav { gap: 0.8rem; }
}

/* ---- embedded MailerLite capture: constrain width, center, frame ---- */
.capture-embed { margin: 2.5rem 0; }
.capture-embed .ml-embedded { max-width: 36rem; margin-inline: auto; }
.capture-embed .ml-form,
.capture-embed form { max-width: 36rem; margin-inline: auto; }
