/* Sub-page chrome for frontmat.studio (compare, blog). Tokens mirror index.html exactly. */
:root {
  --accent: #d5305a;
  --accent-deep: #8f1d3d;
  --ink: #16141f;
  --muted: #6b6674;
  --line: #e7e4de;
  --card: #ffffff;
  --bg: #f7f6f3;
  --good: #0d7a4f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
a {
  color: var(--accent-deep);
}
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
header.site {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.site .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 10px;
}
header.site .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
header.site .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
header.site .links {
  display: none;
  gap: 22px;
  font-size: 14.5px;
  align-items: center;
}
header.site .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
header.site .links a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, #d5305a, #8f1d3d);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
details.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
details.menu summary::-webkit-details-marker {
  display: none;
}
details.menu .sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  padding: 6px 6px 12px;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(22, 20, 31, 0.1);
}
details.menu .sheet a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  min-height: 48px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
details.menu .sheet a[aria-current] {
  background: var(--bg);
  font-weight: 600;
}
details.menu .sheet .sheet-cta {
  justify-content: center;
  margin: 6px 8px 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
details.menu .sheet .sheet-signin {
  justify-content: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}
main.wrap {
  padding: 34px 20px 48px;
}
h1 {
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h2 {
  font-size: 22px;
  margin: 34px 0 10px;
}
h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}
p,
li {
  color: #3f3b4a;
}
.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.meta {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
}
.cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 30px 0;
}
.cta p {
  margin: 0 0 12px;
}
.cta small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 12px 12px;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
th {
  background: #f3f0ea;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
td b {
  color: var(--ink);
}
.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.posts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0;
}
.posts li a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.posts li p {
  margin: 6px 0 0;
  font-size: 14.5px;
}
.sources {
  font-size: 13.5px;
  color: var(--muted);
}
footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--muted);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
footer.site a {
  color: var(--muted);
}
@media (max-width: 639px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  td {
    border: 0;
    padding: 4px 12px;
  }
  td::before {
    content: attr(data-h);
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
@media (min-width: 880px) {
  header.site .links {
    display: flex;
  }
  details.menu {
    display: none;
  }
}
.video {
  margin: 18px 0 28px;
}
.video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 14px 36px rgba(28, 22, 38, 0.14);
}
.video figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.transcript {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.transcript li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.transcript .meta {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin: 0;
}
