/* The plain pages. referrals.html, about.html, terms.html.
   ONE stylesheet for all three, importing tokens.css rather than restating it.
   terms.html previously carried its own :root block, which is a hand-maintained
   copy of a file that already exists. A token restated in three places is three
   tokens, and they drift. */

@import url('tokens.css');

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.18rem;
  line-height: 1.66;
  letter-spacing: .004em;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lava); color: var(--ground); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--lava); outline-offset: 2px; }

.wrap { max-width: 41rem; margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 7rem; }

/* the persistent top line, same two words as the world's nav */
.top { display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--meta); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 2.6rem; }
.top a { color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--lava); padding-bottom: 2px; }

/* Display is lava, body is bone. Lava is 5.87:1 on ground, AA at large sizes
   only, so it is the display voice and never body. */
h1 { font-family: var(--display); text-transform: uppercase; color: var(--lava);
  font-size: clamp(2.5rem, 7.6vw, 4.2rem); line-height: .98;
  letter-spacing: -.02em; margin: 0 0 1.6rem; }
h2 { font-family: var(--display); text-transform: uppercase; color: var(--lava);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem); line-height: 1.04;
  letter-spacing: -.014em; margin: 3.4rem 0 1rem; }
h3 { font-family: var(--display); text-transform: uppercase; color: var(--ink);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.1;
  letter-spacing: -.01em; margin: 2.2rem 0 .5rem; }
p { margin: 0 0 1.1rem; }

.lead { font-size: 1.38rem; line-height: 1.5; color: var(--bone-200); margin-bottom: 2.2rem; }
.soft { color: var(--muted); }
.meta { font-family: var(--meta); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }

/* A highlight is a lava field with ink in --ground. Bone on lava is 2.9:1. */
.hl { background: var(--lava); color: var(--ground);
  font-family: var(--display); text-transform: uppercase; letter-spacing: -.012em;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.1;
  padding: .34em .46em .4em; display: inline-block; margin: .6rem 0 1.4rem; }

/* The one radius is zero, and nothing gets a box drawn around it, so a list
   is marked with a rule rather than a border. brand-system-v2.md s8. */
ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
ul li { border-top: 1px solid var(--rule); padding: .8rem 0 .8rem 1.5rem;
  position: relative; }
ul li::before { content: ''; position: absolute; left: 0; top: 1.5rem;
  width: 8px; height: 2px; background: var(--lava); }
ul li strong { color: var(--ink); }

/* the terms table */
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem;
  font-size: 1.02rem; }
th, td { text-align: left; padding: .7rem 1rem .7rem 0;
  border-top: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--meta); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; }
td.num { font-family: var(--meta); color: var(--lava-300); }

/* The honest note. Amber is the state that needs a human to look, which is
   exactly what an untested claim is. */
.note { border-left: 2px solid var(--amber-shade); padding: .2rem 0 .2rem 1.2rem;
  color: var(--amber); font-family: var(--meta); font-size: .86rem;
  line-height: 1.55; margin: 1.6rem 0 2rem; }

/* the two ways in, side by side */
.ways { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1.4rem 0 2rem; }
.way { border-top: 1px solid var(--rule); padding: 1.3rem 0 1.4rem; }
.way h3 { margin-top: 0; }
.way .act { font-family: var(--meta); font-size: .92rem; letter-spacing: .06em;
  color: var(--lava); text-decoration: none;
  border-bottom: 1px solid var(--lava); padding-bottom: 2px; }

.foot { margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 1.4rem;
  font-family: var(--meta); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.foot a { color: var(--muted); }

@media (min-width: 46rem) { .wrap { max-width: 44rem; } }
