/* The company's facts, set the way a milk carton sets its nutrition label,
   over pastramidog's drifting cow spots (spots.js, the same file). */

@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* pastramidog's plain theme; spots.js reads --mid and --dark */
  --base: rgb(229, 229, 253);
  --mid: rgb(205, 210, 242);
  --dark: rgb(178, 190, 234);  /* softer than pastramidog's rgb(150, 165, 215) */
  --darker: rgb(24, 37, 79);
  --milk: #ffffff;
  --ink: #000000;
  --rule-thick: 10px;
  --rule-medium: 5px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 6vw, 72px) 16px;
  background: var(--base);
  color: var(--ink);
  font-family: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

p,
dl,
dd {
  margin: 0;
}

#spots {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;  /* a finger drag stirs the spots instead of panning */
}

.label {
  position: relative;  /* above the spots */
  width: min(100%, 25rem);
  padding: 0.5rem 0.75rem 0.75rem;
  background: var(--milk);
  border: 1px solid var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 14vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sub {
  padding-bottom: 0.3rem;
  border-bottom: var(--rule-thick) solid var(--ink);
}

.headline {
  padding: 0.35rem 0 0.4rem;
  border-bottom: var(--rule-medium) solid var(--ink);
}

.headline-term {
  font-size: 0.875rem;
  font-weight: 800;
}

.headline-value {
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--ink);
}

.facts > div:last-child {
  border-bottom: var(--rule-thick) solid var(--ink);
}

dt {
  flex: none;
  font-weight: 800;
}

dd {
  text-align: right;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--darker);
  outline-offset: 2px;
}

.fine {
  padding-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}
