/* Barometra on the web — the app's own language, not a generic document theme.
 *
 * The page is a sky: the same four-stop gradient the app paints behind every
 * screen (skyGradients.calm in src/theme/tokens.ts), fixed so it behaves like
 * a horizon rather than scrolling wallpaper. The text sits on one floating
 * glass sheet, the way every card in the app does.
 *
 * No webfonts on purpose. A site whose whole subject is "nothing about you
 * leaves the device" should not phone a font CDN to render that sentence, so
 * the stack leans on ui-rounded — SF Pro Rounded on Apple platforms, which is
 * the closest system answer to the app's Nunito.
 */

:root {
  --ink: #2e3450;
  --ink-soft: rgba(46, 52, 80, 0.74);
  --ink-faint: rgba(46, 52, 80, 0.5);
  --periwinkle: #5b6ba8;
  --plum-deep: #6e4258;

  --sheet: rgba(255, 255, 255, 0.78);
  --sheet-border: rgba(255, 255, 255, 0.8);
  --rule: rgba(46, 52, 80, 0.12);
  --inset: rgba(46, 52, 80, 0.05);

  /* skyGradients.calm, at skyLocations.calm */
  --sky: linear-gradient(178deg, #7e90ca 0%, #a9b7e2 30%, #dccbd1 62%, #f6e3c2 94%);
  --on-sky: #ffffff;
  --on-sky-soft: rgba(255, 255, 255, 0.82);
  --sky-shadow: 0 1px 12px rgba(46, 52, 80, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edeffb;
    --ink-soft: rgba(237, 239, 251, 0.76);
    --ink-faint: rgba(237, 239, 251, 0.52);
    --periwinkle: #a8b6ea;
    --plum-deep: #c79bb0;

    --sheet: rgba(30, 34, 54, 0.72);
    --sheet-border: rgba(255, 255, 255, 0.14);
    --rule: rgba(237, 239, 251, 0.14);
    --inset: rgba(255, 255, 255, 0.05);

    /* skyGradients.severe — the same horizon, after dark */
    --sky: linear-gradient(178deg, #272e48 0%, #3e4870 44%, #5d5876 76%, #7e6478 100%);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 20px 72px;
  min-height: 100vh;
  background: var(--sky) fixed;
  background-color: #a9b7e2; /* the sky's mid-tone, behind any overscroll */
  color: var(--ink);
  font-family: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #3e4870;
  }
}

.wrap {
  max-width: 660px;
  margin: 0 auto;
}

/* -- The masthead, written on the sky itself ---------------------------- */

header.site {
  padding: 56px 4px 30px;
}

header.site a.home {
  display: inline-block;
  color: var(--on-sky);
  text-shadow: var(--sky-shadow);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

header.site nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

header.site nav a {
  padding: 7px 15px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--on-sky);
  text-shadow: var(--sky-shadow);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

header.site nav a:hover {
  background: rgba(255, 255, 255, 0.34);
}

/* -- One glass sheet, the way every card in the app is built ------------ */

main,
.sheet {
  display: block;
  background: var(--sheet);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--sheet-border);
  border-radius: 22px;
  padding: 38px 34px 34px;
  box-shadow: 0 18px 44px rgba(46, 52, 80, 0.16);
}

@media (max-width: 560px) {
  main,
  .sheet {
    padding: 28px 22px 26px;
    border-radius: 18px;
  }

  header.site {
    padding-top: 40px;
  }
}

/* -- Type ---------------------------------------------------------------- */

h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 8px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 4px;
}

p {
  margin: 0 0 16px;
}

.updated {
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 30px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

a {
  color: var(--periwinkle);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

strong {
  font-weight: 700;
}

ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

li {
  margin: 7px 0;
  color: var(--ink-soft);
}

li::marker {
  color: var(--ink-faint);
}

/* -- The quiet inset card, for the one thing worth pausing on ----------- */

.card {
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 26px 0;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

/* -- What leaves the phone, as a table ---------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 15.5px;
}

.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
}

td {
  color: var(--ink-soft);
}

th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  padding-top: 0;
}

tr:last-child td {
  border-bottom: none;
}

/* -- Foot ---------------------------------------------------------------- */

footer.site {
  margin: 26px 4px 0;
  color: var(--on-sky-soft);
  text-shadow: var(--sky-shadow);
  font-size: 14px;
  text-align: center;
}

footer.site a {
  color: var(--on-sky-soft);
}
