/* Hairline site: black ground, white 1px lines, thin geometric type, lots of empty space. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ececec;
  --dim: #8c8c8c;
  --line: #3a3a3a;
  --line-strong: #ffffff;
  --display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 24px;
  padding-block: 28px 72px;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--line-strong); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 4px;
}

/* top navigation */
nav.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
nav.top a {
  border: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
}
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); }
nav.top a[aria-current="page"] { border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
nav.top ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }

/* headings */
h1, h2 {
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0;
}
h1 { font-size: 22px; padding-block: 56px 8px; }
h2 { font-size: 13px; color: var(--dim); font-weight: 400; padding-block: 64px 16px; }

p { margin: 0 0 1em; max-width: 34em; }
.muted { color: var(--dim); }

/* home */
.mark {
  padding-block: 56px 16px;
  text-align: center;
}
.mark img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.tagline {
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: none;
  padding-block: 8px 24px;
}

/* index rows: name on the left, note on the right, hairline between */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); }
.rows a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding-block: 20px;
  border: 0;
}
.rows .name { font-weight: 200; font-size: 22px; letter-spacing: 0.3em; text-transform: uppercase; }
.rows .note { color: var(--dim); font-size: 15px; }
.rows a:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* audio player */
.player { padding-block: 24px 8px; }
.now { display: flex; align-items: center; gap: 20px; }
.circle {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.circle:hover { background: #111; }
.circle svg { width: 18px; height: 18px; fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.meta { flex: 1; min-width: 0; }
.np-title { font-size: 22px; font-weight: 200; letter-spacing: 0.12em; overflow-wrap: anywhere; }
.status { color: var(--dim); font-size: 14px; min-height: 1.5em; }
.time { flex: none; color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 20px;
  margin: 24px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px; margin-top: -5px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg);
}
input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg);
}

ol.tracks { list-style: none; margin: 40px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
ol.tracks li { border-top: 1px solid var(--line); }
ol.tracks button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 16px;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
ol.tracks button::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border: 1px solid var(--dim);
  border-radius: 50%;
}
ol.tracks button:hover { color: var(--ink); }
ol.tracks button:hover::before { border-color: var(--ink); }
ol.tracks li.active button { color: var(--ink); }
ol.tracks li.active button::before { background: var(--ink); border-color: var(--ink); }
ol.tracks button:focus-visible { outline: 1px solid var(--line-strong); outline-offset: 4px; }

/* empty pages */
.empty { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 32px; margin-top: 24px; }
.empty p { margin: 0; color: var(--dim); }

footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 18px; letter-spacing: 0.3em; }
  .now { flex-wrap: wrap; }
  .time { margin-left: 72px; }
  .rows .name { font-size: 19px; }
}

/* epigraph: a quoted passage set apart, with the source credited underneath */
.epigraph {
  margin: 56px auto 0;
  max-width: 30em;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}
.epigraph blockquote { margin: 0; }
.epigraph blockquote p {
  margin: 0;
  max-width: none;
  font-weight: 200;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.epigraph figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.epigraph figcaption::before { content: "\2014\00a0"; }
.reply {
  margin: 40px auto 0;
  max-width: 30em;
  padding-left: 28px;
  font-weight: 200;
  font-size: 24px;
  letter-spacing: 0.08em;
}
.more { margin: 56px auto 0; max-width: 30em; padding-left: 28px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.more a { color: var(--dim); }
.more a:hover { color: var(--ink); }
figure { margin: 0; }

/* home page title: large, thin, widely spaced */
.mark h1.title {
  font-size: clamp(30px, 9vw, 56px);
  font-weight: 200;
  letter-spacing: 0.5em;
  padding: 24px 0 8px 0.5em; /* left padding offsets the trailing letter-spacing so it centers */
  text-align: center;
}

/* about page degrees */
.degrees { margin-top: 48px; font-size: 15px; line-height: 1.9; }

/* footer link */
footer a { text-transform: none; letter-spacing: 0.1em; color: var(--dim); }
footer a:hover { color: var(--ink); }