/* Horizon in the licentium.ai brand kit (claude/licentium-ai-design/brand-kit.md).
   Rules and values copied from the kit's components/bundle.css, which copies
   licentium.ai's home.css and the Compass app's site.css. Everything sits
   under the root class .lh. One typeface at one weight, the kit's colours only. */

@font-face {
  font-family: 'Source Serif 4';
  src: url(/horizon/static/fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url(/horizon/static/fonts/source-serif-4-latin-opsz-italic.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

html:has(.lh) { background: #f5f5ee; color-scheme: light; scroll-behavior: auto; }
body:has(.lh) { margin: 0; background: #f5f5ee; color: #16140f; }
body:has(.lh)::before, body:has(.lh)::after { content: none; }

/* ---------- The root and its tokens ---------- */
.lh {
  --bg: #f5f5ee;
  --ink: #16140f;
  --ink2: #4a4740;
  --mute: #8a8575;
  --mute-text: #736e60;
  --idle: #918c7d;
  --faint: #c9c5b8;
  --accent: #0f766e;
  --flag: #b45309;
  --black: #000000;
  --on-black: #ffffff;
  --underline: rgba(22, 20, 15, 0.35);
  --selection: #d3e6e1;
  --line: #e2dfd4;
  --card: #fbfaf5;
  --danger: #b91c1c;
  --notice: #e7efe9;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --page-max: 1280px;
  --text-max: 820px;
  --narrow-max: 760px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-height: 64px;
  --hero-height: clamp(560px, 82vh, 780px);
  --section-statement: clamp(40px, 8vw, 120px);
  --section-stage: clamp(56px, 9vw, 140px);
  --section-callout-end: clamp(80px, 10vw, 150px);
  --pill-height: 40px;
  --radius-pill: 999px;
  --radius-field: 16px;
  --radius-panel: 14px;
  --ghost-border: inset 0 0 0 1px #16140f;
  --field-focus: 0 0 0 3px rgba(15, 118, 110, 0.12);
  --ease-rise: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-word: 0.9s;
  --dur-reveal: 1s;
  --dur-hover: 0.2s;
  --dur-cross: 0.5s;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
  overflow-x: clip;
  min-height: 100vh;
}
.lh *, .lh *::before, .lh *::after { box-sizing: border-box; }
.lh h1, .lh h2, .lh h3, .lh h4 { color: inherit; font-weight: 400; letter-spacing: normal; }
.lh b, .lh strong { font-weight: 400; font-style: italic; }
.lh ::selection { background: var(--selection); color: var(--ink); }
.lh a:focus-visible, .lh button:focus-visible, .lh input:focus-visible,
.lh textarea:focus-visible, .lh select:focus-visible, .lh summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.lh .vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header and wordmark ---------- */
.lh .top {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lh .logo { font-size: 21px; color: var(--ink); text-decoration: none; }
.lh .logo i { color: var(--mute); }
.lh .topnav { display: flex; align-items: center; gap: 22px; }
.lh .tl {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.lh .tl:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 399.98px) {
  .lh .topnav { gap: 14px; }
  .lh .top .pill { padding: 0 16px 2px; }
}
@media (max-width: 374.98px) {
  .lh .top .tl { display: none; }
}

/* ---------- Pill: every button ---------- */
.lh .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pill-height);
  padding: 0 20px 2px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--on-black);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.015rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.lh .pill:hover { background: var(--accent); }
.lh .pill:disabled { opacity: 0.4; cursor: default; background: var(--black); }
.lh .pill.ghost { background: transparent; color: var(--ink); box-shadow: var(--ghost-border); }
.lh .pill.ghost:hover { background: var(--ink); color: var(--on-black); }
.lh .pill.ghost:disabled { background: transparent; color: var(--ink); }
.lh .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Text link and eyebrow ---------- */
.lh .link {
  color: var(--ink);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
}
.lh .link:hover { text-decoration-color: var(--ink); }
.lh .kick {
  margin: 0 0 18px;
  font-size: 0.7rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
}

/* ---------- Hero: the name, the line, the explanation, the field ---------- */
.lh .hero {
  min-height: calc(var(--hero-height) - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--gutter) 56px;
}
.lh .hero h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.5rem, 5vw + 1rem, 5.25rem);
  line-height: 1.1;
  text-wrap: balance;
}
.lh .hero h1 .hw { display: inline-block; animation: lh-rise var(--dur-word) var(--ease-rise) var(--d, 0s) both; }
.lh .hero .note {
  margin: 30px 0 0;
  max-width: 24em;
  font-style: italic;
  font-size: clamp(1rem, 2vw + 0.25rem, 1.125rem);
  line-height: 1.6;
  text-wrap: balance;
  animation: lh-up var(--dur-reveal) var(--ease-rise) 1.1s both;
}
.lh .hero .say {
  margin: 22px auto 0;
  max-width: 34em;
  font-size: 1.2rem;
  line-height: 1.7;
  text-wrap: pretty;
  animation: lh-up var(--dur-reveal) var(--ease-rise) 1.1s both;
}
.lh .hero .see { margin: 18px 0 0; animation: lh-up var(--dur-reveal) var(--ease-rise) 1.1s both; }
.lh .start { width: 100%; max-width: 560px; margin: 30px auto 0; animation: lh-up var(--dur-reveal) var(--ease-rise) 1.1s both; }

/* ---------- Fields (app patterns) ---------- */
.lh .field-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.lh .field-line {
  flex: 1 1 240px;
  width: min(320px, 100%);
  min-width: 0;
  height: var(--pill-height);
  padding: 0 20px;
  border: 1px solid var(--faint);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}
.lh .field-line::placeholder { color: var(--mute-text); }
.lh .field-line:focus { outline: none; border-color: var(--accent); box-shadow: var(--field-focus); }
.lh .field-line:disabled { opacity: 0.7; }
.lh .hint { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute-text); }
.lh .hint a { color: var(--mute-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }
.lh .hint a:hover { color: var(--ink); }
.lh .error { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--danger); }
.lh .notice {
  display: inline-block;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-panel);
  background: var(--notice);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.lh [hidden] { display: none !important; }

/* ---------- Sections ---------- */
.lh .sec { max-width: var(--narrow-max); margin: 0 auto; padding: var(--section-stage) var(--gutter) 0; }
.lh .sec.wide { max-width: var(--text-max); }
.lh .sec.last { padding-bottom: var(--section-callout-end); }
.lh .sec-head { text-align: center; }
.lh .sec h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.lh .sec h2 em { font-style: italic; }
.lh .sec .t {
  margin: 22px auto 0;
  max-width: 34em;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}
.lh .sec .body { margin-top: 30px; }

.lh .sec .pt { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; text-align: center; text-wrap: balance; }
.lh .sec .welcome { display: block; margin: 0 auto 30px; max-width: 34em; text-align: center; }
.lh .whoami { margin: 0 0 30px; font-size: 14px; line-height: 1.6; color: var(--mute-text); text-align: center; }
.lh .sec-head.gap { margin-top: var(--section-stage); }
.lh .hint.c { text-align: center; }
.lh .settings { margin-top: 48px; text-align: center; }
.lh .settings > summary { display: inline-flex; }
.lh .settings .jbody { text-align: left; margin-top: 30px; }
.lh .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lh .hp input { font: inherit; }
.lh .mail { overflow-x: auto; }
.lh .notes { margin-top: 12px; }
.lh .notes .rows > li { padding: 8px 0; font-size: 14px; line-height: 1.6; }
.lh .notes .field-row { justify-content: flex-start; margin-top: 12px; }

/* ---------- One alert, as it arrives ---------- */
.lh .alert-one { margin: 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--selection); text-align: left; }
.lh .alert-one .lead { margin: 0; font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.lh .alert-one .more { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.lh .alert-one .meta { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute-text); }
.lh .alert-one .meta a { color: var(--ink); font-style: italic; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }
.lh .alert-one .meta a:hover { text-decoration-color: var(--ink); }

/* ---------- Rows: a list divided by hairlines ---------- */
.lh .rows { margin: 0; padding: 0; list-style: none; text-align: left; }
.lh .rows > li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink2); }
.lh .rows > li:last-child { border-bottom: 1px solid var(--line); }
.lh .rows .ttl { display: block; margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.lh .rows .sub { display: block; margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.lh .rows .meta { display: block; margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute-text); }

/* ---------- Packs to follow ---------- */
.lh .pack { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lh .pack .txt { min-width: 0; }
.lh .pack form { flex: none; margin: 0; }
.lh .pack .pill { min-width: 112px; }
.lh .pack .pill[data-on="true"] { background: var(--black); color: var(--on-black); box-shadow: none; }
.lh .pack .pill[data-on="true"]:hover { background: var(--accent); }
@media (max-width: 559.98px) {
  .lh .pack { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Your alerts ---------- */
.lh .alerts > li.done .ttl, .lh .alerts > li.done .sub { color: var(--mute-text); }
.lh .alerts .ttl a { color: var(--ink); text-decoration: none; }
.lh .alerts .ttl a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }
.lh .alerts .meta a { color: var(--mute-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }
.lh .alerts .meta a:hover { color: var(--ink); }
.lh .alerts .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; }
.lh .act {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
  cursor: pointer;
}
.lh .act:hover { text-decoration-color: var(--ink); }
.lh .act.danger { color: var(--danger); }
.lh .sel {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--faint);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
}
.lh .search { display: flex; justify-content: center; margin: 0 0 18px; }
.lh .empty { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink2); text-align: center; }

/* ---------- Settings ---------- */
.lh .set { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.lh .set:last-child { border-bottom: 1px solid var(--line); }
.lh .set h3 { margin: 0; font-size: 17px; line-height: 1.55; }
.lh .set p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.lh .set .field-row { justify-content: flex-start; margin-top: 12px; }
.lh .set code, .lh .mono { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: break-all; }

/* ---------- Disclosures (the sources list, the settings) ---------- */
.lh details > summary { list-style: none; cursor: pointer; }
.lh details > summary::-webkit-details-marker { display: none; }
.lh details > summary::marker { content: ''; }
.lh .open-all { display: block; margin-top: 30px; text-align: center; }
.lh .open-all > summary { display: inline-flex; }
.lh .open-all > .jbody { text-align: left; }
.lh details[open] > summary .when-shut, .lh details:not([open]) > summary .when-open { display: none; }
.lh .jlist { margin: 30px 0 0; padding: 0; list-style: none; text-align: left; }
.lh .jlist > li { border-top: 1px solid var(--line); }
.lh .jlist > li:last-child { border-bottom: 1px solid var(--line); }
.lh .j > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  color: var(--ink);
}
.lh .j > summary .jn { font-size: 17px; line-height: 1.55; }
.lh .j > summary .jc { margin-left: auto; font-size: 14px; line-height: 1.6; color: var(--mute-text); white-space: nowrap; }
.lh .j > summary .jt {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
  white-space: nowrap;
}
.lh .j > summary:hover .jt { text-decoration-color: var(--ink); }
.lh .jbody.moving { overflow: hidden; }
.lh .pubs { margin: 0; padding: 0 0 18px; list-style: none; }
.lh .pubs > li { padding: 6px 0 10px; }
@media (min-width: 820px) {
  .lh .pubs { columns: 2; column-gap: 48px; }
  .lh .pubs > li { break-inside: avoid; }
}
.lh .pubs .pn { margin: 0; font-style: italic; font-size: 17px; line-height: 1.55; color: var(--ink); }
.lh .pubs ul { margin: 2px 0 0; padding: 0; list-style: none; }
.lh .pubs ul li { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.lh .pubs ul a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); overflow-wrap: anywhere; }
.lh .pubs ul a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- The monitor request ---------- */
.lh .ask { max-width: 560px; margin: 30px auto 0; }
.lh .ask .field-line { display: block; width: 100%; margin: 12px 0 0; }
.lh .ask .field-line:first-of-type { margin-top: 0; }
.lh .ask .btns { margin-top: 12px; }
.lh .ask .hint { text-align: center; }
.lh .ask .notice, .lh .start .notice { display: block; text-align: center; }

/* ---------- Simple pages (unsubscribe, not found, notices) ---------- */
.lh .nf {
  min-height: clamp(480px, 70vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--gutter) 80px;
}
.lh .nf h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; text-wrap: balance; }
.lh .nf .note { margin: 22px 0 30px; max-width: 30em; font-size: 1.2rem; line-height: 1.7; text-wrap: pretty; }

/* ---------- One alert's own page ---------- */
.lh .one { max-width: var(--narrow-max); margin: 0 auto; padding: 48px var(--gutter) 0; }
.lh .one h1 { margin: 0; font-size: 2rem; line-height: 1.45; letter-spacing: -0.01em; text-wrap: balance; }
.lh .one .date { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--mute-text); }
.lh .one .txt p { margin: 22px 0 0; font-size: 1.2rem; line-height: 1.7; text-wrap: pretty; }
.lh .one .facts { margin: 30px 0 0; }
.lh .one .btns { justify-content: flex-start; margin-top: 30px; }
.lh .one .facts .kick { display: block; margin: 0 0 4px; }
.lh .one .share { margin: 30px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute-text); }

/* ---------- Admin pages: tables in the kit ---------- */
.lh .adm { max-width: var(--page-max); margin: 0 auto; padding: 24px var(--gutter) 80px; }
.lh .adm h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; }
.lh .adm h2 { margin: 48px 0 0; font-size: 3rem; line-height: 1.2; }
.lh .adm p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.lh .adm .scroll { overflow-x: auto; margin-top: 18px; }
.lh .adm table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.lh .adm th { text-align: left; font-weight: 400; font-style: italic; color: var(--mute-text); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lh .adm td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: top; }
.lh .adm a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); overflow-wrap: anywhere; }
.lh .adm .bad { color: var(--danger); }
.lh .adm .warn, .lh .adm .ok { color: var(--ink2); }
.lh .adm .whoami { text-align: left; }
.lh .adm .lbl { font-size: 12px; line-height: 1.55; color: var(--mute-text); }
.lh .adm .rows { margin-top: 18px; }
.lh .adm .rows .sub i { color: var(--ink); }
.lh .adm .mono { font-family: var(--serif); }
.lh .adm p a { color: var(--ink); font-style: italic; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }

/* ---------- Footer ---------- */
.lh .foot {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-stage) var(--gutter) 40px;
  color: var(--mute-text);
  font-size: 14px;
  line-height: 1.6;
}
.lh .foot .disc { margin: 0 auto; max-width: 62em; text-align: center; }
.lh .foot .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 40px;
}
.lh .foot .row p { margin: 0; }
.lh .foot nav { display: flex; gap: 24px; }
.lh .foot a { color: var(--mute-text); text-decoration: none; }
.lh .foot a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@keyframes lh-rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes lh-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lh.lh-anim [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-rise), transform var(--dur-reveal) var(--ease-rise); }
.lh.lh-anim [data-rv].in { opacity: 1; transform: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 767.98px) {
  .lh .sec h2, .lh .adm h2 { font-size: 2rem; }
  .lh .one h1 { font-size: 1.5rem; }
  .lh .link { font-size: 16px; }
}
@media (max-width: 639.98px) {
  .lh .one h1 { font-size: 1.3rem; }
}
@media (max-width: 479.98px) {
  .lh .sec h2, .lh .adm h2 { font-size: 1.75rem; }
  .lh .hero { padding-bottom: 40px; }
}

/* ---------- Reduced motion and print: everything in its final state ---------- */
@media (prefers-reduced-motion: reduce), print {
  .lh *, .lh *::before, .lh *::after { animation: none !important; transition: none !important; }
  .lh.lh-anim [data-rv] { opacity: 1; transform: none; }
}
@media print {
  .lh .top .topnav, .lh .start, .lh .ask, .lh .open-all > summary, .lh .acts, .lh .search { display: none !important; }
  .lh details > *:not(summary) { display: block !important; }
  .lh details::details-content { content-visibility: visible; display: block; }
}
