/* mordechaisones.com
   Dark by design. Heavy display face for headings, serif for reading, mono for labels and dates.
   One accent: the cyan of the seal. No warm tones. */

:root {
  --bg: #0e181c;
  --bg-2: #142329;
  --bg-3: #1a2e35;
  --ink: #e9eef0;
  --ink-2: #b8c4c8;
  --ink-3: #7f9196;
  --rule: #25393f;
  --accent: #4fc3d0;
  --accent-2: #8fdce5;
  --accent-ink: #0b1218;
  --accent-soft: #15333a;
  --paper: #f3f1ea;
  --t1: #d2f1f5; --t2: #8fdce5; --t3: #4fc3d0; --t4: #2a8f9c; --t5: #1b5e68;
  --t1-ink: #0b1218; --t2-ink: #0b1218; --t3-ink: #0b1218; --t4-ink: #ffffff; --t5-ink: #ffffff;
  --focus: #ffffff;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --w: 1120px;
  --measure: 44rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0e181c; --ink: #e9eef0; } }
:root[data-theme="dark"] { --bg: #0e181c; --ink: #e9eef0; }

html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  font-feature-settings: "liga", "kern";
}
body.lang-he {
  --display: "Suez One", "Frank Ruhl Libre", "David", serif;
  --serif: "Frank Ruhl Libre", "David", "Times New Roman", serif;
  --mono: "Rubik", "IBM Plex Mono", "Arial Hebrew", sans-serif;
  font-size: 1.22rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-2); }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6rem; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; }
.lang-he .display { text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.1; }
h1.display { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0.2rem 0 1.2rem; }
h2.display { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0.2rem 0 0.9rem; }
h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-top: 2.4rem; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.lang-he h2, .lang-he h3 { font-weight: 400; }
p { margin: 0 0 1rem; }
em { font-style: italic; }
.lang-he em { font-style: normal; font-weight: 500; }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 2.6rem 0 0.5rem; }
.lang-he .kicker { letter-spacing: 0.04em; text-transform: none; font-size: 0.9rem; }
h1.display + .lead, .kicker + h1.display { margin-top: 0.2rem; }
main > .kicker:first-child, section > .kicker:first-child { margin-top: 0; }
section { margin-top: 3.2rem; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 2.4rem; padding-bottom: 3rem; }
main p, main .lead, main ul, main ol { max-width: var(--measure); }
.lead { font-size: 1.12em; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.site-name { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1rem; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
.site-name img { width: 30px; height: 30px; border-radius: 50%; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-family: var(--mono); font-size: 0.86rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 0.15rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch { margin-inline-start: auto; display: flex; gap: 0.4rem; }
.lang-switch a { font-family: var(--mono); text-decoration: none; color: var(--accent); border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.82rem; }
.lang-switch a:hover { background: var(--accent-soft); color: var(--accent-2); }
.lang-switch a[lang="he"] { font-family: "Frank Ruhl Libre", "David", serif; font-size: 0.95rem; }

/* footer */
.site-foot { background: #090f12; color: var(--ink-2); margin-top: 3rem; border-top: 1px solid var(--rule); }
.foot-row { display: flex; gap: 1.1rem; align-items: flex-start; padding-top: 1.6rem; padding-bottom: 1.6rem; font-family: var(--mono); font-size: 0.86rem; }
.seal { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--rule); }
.foot-text p { margin: 0 0 0.4rem; }
.book-line { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.book-line a { color: var(--ink); }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.foot-links span { margin: 0 0.3rem; opacity: 0.6; }
.copyright { font-size: 0.78rem; opacity: 0.75; }

/* home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 2.5rem; align-items: start; }
.home .kicker { margin-top: 0; }
.home-text h1.display { font-size: clamp(1.45rem, 2.6vw + 0.5rem, 2.4rem); line-height: 1.12; text-transform: none; letter-spacing: -0.01em; }
.lang-he .home-text h1.display { font-size: clamp(1.6rem, 2.8vw + 0.5rem, 2.6rem); }
.portrait { margin: 0.6rem 0 0; }
.portrait img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 1px var(--rule); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.door { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--bg-2); }
.door strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1rem; color: var(--accent); margin-bottom: 0.4rem; }
.lang-he .door strong { text-transform: none; font-weight: 400; font-size: 1.15rem; }
.door span { font-size: 1rem; color: var(--ink-2); }
.door:hover { background: var(--accent-soft); border-color: var(--accent); }

/* scorecard */
.scorecard { margin-top: 3.5rem; }
.score { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: none; border-top: 1px solid var(--rule); }
.score-item { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.score-year { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--accent); }
.lang-he .score-year { font-weight: 400; }
.score-label { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.lang-he .score-label { letter-spacing: 0.03em; text-transform: none; font-size: 0.85rem; }
.score-said p, .score-arrived p { font-size: 1.02rem; margin-bottom: 0.4rem; max-width: none; }
.score-arrived .score-label { color: var(--accent); }
.score-item.is-pending .score-arrived .score-label { color: var(--ink-3); }
.score-item.is-pending .score-arrived { border-inline-start: 2px dashed var(--rule); padding-inline-start: 1rem; }
.score .src { font-family: var(--mono); font-size: 0.8rem; }

/* record */
.entry { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 1.8rem; }
.entry:first-of-type { border-top: none; }
.entry .when { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lang-he .entry .when { letter-spacing: 0.03em; text-transform: none; font-size: 0.9rem; }
.entry h2 { margin-top: 0.2rem; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; }
.lang-he .entry h2 { text-transform: none; }
.docs { display: flex; flex-wrap: wrap; gap: 1.2rem 1.4rem; align-items: flex-start; margin: 0.8rem 0 0.4rem; }
figure.doc { margin: 0; flex: 0 1 380px; max-width: 100%; }
figure.doc.tall { flex-basis: 260px; }
figure.doc.small { flex-basis: 150px; }
figure.doc img { border: 1px solid var(--rule); background: #fff; }
figure.doc a { display: block; }
figure.doc a:hover img { border-color: var(--accent); }
figcaption, .portrait figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); margin-top: 0.45rem; line-height: 1.45; }
.pending { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.entry .shows { font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; color: var(--accent-2); max-width: var(--measure); margin: 0.2rem 0 1rem; }
.lang-he .entry .shows { font-weight: 400; font-size: 1.3rem; }
.said { list-style: none; padding: 0; margin: 0.4rem 0 1rem; display: grid; gap: 0.7rem; }
.said li { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; }
.said p { margin: 0 0 0.15rem; }
.said-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
.lang-he .said-label { letter-spacing: 0.03em; text-transform: none; font-size: 0.82rem; }
.cost { max-width: var(--measure); margin: 0.2rem 0 1rem; color: var(--ink-2); }
.cost-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-inline-end: 0.5rem; }
.lang-he .cost-label { letter-spacing: 0.03em; text-transform: none; font-size: 0.82rem; }
.portrait figcaption { font-family: var(--serif); font-size: 0.98rem; color: var(--ink-2); line-height: 1.5; }
.links { list-style: none; padding: 0; margin: 0 0 0.8rem; font-family: var(--mono); font-size: 0.84rem; }
.links li { display: inline; }
.links li + li::before { content: " · "; color: var(--ink-3); }
.closing { margin-top: 2.5rem; padding: 1rem 1.2rem; background: var(--bg-2); border-inline-start: 4px solid var(--accent); border-radius: 3px; }
.closing a { color: var(--ink); }
.video { margin: 0.8rem 0 1rem; max-width: 720px; }
.video .frame { position: relative; padding-top: 56.25%; background: #000; border: 1px solid var(--rule); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* thinking: pyramid */
.pyramid-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 1rem 0 0.5rem; }
.pyramid { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.pyramid .tier { cursor: pointer; }
.pyramid polygon { stroke: var(--bg); stroke-width: 2; transition: filter 0.15s; }
.pyramid [data-tier="moral"] polygon { fill: var(--t1); }
.pyramid [data-tier="informational"] polygon { fill: var(--t2); }
.pyramid [data-tier="political"] polygon { fill: var(--t3); }
.pyramid [data-tier="financial"] polygon { fill: var(--t4); }
.pyramid [data-tier="military"] polygon { fill: var(--t5); }
.pyramid text { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; pointer-events: none; }
.pyramid [data-tier="moral"] text { fill: var(--t1-ink); }
.pyramid [data-tier="informational"] text { fill: var(--t2-ink); }
.pyramid [data-tier="political"] text { fill: var(--t3-ink); }
.pyramid [data-tier="financial"] text { fill: var(--t4-ink); }
.pyramid [data-tier="military"] text { fill: var(--t5-ink); }
.lang-he .pyramid text { letter-spacing: 0; font-size: 18px; font-weight: 400; }
.pyramid .tier:hover polygon, .pyramid .tier:focus polygon { filter: brightness(1.08); }
.pyramid .tier.active polygon { fill: #ffffff; stroke: var(--accent); }
.pyramid .tier.active text { fill: var(--accent-ink) !important; }
.pyramid .tier:focus { outline: none; }
.pyramid .tier:focus-visible polygon { stroke: var(--focus); stroke-width: 3; }
.tier-panel { min-height: 9rem; padding: 1rem 1.2rem; border-inline-start: 4px solid var(--accent); border-radius: 4px; background: var(--bg-2); }
.tier-hint { font-family: var(--mono); font-size: 0.86rem; color: var(--ink-3); margin: 0; }
.tier-card h3 { color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.lang-he .tier-card h3 { text-transform: none; }
.tier-card .wield { margin-bottom: 0.6rem; }
.tier-card .verse { font-family: "Frank Ruhl Libre", "David", serif; font-size: 1.5rem; margin: 0 0 0.2rem; color: var(--ink); }
.tier-card .gloss { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin: 0; }
.tier-card p { max-width: none; }

/* thinking: the ten shapes as figures */
.shapes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0.5rem; max-width: none; }
.shape-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 6px; }
.shape-fig { flex: 0 0 132px; color: var(--accent); background: var(--bg); border-radius: 6px; padding: 6px; }
.glyph { width: 120px; height: 90px; display: block; }
.shape-text { min-width: 0; }
.shape-text h3 { font-size: 0.98rem; margin: 0.1rem 0 0.35rem; color: var(--ink); display: flex; align-items: baseline; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.lang-he .shape-text h3 { text-transform: none; font-size: 1.15rem; }
.shape-n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); min-width: 1.2em; }
.shape-text p { font-size: 1rem; margin: 0 0 0.3rem; max-width: none; }
.shape-text .where { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); margin: 0; }

/* thinking: the twelve principles as tiles */
.principles-grid { list-style: none; padding: 0; margin: 1rem 0 0.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; max-width: none; }
.tile { --g: var(--accent); background: var(--bg-2); border: 1px solid var(--rule); border-top: 3px solid var(--g); border-radius: 6px; padding: 0.8rem 0.9rem 0.9rem; display: flex; flex-direction: column; }
.tile-root { --g: #ffffff; }
.tile-truth { --g: #4fc3d0; }
.tile-sov { --g: #7aa7ff; }
.tile-torah { --g: #b7a6ff; }
.tile-action { --g: #6fd3a5; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.tile-n { font-family: var(--display); font-size: 2rem; font-weight: 900; line-height: 1; color: var(--g); }
.lang-he .tile-n { font-weight: 400; }
.tile-group { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g); }
.lang-he .tile-group { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.tile h3 { font-size: 0.98rem; margin: 0 0 0.4rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.lang-he .tile h3 { text-transform: none; font-size: 1.15rem; }
.tile p { font-size: 0.93rem; color: var(--ink-2); margin: 0 0 0.6rem; max-width: none; flex: 1; }
.tile .src { font-size: 0.78rem; }
.tile a.src::before { content: ""; }

/* lists */
.src { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); }
a.src { color: var(--accent); }
a.src::before { content: "— "; color: var(--ink-3); }
.words-list { list-style: none; padding: 0; }
.words-list li { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; margin-bottom: 1.3rem; }
.words-list p { margin-bottom: 0.2rem; }
.words-list .src { margin-bottom: 0; }

/* what to do, support, elsewhere */
.button { display: inline-block; font-family: var(--mono); font-weight: 500; background: var(--accent); color: var(--accent-ink); padding: 0.65rem 1.2rem; border-radius: 4px; text-decoration: none; }
.button:hover { background: var(--accent-2); color: var(--accent-ink); }
.note { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.purpose { border-inline-start: 4px solid var(--accent); padding-inline-start: 1rem; margin-top: 1.6rem; }
.purpose h2 { margin-top: 0; font-size: 1.25rem; text-transform: uppercase; }
.lang-he .purpose h2 { text-transform: none; }
.pay { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.pay h2 { text-transform: uppercase; font-size: 1.25rem; margin-top: 0; }
.lang-he .pay h2 { text-transform: none; }
.pay-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-start; }
.pay-row > div { flex: 1 1 20rem; }
.pay-address { font-family: var(--mono); font-size: 0.95rem; }
figure.qr { margin: 0; flex: 0 0 auto; }
figure.qr img { width: 220px; height: auto; border-radius: 8px; }
.independence { margin-top: 1.5rem; font-family: var(--mono); font-size: 0.86rem; color: var(--accent-2); }
.hub { list-style: none; padding: 0; }
.hub li { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.hub li:first-child { border-top: none; }
.hub a { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.lang-he .hub a { text-transform: none; font-weight: 400; font-size: 1.15rem; }
.hub a:hover { color: var(--accent); }
.hub span { display: block; color: var(--ink-2); font-size: 1rem; }
.contact h2 { text-transform: uppercase; font-size: 1.25rem; }
.lang-he .contact h2 { text-transform: none; }

/* phone */
@media (max-width: 720px) {
  body { font-size: 1.08rem; }
  body.lang-he { font-size: 1.12rem; }
  .home { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .doors { grid-template-columns: 1fr; }
  .score-item { grid-template-columns: 1fr; gap: 0.6rem 0; }
  .score-year { font-size: 1.6rem; }
  .pyramid-wrap { grid-template-columns: 1fr; }
  .shapes-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .shape-fig { flex-basis: 108px; padding: 4px; }
  .glyph { width: 100px; height: 75px; }
  figure.doc { flex-basis: 100%; }
  figure.doc.tall { flex-basis: 70%; }
  figure.doc.small { flex-basis: 40%; }
  .foot-row { flex-direction: column; }
  .site-name { order: 1; }
  .lang-switch { order: 2; }
  .site-nav { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .site-nav { gap: 0.2rem 0.7rem; font-size: 0.8rem; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* ---- told / what they did ---- */
.told { max-width: var(--measure); margin: 0.2rem 0 0.8rem; }
.told-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-inline-end: 0.5rem; }
.lang-he .told-label { letter-spacing: 0.03em; text-transform: none; font-size: 0.82rem; }

/* ---- excerpts from the book ---- */
.excerpt { max-width: var(--measure); margin: 1rem 0 1.2rem; padding: 0.9rem 1.2rem; background: var(--bg-2); border-inline-start: 3px solid var(--ink-3); border-radius: 3px; font-style: italic; }
.lang-he .excerpt { font-style: normal; }
.excerpt p { margin: 0 0 0.6rem; }
.excerpt p:last-of-type { margin-bottom: 0.4rem; }
.excerpt footer { font-family: var(--mono); font-size: 0.76rem; font-style: normal; color: var(--ink-3); }
.excerpt footer a { color: var(--ink-2); }

/* ---- the duty to warn ---- */
.source { max-width: var(--measure); margin: 2.4rem 0 0; }
.source .ref { font-family: "Frank Ruhl Libre", var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--accent); margin: 0 0 0.5rem; text-transform: none; letter-spacing: 0; }
.source blockquote.he { font-family: "Frank Ruhl Libre", "David", serif; font-size: 1.45rem; line-height: 1.6; margin: 0 0 0.5rem; padding: 0; color: var(--ink); }
.lang-he .source blockquote.he { font-size: 1.5rem; }
.source .tr { font-style: italic; color: var(--ink-2); margin: 0 0 0.9rem; }
.lang-he .source .tr { font-style: normal; }
.objection, .notclaim { max-width: var(--measure); margin-top: 2.6rem; }
.objection h2, .notclaim h2 { font-size: 1.5rem; }
.page-index .scorecard { margin-top: 1.5rem; }
.page-index .doors { margin-top: 2.5rem; }
