/* Shared styling for the two public documents JMI Backstage links to:
   the privacy policy and the support page. Paper and brass, the same tokens
   and type pair as jonesmusicalinstruments.com, set for long-form reading. */
:root {
  --ink: #0c0b09;
  --ink-2: #16130f;
  --paper: #f6f2ea;
  --paper-2: #eee7db;
  --line: #ded4c2;
  --brass: #b0813f;
  --brass-lo: #8a642f;   /* 4.8:1 on paper: link colour */
  --brass-hi: #c69a56;
  --muted: #5f594b;      /* 6.2:1 on paper: secondary text */
  --muted-d: #a8a091;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--brass-lo);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--brass-lo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- masthead ---- */
.masthead { background: var(--ink-2); color: var(--paper); }
.masthead__in {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: 18px clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.masthead__mark { display: inline-block; }
.masthead__mark img { width: 126px; height: auto; }
.masthead__mark:focus-visible { outline-color: var(--brass-hi); }
.masthead__nav { display: flex; gap: clamp(0.9rem, 3vw, 1.75rem); font-size: 0.9rem; }
.masthead__nav a { color: var(--paper); text-decoration: none; padding: 10px 2px; }
.masthead__nav a:hover { color: var(--brass-hi); }
.masthead__nav a:focus-visible { outline-color: var(--brass-hi); }
.masthead__nav a[aria-current="page"] {
  color: var(--brass-hi);
  box-shadow: inset 0 -2px 0 var(--brass);
}

/* ---- page frame ----
   Two measures. The chrome and the ledger sit on the wide one, prose on a
   narrow one so a line of policy text stays inside a comfortable measure. */
.wrap {
  width: min(900px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap-doc {
  width: min(700px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.col { max-width: none; }

.head { padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(1.75rem, 4vw, 2.5rem); }
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.15rem, 6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.head .lead {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.stamp {
  margin-top: 1.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-lo);
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.32rem, 2.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 3rem;
}
h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--brass);
  margin-top: 0.7rem;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  margin-top: 1.9rem;
  letter-spacing: -0.005em;
}
p { margin-top: 1rem; }
p.first { margin-top: 1.25rem; }

ul.list { margin-top: 1rem; padding-left: 0; list-style: none; }
ul.list li { position: relative; padding-left: 1.3rem; margin-top: 0.6rem; }
ul.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background: var(--brass);
}
strong { font-weight: 600; }

/* ---- the ledger: what the app stores ---- */
.ledger-band { padding-block: clamp(1rem, 3vw, 1.5rem) 0.5rem; }
.ledger {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: 0.96rem;
}
.ledger caption {
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.32rem, 2.8vw, 1.6rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 0.75rem;
}
.ledger thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.2rem 0.6rem 0;
  border-bottom: 2px solid var(--brass);
}
.ledger { table-layout: fixed; }
.ledger thead th:nth-child(1), .ledger tbody th { width: 25%; }
.ledger thead th:nth-child(2) { width: 39%; }
.ledger thead th:nth-child(3) { width: 36%; }
.ledger tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  vertical-align: top;
  padding: 0.95rem 1.2rem 0.95rem 0;
}
.ledger td {
  vertical-align: top;
  color: var(--muted);
  padding: 0.95rem 1.2rem 0.95rem 0;
}
.ledger td:last-child, .ledger thead th:last-child { padding-right: 0; }
.ledger tbody tr { border-bottom: 1px solid var(--line); }
.ledger tbody tr:last-child { border-bottom: 2px solid var(--line); }

@media (max-width: 760px) {
  .ledger, .ledger caption, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger tbody tr { padding-block: 1.1rem; }
  .ledger tbody th { width: auto; padding: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.35; }
  .ledger td { width: auto; padding: 0.35rem 0 0; }
  .ledger td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass-lo);
    margin-bottom: 0.15rem;
  }
}

/* ---- panels ---- */
.panel {
  margin-top: 1.5rem;
  background: var(--paper-2);
  border-left: 3px solid var(--brass);
  border-radius: 0 3px 3px 0;
  padding: 1.25rem clamp(1.1rem, 3vw, 1.6rem);
}
.panel h3 { margin-top: 0; }
.panel p { margin-top: 0.6rem; }
.panel p:first-of-type { margin-top: 0.5rem; }

.contact-line {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.02rem, 3vw, 1.5rem);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.contact-line a { text-decoration-thickness: 2px; }

/* ---- footer ---- */
.site-foot {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--ink);
  color: var(--muted-d);
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.9rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; justify-content: space-between; }
.site-foot a { color: var(--paper); }
.site-foot a:hover { color: var(--brass-hi); }
.site-foot a:focus-visible { outline-color: var(--brass-hi); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .masthead, .site-foot { background: none; color: var(--ink); }
  body { font-size: 12pt; }
  a { color: var(--ink); }
}
