/* Trombonest blog posts. The landing page's navy, brass and Anybody for the header and
   headings; a warm paper page and a book serif for reading. */

@font-face {
  font-family: "Anybody";
  src: url("/assets/trombonest/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --navy: #17204b;
  --navy-2: #222d66;
  --brass: #e9b42c;
  --brass-hi: #ffe48c;
  --brass-lo: #a26a0f;
  --paper: #fff3d6;
  --page: #fffaf0;
  --ink: #1d2342;
  --muted: #5b6080;
  --rule: #ecdcb4;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--page); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brass-lo); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

/* Header band */

.top {
  display: flex;
  gap: 20px;
  padding: 18px var(--gutter) 0;
  background: var(--navy);
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.top a { color: var(--paper); text-decoration: none; opacity: .7; }
.top a:hover { opacity: 1; color: var(--paper); }

.post-head {
  padding: clamp(40px, 8vw, 88px) var(--gutter) 28px;
  background: var(--navy);
  color: var(--paper);
}
.post-head > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.kicker {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-stretch: 130%;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker a { color: var(--brass); text-decoration: none; }
.kicker a:hover { color: var(--brass-hi); }

h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-family: "Anybody", system-ui, sans-serif;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.byline {
  margin-bottom: 0;
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 15px;
  opacity: .75;
}

/* The 360 lake runs edge to edge. Phones crop it to the moon end rather than shrink it. */
.banner { margin: 0; background: var(--navy); }
.banner img { display: block; width: 100%; height: clamp(220px, 37.25vw, 62vh); object-fit: cover; object-position: 12% 50%; }
.banner figcaption {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 10px var(--gutter) 14px;
  color: var(--paper);
  font-size: 14px;
  opacity: .7;
}

/* Body */

.post-body {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 44px var(--gutter) 16px;
}

.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.1em; }
.post-body li { margin-bottom: .45em; }
.post-body li::marker { color: var(--brass-lo); font-weight: 700; }
.post-body strong { color: var(--navy); }

.post-body > p:first-child { font-size: 1.15em; line-height: 1.55; }

.post-body h2 {
  margin: 1.9em 0 .55em;
  color: var(--navy);
  font-family: "Anybody", system-ui, sans-serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.post-body table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
}
.post-body .table-wrap { overflow-x: auto; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.post-body thead th {
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-family: "Anybody", system-ui, sans-serif;
  font-weight: 800;
}
.post-body td:first-child { font-weight: 700; color: var(--navy); }

.positions td, .positions th { text-align: center; }
.positions td:first-child, .positions th:first-child { text-align: left; }

.clip { margin: 2em auto; max-width: 340px; }
.clip video { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--navy); box-shadow: 0 18px 40px -18px rgba(23, 32, 75, .55); }
.clip figcaption, .post-body figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Questions */

.faq { margin-top: 2.4em; padding-top: .2em; border-top: 2px solid var(--navy); }
.faq h2 { margin-top: .9em; }
.faq dl { margin: 0; }
.faq dt { margin-top: 1.1em; color: var(--navy); font-family: "Anybody", system-ui, sans-serif; font-weight: 750; font-size: 18px; }
.faq dd { margin: .25em 0 0; }

/* Store button */

.buy {
  margin-top: 48px;
  padding: 56px var(--gutter) 60px;
  background: var(--navy);
  color: var(--paper);
  text-align: center;
}
.wordmark { display: block; width: min(560px, 86%); height: auto; margin: 0 auto 26px; }

.cta {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 45%, #d99a1e);
  color: var(--navy);
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  font-stretch: 115%;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.cta:hover { color: var(--navy); filter: brightness(1.06); }
.price { margin: 14px 0 0; font-size: 15px; opacity: .75; }

.foot {
  padding: 26px var(--gutter) 40px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 243, 214, .12);
  color: var(--paper);
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 14px;
  text-align: center;
}
.foot p { margin: 0 0 6px; opacity: .75; }
.foot a { color: var(--paper); text-decoration-color: rgba(233, 180, 44, .6); }
.foot a:hover { color: var(--brass-hi); }
