/* jupitergray.com
   The page is banded like the planet: sections are pale zones, and the
   dividers between them are belts of uneven width. Every color is a gray
   taken from the avatar's own ramp; the Great Red Spot inside the avatar
   is the only color on the page. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-v7.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --zone: #e7e5e1;
  --zone-2: #d9d6d0;
  --belt: #9b9790;
  --belt-deep: #4d4a46;
  --ink: #2a2825;
  --ink-soft: #57534d;
  --on-deep: #ece9e4;
  --on-deep-soft: #c7c2ba;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 7vw, 7rem);
  --space: clamp(3rem, 7vw, 5.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --zone: #2b2926;
    --zone-2: #33312d;
    --belt: #5f5b55;
    --belt-deep: #1d1c1a;
    --ink: #e7e5e1;
    --ink-soft: #b3aea6;
    --on-deep: #e7e5e1;
    --on-deep-soft: #a9a49c;
    color-scheme: dark;
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--zone);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--zone);
}

.skip:focus {
  top: 1rem;
}

/* ---- the hero: the name, set large, and the planet ---- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 12px solid var(--belt);
  overflow: hidden;
}

.hero__planet {
  order: -1;
  width: clamp(12rem, 52vw, 15rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 17vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 28rem;
  margin: 1.25rem 0 0;
  font-size: 1.3125rem;
  line-height: 1.45;
}

@media (min-width: 48em) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }

  /* Beside the planet the name gets a narrower column, so it scales more slowly;
     at 17vw it ran under the planet from 768px to about 890px. */
  .hero h1 {
    font-size: clamp(4rem, 13vw, 9rem);
  }

  .hero__planet {
    order: 0;
    width: clamp(16rem, 30vw, 22.5rem);
    margin-bottom: -0.5rem;
  }
}

/* ---- the bands ---- */

.band {
  padding: var(--space) var(--gutter);
}

.band > *,
.band__body {
  max-width: var(--measure);
}

/* Wide screens: the heading takes a column of its own, the text sits beside it. */
@media (min-width: 64em) {
  .band--split {
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, var(--measure));
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

  .band--split > h2 {
    margin-bottom: 0;
  }
}

.band--alt {
  background: var(--zone-2);
}

.band--deep {
  background: var(--belt-deep);
  color: var(--on-deep);
}

.belt-thin {
  border-top: 5px solid var(--belt);
}

.belt-mid {
  border-top: 9px solid var(--belt);
}

.belt-hair {
  border-top: 3px solid var(--belt);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

/* How I work: each principle is a sentence, then its reason. */
.principles {
  margin: 0;
}

.principles dt {
  font-weight: 700;
}

.principles dd {
  margin: 0.25rem 0 1.5rem;
  color: var(--ink-soft);
}

.principles dd:last-child {
  margin-bottom: 0;
}

/* The labs: a name and an address per row. */
.labs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.labs li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent);
}

.labs li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent);
}

.labs__name {
  font-weight: 700;
}

.band--deep p {
  color: var(--on-deep-soft);
}

/* The standard: plain sentences, a gray rule at the left of each. */
.standard {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.standard li {
  padding: 0.15rem 0 0.15rem 1rem;
  margin-bottom: 0.9rem;
  border-left: 3px solid var(--belt);
}

.standard li:last-child {
  margin-bottom: 0;
}

/* ---- the footer: the deepest belt ---- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem var(--gutter);
  background: var(--belt-deep);
  color: var(--on-deep);
  font-size: 1rem;
}

.foot p {
  margin: 0;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- inner pages: privacy, not found ---- */

.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-bottom: 7px solid var(--belt);
}

.page-head a {
  font-weight: 700;
}

.page-head h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
