/* Home page: single column, figure block, statement, signature row. */
:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wordmark: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --paper: #FCFBF7;
  --ink: #0A0A0A;
  --cyan: #0099C9;
  --cyan-press: #0085AF;
  --orange: #E56300;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html, body { height: 100%; }
main.col {
  max-width: 760px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  padding: 14px 20px 28px;
  display: flex; flex-direction: column; gap: 13px;
}
#figwrap {
  flex: 1 1 0; min-height: 200px;
  background: var(--cyan);
  display: flex; justify-content: center;
  overflow: hidden;
}
#fig { height: 100%; display: flex; justify-content: center; }
#fig svg { height: 100%; width: auto; max-width: 100%; display: block; }
svg text { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* text block */
.blurb { flex-shrink: 0; padding-top: 10px; }
.blurb h1 {
  font-family: var(--font-sans); font-size: 1.7rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
  margin: 0 0 14px;
}
.blurb h1 .dot {
  display: inline-block; width: 0.42em; height: 0.42em;
  background: var(--cyan); overflow: hidden; color: transparent;
  margin-left: 0.14em; position: relative; top: -0.02em;
}
.blurb .lede { font-weight: 600; color: var(--ink); }
.blurb p { margin: 0 0 12px; color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.readmore { display: flex; align-items: center; margin-top: 12px; text-decoration: none; }
.readmore .bar-label {
  display: inline-block; padding: 9px 18px;
  background: var(--cyan); color: var(--paper);
  border: 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.readmore .bar-line { flex: 1; height: 1.5px; background: var(--cyan); }
.readmore:hover .bar-label { background: var(--cyan-press); }

/* signature row */
.brand-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  flex-shrink: 0;
}
.brand-row .logo {
  font-family: var(--font-wordmark); font-weight: 700; font-size: 4rem;
  line-height: 1.2; color: var(--ink); text-decoration: none;
}
.brand-row .logo { line-height: 1; }
.brand-row nav { display: flex; align-items: baseline; gap: 20px; }
.brand-row nav a.txt { line-height: 1; }
.brand-row nav a.txt {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand-row nav a.txt:hover { color: var(--cyan); }
.brand-row nav a.ico { display: inline-flex; align-items: baseline; color: var(--ink); }
.brand-row nav a.ico svg { display: block; position: relative; top: 3px; }
.brand-row nav a.ico:hover { color: var(--cyan); }
.brand-row nav svg { width: 18px; height: 18px; }

/* tooltip */
.tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--paper); border: 2px solid var(--ink);
  padding: 7px 10px; font-family: var(--font-mono); font-size: 11px;
  line-height: 1.6; color: var(--ink); max-width: 240px; display: none;
}
.tip .v { font-weight: 600; margin-bottom: 2px; }
.tip .k { display: inline-block; width: 12px; border-top: 3px solid; margin-right: 6px; vertical-align: middle; }

@media (max-height: 830px) { main.col { max-width: 880px; } }
@media (max-height: 730px) { main.col { max-width: 1000px; } }
@media (max-width: 640px) { .brand-row { flex-direction: column; align-items: flex-start; } }

/* phone */
@media (max-width: 640px) {
  html, body { height: auto; }
  main.col { height: auto; min-height: 100vh; min-height: 100dvh; padding: 12px 16px; gap: 16px; }
  body { overflow-x: hidden; }
  main.col { max-width: 100%; }
  #figwrap { flex: none; min-height: 0; display: block; }
  #fig { display: block; height: auto; width: 100%; }
  #fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
  .blurb h1 { font-size: 1.6rem; }
}

/* wordmark lockup: mark on the baseline at the cap height of the T */
.site-header .wordmark, .brand-row .logo { display: inline-flex; align-items: baseline; letter-spacing: -0.01em; }
.site-header .wordmark .qed, .brand-row .logo .qed { display: block; height: 0.745em; width: 0.745em; margin-left: 0.09em; flex-shrink: 0; }

/* inline onward link */
.blurb .inline-more { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 4px; }
.blurb .inline-more span { text-decoration: none; display: inline-block; margin-left: 2px; }
.blurb .inline-more:hover { color: var(--cyan-press); }
.brand-row { padding-top: 6px; }

.blurb h1 .nowrap { white-space: nowrap; }
.blurb h1 { text-wrap: balance; }
