/* BrassPause public site. One stylesheet, no scripts, no webfonts, nothing
   third party. A privacy page that fetches a font from another company in
   order to say it collects nothing is a page that hands the reader's address
   to that company. So: system fonts only, everything served from Pages.

   The visual idea is a lit music stand in a dark practice room. Charcoal-navy
   ground, one warm brass rule running down the left of the page like the lip
   of a stand, ivory type. Prose is set in the system serif, the way printed
   studies are; every duration is mono with tabular figures, so 00:37 has the
   same width wherever it appears. There is no sans-serif on this site.

   Deliberately unlike the sibling GlazeTag site, which is light paper, sans
   body text and cobalt. Different app, different room. */

:root {
  --ground:      #14171c;
  --ground-deep: #0f1216;
  --panel:       #1b1f26;
  --panel-lit:   #222732;

  --ivory:       #f4efe4;
  --ivory-soft:  #ccc6b8;
  --muted:       #8e8878;

  --brass:       #c89b48;
  --brass-lit:   #e0b869;
  --brass-deep:  #8a6a2c;
  --brass-wash:  #241d0f;

  --rest:        #7fa3a8;   /* the cool counterpart to brass, used only for rest */
  --rule:        #2b3138;
  --rule-soft:   #232830;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 38rem;
}

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

body {
  margin: 0;
  font: 17px/1.7 var(--serif);
  color: var(--ivory);
  background: var(--ground);
  /* One low glow behind the top of the page: a stand light, not a gradient
     for its own sake. */
  background-image: radial-gradient(60rem 22rem at 12% -6rem, #1f242d 0%, var(--ground) 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* The stand lip: a brass hairline down the left edge of the content column on
   wide screens. Purely decorative, and it disappears rather than crowding a
   phone. */
@media (min-width: 46rem) {
  .wrap { padding-left: 2.6rem; }
  /* One tick only, at the top of the content column. */
  main > .wrap:first-child::before {
    content: "";
    position: absolute;
    left: max(1.4rem, calc(50% - var(--measure) / 2 + 1.1rem));
    width: 2px;
    height: 3.2rem;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, var(--brass) 0%, var(--brass-deep) 100%);
  }
}

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #17130a;
  padding: 0.6rem 1rem;
  z-index: 10;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brass-lit);
  outline-offset: 3px;
}

/* ---------- header ---------- */

header.site { padding: 2.2rem 0 0; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ivory);
}
.wordmark b {
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.005em;
}
.wordmark span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

nav.site {
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
nav.site a {
  display: inline-block;
  padding: 0.85rem 0;
  color: var(--ivory-soft);
  text-decoration: none;
  margin-right: 1.5rem;
}
nav.site a:hover { color: var(--brass-lit); }
nav.site a[aria-current="page"] {
  color: var(--brass);
  box-shadow: inset 0 -1px 0 var(--brass-deep);
}

/* ---------- headings and prose ---------- */

main { padding: 2.4rem 0 0; }

h1 {
  font-size: clamp(1.85rem, 6.2vw, 2.55rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.002em;
  margin: 2.9rem 0 0.35rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
}
h2:first-of-type { margin-top: 2.4rem; }

h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 1.7rem 0 0.3rem;
}

p { margin: 0.75rem 0; }
p.lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ivory);
}
p.note { color: var(--ivory-soft); font-size: 0.95rem; }

a { color: var(--brass-lit); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brass); }

ul { margin: 0.7rem 0; padding-left: 1.15rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--brass-deep); }

strong { font-weight: 600; }
code, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  color: var(--ivory);
}

/* ---------- status ---------- */

.status {
  display: inline-block;
  margin: 0.4rem 0 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--brass-deep);
  background: var(--brass-wash);
  color: var(--brass-lit);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- the loop, set as text ---------- */

.loop {
  margin: 1.3rem 0 0.6rem;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.loop .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.loop .row:last-child { border-bottom: 0; }
.loop .phase {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-width: 5.2rem;
}
.loop .row.play  .phase { color: var(--brass); }
.loop .row.rest  .phase { color: var(--rest); }
.loop .row.you   .phase { color: var(--muted); }
.loop .what { flex: 1 1 15rem; color: var(--ivory-soft); font-size: 0.97rem; }
.loop .t {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
  color: var(--ivory);
}
.caption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

@media (max-width: 34rem) {
  .loop .row { display: block; }
  .loop .phase { display: block; margin-bottom: 0.3rem; }
  .loop .what { display: block; }
  .loop .t { display: block; margin-top: 0.45rem; }
}

/* ---------- fact rows ---------- */

dl.facts {
  margin: 1rem 0 0;
  border-top: 1px solid var(--rule-soft);
}
dl.facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
dl.facts dt {
  flex: 0 0 9.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.22rem;
}
dl.facts dd { flex: 1 1 16rem; margin: 0; color: var(--ivory-soft); }

/* ---------- support question blocks ---------- */

.q { margin: 1.9rem 0 0; }
.q > h3 { margin-top: 0; }

.mail {
  font-family: var(--mono);
  font-size: 1rem;
  word-break: break-all;
}

/* ---------- footer ---------- */

footer.site {
  margin: 4rem 0 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  background: var(--ground-deep);
}
footer.site p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site a { color: var(--ivory-soft); }
footer.site .links {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
footer.site .links a {
  display: inline-block;
  padding: 0.7rem 0;
  margin-right: 1.4rem;
  text-decoration: none;
}
footer.site .links a:hover { color: var(--brass-lit); }
