:root {
  --bg: #e6e6e6;
  --ink: #111;
  --muted: #444;
  --rule: #c4c4c4;
  --h1-size: clamp(2.4rem, 4.6vw, 6rem);
  --gutter: clamp(1.5rem, 4vw, 5rem);
  --max: 1680px;
  --measure: 62ch;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; }

/* one centered column so edges line up */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: clamp(0.85rem, 0.75vw, 1rem);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; white-space: nowrap; }
.brand img { width: 1.6em; height: 1.6em; }
nav.site { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

h1, h2, .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
h1 { font-size: var(--h1-size); }
h2 { font-size: clamp(1.3rem, 1.8vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 500; }

/* home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 5rem;
}
.hero p {
  margin-top: 1.75rem;
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9em 1.2em;
  background: var(--ink);
  color: #eee;
  font-size: clamp(0.8rem, 0.85vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 626 / 417;
  margin-top: calc(var(--h1-size) * 0.2);
  background: #000;
}

/* sections */
section.band { border-top: 1px solid var(--rule); padding-top: 3rem; padding-bottom: 4rem; }
.label { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.habits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.habits h3 { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 400; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 0.6rem; }
.habits p { color: var(--muted); max-width: 40ch; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.5rem); max-width: 48ch; }
.more { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; }

/* long-form pages */
.page { padding-top: 2.5rem; padding-bottom: 5rem; }
.page h1 { font-size: clamp(2rem, 4vw, 4.5rem); margin-bottom: 2.5rem; }
.prose { max-width: var(--measure); font-size: clamp(1rem, 1.05vw, 1.15rem); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 1rem; }
.prose .short { font-size: clamp(1.1rem, 1.4vw, 1.5rem); line-height: 1.5; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }

/* principles */
.toc { list-style: none; columns: 2; column-gap: var(--gutter); margin-bottom: 3.5rem; max-width: var(--measure); font-size: 0.95rem; }
.toc li { break-inside: avoid; padding: 0.2rem 0; }
article.principle { border-top: 1px solid var(--rule); padding-top: 2.25rem; margin-top: 2.25rem; scroll-margin-top: 1rem; }
article.principle h2 { margin-top: 0; }
.rule { margin-top: 1.25rem; font-weight: 500; }
blockquote {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95em;
}

footer.site { padding-top: 1rem; padding-bottom: 1rem; font-size: 0.75rem; color: var(--muted); margin-top: auto; }

@media (max-width: 760px) {
  :root { --gutter: 1rem; }
  header.site { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav.site { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 1rem; padding-bottom: 3rem; }
  .hero .art { margin: 2.5rem 0 0; }
  .habits { grid-template-columns: 1fr; gap: 1.75rem; }
  .toc { columns: 1; }
}
