/* Hermeneus support site. Palette from the app icon: ink blue, cream, gold. Light and dark follow the device.
   Fonts: Gentium Plus and Ezra SIL (SIL Open Font License 1.1), served from this site; body text in the
   system's own sans-serif. No external requests. */

@font-face { font-family: "Gentium Plus"; src: url("/assets/fonts/GentiumPlus-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gentium Plus"; src: url("/assets/fonts/GentiumPlus-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Ezra SIL"; src: url("/assets/fonts/SILEOT.ttf") format("truetype");
  font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  color-scheme: light dark;
  --bg: #fbf7ee;          /* cream paper */
  --bg-alt: #f3ecdc;
  --card: #ffffff;
  --ink: #1d2f52;         /* icon ink blue: headings */
  --text: #1f2635;
  --muted: #535b6c;
  --line: #e2d7bf;
  --gold: #e0a83e;        /* icon gold: ornaments only */
  --link: #8a5410;        /* deep gold for text links (AA on cream and white) */
  --link-hover: #1d2f52;
  --btn-bg: #1d2f52;
  --btn-fg: #f8f1df;
  --code-bg: #efe6d1;
  --shadow: 0 1px 2px rgba(16,27,51,.06), 0 8px 28px rgba(16,27,51,.10);
  --hero-bg: radial-gradient(120% 100% at 0% 0%, #fffaf0 0%, #f6eedc 60%, #efe4cb 100%);
  --serif: "Gentium Plus", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --heb: "Ezra SIL", "SBL Hebrew", "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a31;
    --bg-alt: #14223f;
    --card: #17264a;
    --ink: #f3e8cf;
    --text: #e8e3d7;
    --muted: #b4b9c7;
    --line: #2b3c62;
    --gold: #e0a83e;
    --link: #edbb5f;
    --link-hover: #f3e8cf;
    --btn-bg: #e0a83e;
    --btn-fg: #101b33;
    --code-bg: #1d2d55;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --hero-bg: radial-gradient(120% 100% at 0% 0%, #1f335c 0%, #142243 55%, #0f1a31 100%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.05rem); margin: 2em 0 .5em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
h4 { font-size: 1.1rem; margin: 1.3em 0 .3em; }
p, ul, ol, dl, table { margin: 0 0 1em; }
li + li { margin-top: .25em; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--code-bg); border-radius: 4px; padding: .08em .35em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; }
[lang="grc"], .grc { font-family: var(--serif); }
[lang="he"], [lang="hbo"], .heb { font-family: var(--heb); font-size: 1.12em; }
code [lang="grc"], code[lang="grc"] { font-family: var(--serif); font-size: 1.05em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; z-index: 10; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- header */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 8px; display: block; }
.brand-name { font: 400 1.5rem/1 var(--serif); font-variant: small-caps; letter-spacing: .06em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .98rem; }
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------------------------------------------------------------- page heads */
.page-head { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.page-head p.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; margin: 0; }
.eyebrow { font: italic 1.05rem/1.3 var(--serif); color: var(--link); margin: 0 0 .5em; }
.content { padding: 24px 0 64px; }
.content > .wrap > :first-child { margin-top: 1.2em; }

/* ---------------------------------------------------------------- home hero */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-mark { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.hero-mark .app-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: var(--shadow); flex: none; }
.hero-mark .wordmark { width: min(340px, 100%); height: auto; display: block; }
.tagline { font: italic clamp(1.6rem, 1.2rem + 1.8vw, 2.35rem)/1.2 var(--serif); color: var(--ink); margin: 0 0 .5em; }
.hero p.lede { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent; }
.btn:hover { color: var(--btn-fg); filter: brightness(1.12); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-alt); color: var(--ink); filter: none; }
.store-soon { display: inline-flex; flex-direction: column; justify-content: center; padding: 10px 18px; border-radius: 12px;
  border: 1.5px dashed var(--gold); color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); line-height: 1.25; }
.store-soon b { font-size: 1rem; }
.store-soon small { color: var(--muted); font-size: .85rem; }
.platforms { color: var(--muted); font-size: .95rem; margin-top: 16px; }

.devices { position: relative; min-height: 0; }
.devices .mac { display: block; width: 100%; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.devices .phone { position: absolute; right: -10px; bottom: -36px; width: 30%; border-radius: 26px; border: 6px solid #10192e;
  box-shadow: var(--shadow); background: #10192e; }
.shot-caption { font-size: .9rem; color: var(--muted); margin: 14px 34% 0 0; }

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2:first-child { margin-top: 0; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 44em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.card h3 { margin: 0 0 .35em; font-size: 1.25rem; }
.card p { margin: 0; color: var(--text); }
.card .ic { width: 28px; height: 28px; color: var(--link); margin-bottom: 10px; display: block; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.feature:first-of-type { margin-top: 32px; }
.feature.flip .feature-media { order: -1; }
.feature h3 { font-size: 1.6rem; margin-top: 0; }
.feature ul { padding-left: 1.2em; }
.feature-media { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.feature-media img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.feature-media .ph { width: 46%; max-width: 280px; border-radius: 24px; border: 5px solid #10192e; }
.feature-media .wide { width: 100%; }
.feature-media figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; text-align: center; }

.search-demo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; width: 100%; max-width: 460px; }
.search-demo div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 18px; border-top: 1px solid var(--line); align-items: baseline; }
.search-demo div:first-child { border-top: 0; }
.search-demo dt, .search-demo dd { margin: 0; }
.search-demo code { background: none; padding: 0; font-size: 1.05rem; color: var(--ink); }
.search-demo dd { color: var(--muted); font-size: .95rem; }
.m0 { margin: 0; }
.mt0 { margin-top: 0; }

.privacy-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
.shield { width: 84px; height: 84px; border-radius: 20px; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; }
.shield svg { width: 46px; height: 46px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.checks li { position: relative; padding-left: 30px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat; }

.cta-band { text-align: center; }
.cta-band .hero-actions { justify-content: center; }
.name-note { font: italic 1.15rem/1.5 var(--serif); color: var(--muted); max-width: 40em; margin: 0 auto; }
.name-note b { font-style: normal; color: var(--ink); font-weight: 400; }

/* ---------------------------------------------------------------- guide / long text */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: .95rem; padding: 4px 0; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .5em; font-family: var(--sans); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; }
.toc a:hover { border-left-color: var(--gold); color: var(--ink); }
.toc details summary { cursor: pointer; font-weight: 600; padding: 10px 14px; }
.prose { max-width: 760px; }
.prose h2 { padding-top: .2em; border-top: 1px solid var(--line); padding-top: 1.1em; }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: .3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 0 0 1.1em; }
.note > :last-child { margin-bottom: 0; }
.dev { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; margin: 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--bg-alt); color: var(--ink); font-weight: 600; }
td code { white-space: nowrap; }
.shot-inline { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.shot-inline figure { margin: 0; flex: 1 1 220px; max-width: 300px; }
.shot-inline figure.wide { flex-basis: 100%; max-width: 100%; }

/* FAQ */
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 12px; margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font: 400 1.22rem/1.35 var(--serif); color: var(--ink); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--sans); color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 6px; }

/* Sources */
dl.credits dt { font-weight: 600; color: var(--ink); margin-top: 1.1em; }
dl.credits dd { margin: .25em 0 0; color: var(--text); }
dl.credits a { overflow-wrap: anywhere; }
.lic-list { columns: 2 260px; padding-left: 1.2em; }

/* Support */
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 8px 0 28px; }
.contact-card .mail { font: 400 1.5rem/1.3 var(--serif); overflow-wrap: anywhere; }

/* 404 */
.notfound { text-align: center; padding: 80px 0 100px; }
.notfound .big { font: italic 6rem/1 var(--serif); color: var(--gold); margin: 0; }
.notfound .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.foot-mark { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.foot-mark img { border-radius: 7px; }
.foot-mark span { font: 400 1.35rem/1 var(--serif); font-variant: small-caps; letter-spacing: .06em; color: var(--ink); }
.foot-mark i { font: italic 1.05rem/1 var(--serif); color: var(--link); }
.foot-tag { font: italic 1.05rem/1.4 var(--serif); color: var(--ink); margin: 0 0 .6em; }
.foot-note { color: var(--muted); max-width: 34em; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; columns: 2 160px; }
.foot-nav li { margin: 0 0 6px; }
.foot-nav a { overflow-wrap: anywhere; }
.foot-nav li.mail { column-span: all; margin-top: 6px; }
.foot-legal { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.foot-legal p { margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .devices { max-width: 720px; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature.flip .feature-media { order: 0; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0; }
  .toc ol { padding: 0 10px 12px; }
}
@media (min-width: 981px) {
  .toc details > summary { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .head-row { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .brand { align-self: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 7px 9px; font-size: .95rem; }
  .site-head { position: static; }
  .hero-mark { gap: 16px; }
  .hero-mark .app-icon { width: 76px; height: 76px; border-radius: 17px; }
  .devices .phone { width: 34%; right: -4px; bottom: -28px; border-width: 4px; border-radius: 18px; }
  .section { padding: 48px 0; }
  .page-head { padding: 32px 0 26px; }
  .privacy-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .search-demo div { grid-template-columns: 7.5em 1fr; padding: 9px 14px; }
  .feature-media .ph { width: 48%; }
  th, td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; color: #000; }
}
[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) { [id] { scroll-margin-top: 12px; } }
.muted { color: var(--muted); font-size: .92rem; }

/* fixes after the width checks */
.hero-mark h1 { flex: 1 1 auto; min-width: 0; }
.feature-media figure.tall { max-width: 440px; }
@media (prefers-color-scheme: dark) {
  .hero-mark .app-icon, .brand img, .foot-mark img { box-shadow: 0 0 0 1px rgba(243,232,207,.22), var(--shadow); }
}
@media (max-width: 980px) {
  .toc h2 { display: none; }
}
@media (max-width: 760px) {
  .shot-caption { margin-right: 40%; }
}
