/* entirely.health. One stylesheet and four typeface files, all served from this site. */
@font-face { font-family: "Lora"; src: url("/fonts/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --indigo: #1C2541;
  --indigo-deep: #131A31;
  --indigo-soft: #C3CBDD;
  --indigo-line: #36415F;
  --indigo-bar: #8490B4;
  --amber: #E9B872;
  --amber-ink: #7A4A0B;
  --paper: #F6F4F0;
  --paper-deep: #ECE8E1;
  --ink: #1A2238;
  --ink-soft: #545C6E;
  --line: #D9D4CA;
  --serif: "Lora", ui-serif, "New York", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --edge: clamp(1.25rem, 5vw, 3rem);
  --band: clamp(4rem, 9vw, 8rem);
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--edge); }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: var(--edge); top: 0.75rem; background: var(--paper); color: var(--ink); padding: 0.4rem 0.7rem; z-index: 2; }

/* The bar across the top. */
.top { max-width: 72rem; margin: 0 auto; padding: 1.5rem var(--edge); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font: 500 1.3rem/1 var(--serif); letter-spacing: -0.01em; }
.mark { width: 1.9rem; height: 1.9rem; stroke: var(--ink); }
.mark .lit { stroke: #C98A2B; }
.top nav { display: flex; gap: 1.75rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Home: the top of the page is the app's indigo, lit from behind the ring. */
.home { background: var(--indigo); }
.home main, .home .foot { background: var(--paper); }
.home .top { position: relative; z-index: 1; color: #fff; }
.home .top nav a { color: var(--indigo-soft); }
.home .top nav a:hover { color: #fff; }
.home .mark { stroke: var(--indigo-soft); }
.home .mark .lit, .ring .lit { stroke: var(--amber); }

.hero {
  color: #fff; margin-top: -5rem; padding: 5rem 0 0; overflow: hidden;
  background:
    radial-gradient(38rem 38rem at 78% 46%, rgba(120, 138, 196, 0.34), rgba(120, 138, 196, 0) 70%),
    radial-gradient(22rem 22rem at 86% 30%, rgba(233, 184, 114, 0.14), rgba(233, 184, 114, 0) 70%),
    linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: min(46rem, 88vh); padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.06; }
.lede { margin-top: 1.75rem; max-width: 33rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--indigo-soft); }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.25rem; padding: 0.5rem 1rem 0.5rem 0.85rem; border: 1px solid var(--indigo-line); border-radius: 999px; font-size: 0.9rem; color: var(--indigo-soft); }
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber); }
.hero-art { display: flex; justify-content: center; }
.ring { width: min(100%, 27rem); height: auto; stroke: var(--indigo-bar); }

/* The ring fills in once, bar by bar, the way a fortnight of logging would. */
@media (prefers-reduced-motion: no-preference) {
  .ring .bar { opacity: 0; animation: fill 0.6s ease-out forwards; }
  .ring .bar:nth-child(1) { animation-delay: 0.15s; }
  .ring .bar:nth-child(2) { animation-delay: 0.23s; }
  .ring .bar:nth-child(3) { animation-delay: 0.31s; }
  .ring .bar:nth-child(4) { animation-delay: 0.39s; }
  .ring .bar:nth-child(5) { animation-delay: 0.47s; }
  .ring .bar:nth-child(6) { animation-delay: 0.55s; }
  .ring .bar:nth-child(7) { animation-delay: 0.63s; }
  .ring .bar:nth-child(8) { animation-delay: 0.71s; }
  .ring .bar:nth-child(9) { animation-delay: 0.79s; }
  .ring .bar:nth-child(10) { animation-delay: 0.87s; }
  .ring .bar:nth-child(11) { animation-delay: 0.95s; }
  .ring .bar:nth-child(12) { animation-delay: 1.03s; }
  .ring .bar:nth-child(13) { animation-delay: 1.11s; }
  .ring .bar:nth-child(14) { animation-delay: 1.4s; }
  @keyframes fill { to { opacity: 1; } }
}

/* Bands down the page. */
.band { padding: var(--band) 0 0; }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; max-width: 22ch; }
.band .sub { margin-top: 1.25rem; max-width: var(--measure); color: var(--ink-soft); }

.statement p { font: 400 clamp(1.5rem, 2.9vw, 2.35rem)/1.32 var(--serif); letter-spacing: -0.01em; max-width: 30ch; text-wrap: pretty; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.trio > div { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.trio h3 { font: 600 1.05rem/1.35 var(--sans); }
.trio p { margin-top: 0.6rem; color: var(--ink-soft); }

/* Life stages, set as an index. */
.stages { margin-top: var(--band); padding: var(--band) 0; background: var(--indigo); color: #fff; }
.stages .sub { color: var(--indigo-soft); }
.stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.stage-list li { font: 400 clamp(1.35rem, 2.4vw, 1.9rem)/1.2 var(--serif); padding: 1.05rem 0; border-top: 1px solid var(--indigo-line); }

/* What makes it different: a term and what it means in practice. */
.diff { margin-top: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.diff > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.5rem clamp(1.5rem, 5vw, 5rem); padding: 1.5rem 0; border-top: 1px solid var(--line); }
.diff dt { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.25 var(--serif); }
.diff dd { color: var(--ink-soft); max-width: var(--measure); }

/* Where information goes: a long column and a short one. */
.columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--ink); }
.col { padding: 1.5rem 0 1.75rem; }
.col + .col { padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid var(--line); }
.col:first-child { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.col h3 { font: 600 0.95rem/1.3 var(--sans); color: var(--ink-soft); margin-bottom: 0.9rem; }
.col li { font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.35 var(--serif); }
.col li + li { margin-top: 0.7rem; }
.ledger .sub { margin-top: 0.5rem; }

.price { padding-bottom: var(--band); }
.price h2 { max-width: none; }

/* Documents. */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--edge) clamp(3rem, 8vw, 6rem); overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }
.doc h2 { font: 500 1.4rem/1.3 var(--serif); letter-spacing: -0.005em; margin-top: 2.75rem; }
.doc p, .doc ul { margin-top: 1rem; }
.doc ul { list-style: disc; padding-left: 1.2rem; }
.doc li + li { margin-top: 0.45rem; }
.doc .meta { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.95rem; }
.doc .note { color: var(--amber-ink); font-size: 0.95rem; }

/* The foot bookends the page in indigo. */
.foot, .home .foot { background: var(--indigo-deep); color: var(--indigo-soft); font-size: 0.95rem; }
.foot-in { max-width: 72rem; margin: 0 auto; padding: 3rem var(--edge) 3.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 3rem; align-items: center; }
.foot .brand { color: #fff; }
.foot .mark { stroke: var(--indigo-soft); }
.foot .mark .lit { stroke: var(--amber); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: flex-end; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: #fff; text-decoration: underline; }
.foot p { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--indigo-line); font-size: 0.875rem; }

@media (max-width: 52rem) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; justify-content: flex-start; }
  .ring { width: 9.5rem; }
  .trio, .stage-list, .columns { grid-template-columns: 1fr; }
  .diff > div { grid-template-columns: 1fr; }
  .col + .col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .col:first-child { padding-right: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .foot ul { justify-content: flex-start; }
}
