/* Tandem Player — site styles.
   Light, typographic, editorial on purpose. No card grid, no dark hero, no
   external fonts: the site makes no third-party requests, which is the same
   claim the product makes about itself.
   One accent colour, used sparingly. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f1ea;
  --ink: #17150f;
  --ink-2: #3d3830;
  --muted: #6d675d;
  --rule: #e2dcd0;
  --accent: #1c3f6e;
  --accent-soft: #eef2f7;
  --measure: 34rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--serif);
  text-rendering: optimizeLegibility;
}

/* --- shell --- */

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  flex-wrap: wrap;
}
.mark {
  font: 600 1.02rem/1 var(--sans);
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mark span { color: var(--muted); font-weight: 400; }
nav.site { margin-left: auto; display: flex; gap: 1.35rem; flex-wrap: wrap; }
nav.site a {
  font: 400 .88rem/1 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
}
nav.site a:hover { border-bottom-color: var(--accent); color: var(--accent); }
nav.site a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

footer.site {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 4rem;
  font: 400 .85rem/1.7 var(--sans);
  color: var(--muted);
}
footer.site p { margin: 0 0 .7rem; max-width: 40rem; }
footer.site a { color: var(--muted); }

/* --- type --- */

h1 {
  font: 400 2.5rem/1.15 var(--serif);
  letter-spacing: -.012em;
  margin: 2.6rem 0 0;
  max-width: 24ch;
}
h2 {
  font: 400 1.5rem/1.25 var(--serif);
  margin: 3.2rem 0 .2rem;
  letter-spacing: -.008em;
}
h3 {
  font: 600 .95rem/1.4 var(--sans);
  margin: 1.8rem 0 .3rem;
}
p { margin: .85rem 0; max-width: var(--measure); }
a { color: var(--accent); }
strong { font-weight: 600; }

.standfirst {
  font: 400 1.22rem/1.55 var(--serif);
  color: var(--ink-2);
  max-width: 32rem;
  margin: 1rem 0 0;
}
.label {
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .1rem;
}
.lede { font-size: 1.06rem; }
.muted { color: var(--muted); }
.small { font: 400 .87rem/1.65 var(--sans); color: var(--muted); max-width: 36rem; }
code, kbd {
  font: 400 .87em/1 var(--mono);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .08em .32em;
}

/* --- sections --- */

section { scroll-margin-top: 1.5rem; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 3.4rem 0 0; }

ul.plain { margin: .9rem 0; padding: 0; list-style: none; max-width: var(--measure); }
ul.plain li {
  position: relative;
  padding-left: 1.1rem;
  margin: .45rem 0;
}
ul.plain li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: .42rem; height: 1px;
  background: var(--muted);
}

/* the section index under the hero — a table of contents, not a card grid */
.toc {
  margin: 2.6rem 0 0;
  padding: 0; list-style: none;
  border-top: 1px solid var(--rule);
  max-width: 38rem;
}
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .72rem 0;
  text-decoration: none;
  color: var(--ink);
}
.toc a:hover { color: var(--accent); }
.toc .n {
  font: 400 .78rem/1 var(--mono);
  color: var(--muted);
  min-width: 1.6rem;
}
.toc .t { font: 400 1rem/1.3 var(--serif); }
.toc .d {
  margin-left: auto; text-align: right;
  font: 400 .84rem/1.3 var(--sans); color: var(--muted);
  max-width: 19rem;
}

/* --- buttons --- */

.actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.9rem 0 0; }
.btn {
  display: inline-block;
  font: 500 .92rem/1 var(--sans);
  padding: .78rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #163257; }
/* A button whose destination does not exist yet: drawn, but plainly not a link.
   Swap the <span class="btn soon"> for an <a class="btn primary"> when it does. */
.btn.soon, .btn.soon:hover { background: transparent; color: var(--muted); border-color: var(--rule); cursor: default; }

/* --- tables --- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0 .4rem;
  font: 400 .93rem/1.5 var(--sans);
}
caption {
  text-align: left;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .6rem;
}
th, td { text-align: left; padding: .62rem .8rem .62rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td.c, th.c { text-align: center; width: 6.5rem; padding-right: 0; }
.yes { color: var(--ink); }
.no { color: var(--muted); }
tbody tr:hover { background: #f7f5f0; }

/* --- pull quote / notes --- */

.note {
  border-left: 2px solid var(--rule);
  padding: .1rem 0 .1rem 1.1rem;
  margin: 1.5rem 0;
  max-width: 34rem;
}
.note p { margin: .5rem 0; }
.note.accent { border-left-color: var(--accent); }

.placeholder {
  background: #fff8e1;
  border: 1px dashed #c9a227;
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  font: 400 .85rem/1.6 var(--sans);
  color: #6b5a12;
  max-width: 38rem;
}
.placeholder b { color: #4d4109; }

/* --- price --- */

.price {
  display: flex; align-items: baseline; gap: .6rem;
  margin: 1.4rem 0 .2rem;
}
.price .amount { font: 400 2.6rem/1 var(--serif); letter-spacing: -.02em; }
.price .per { font: 400 .95rem/1.4 var(--sans); color: var(--muted); }

/* --- FAQ --- */

.qa { border-top: 1px solid var(--rule); margin-top: 2.2rem; }
.qa > div { border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }
.qa h3 { margin: 0 0 .1rem; font: 600 1.02rem/1.4 var(--serif); }
.qa p { margin: .55rem 0 0; font-size: .96rem; }

/* --- responsive --- */

@media (max-width: 34rem) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; margin-top: 1.9rem; }
  h2 { font-size: 1.32rem; }
  nav.site { margin-left: 0; gap: 1rem; width: 100%; }
  .toc a { flex-wrap: wrap; }
  .toc .d { margin-left: 2.6rem; text-align: left; max-width: none; }
  td.c, th.c { width: 4.5rem; }
}
