/* Text pages: privacy, terms, contact, blog. Same colours as the TV guide. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #15161b;
  color: #d5d8de;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: #6effc8; text-underline-offset: 3px; }
a:hover { color: #a6ffdd; }
:focus-visible { outline: 2px solid #6effc8; outline-offset: 3px; border-radius: 3px; }

.top {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 18px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.top .brand {
  font: italic 400 26px/1 "Righteous", "Arial Black", sans-serif;
  color: #e9c97a;
  text-decoration: none;
  text-shadow: 1px 1px 0 #2a1408;
}
.top nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: #9da2ab; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; }

main { max-width: 860px; margin: 0 auto; padding: 22px 18px 50px; }
h1 { margin: 10px 0 6px; font-size: 30px; line-height: 1.2; }
h2 { margin: 34px 0 8px; font-size: 20px; line-height: 1.3; color: #e9c97a; }
h3 { margin: 20px 0 4px; font-size: 16px; color: #c3c7ce; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 3px 0; }
.lead { color: #aeb3bc; }
.meta { margin: 0 0 18px; font-size: 13px; color: #8b9099; }
.box {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #e9c97a;
  border-radius: 0 8px 8px 0;
  background: #1c1e25;
}
.box p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15px; }
th, td { padding: 7px 10px 7px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #2a2d36; }
th { color: #9da2ab; font-weight: 600; font-size: 13px; }
.scroll { overflow-x: auto; }
.cta {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 11px 20px;
  border-radius: 8px;
  background: #c9433a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { color: #fff; filter: brightness(1.1); }

footer.foot {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 18px 34px;
  border-top: 1px solid #2a2d36;
  font-size: 13px;
  color: #8b9099;
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
}
footer.foot a { color: #9da2ab; text-decoration: none; }
footer.foot a:hover { color: #fff; }
footer.foot span { margin-left: auto; }

/* ---------- blog ---------- */
.posts { list-style: none; margin: 18px 0 0; padding: 0; }
.posts li { margin: 0; padding: 16px 0; border-bottom: 1px solid #2a2d36; }
.posts a { font-size: 20px; font-weight: 600; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts time { display: block; font-size: 13px; color: #8b9099; }
.posts p { margin: 4px 0 0; color: #aeb3bc; }
.post img { max-width: 100%; height: auto; border-radius: 8px; }
.post figure { margin: 16px 0 18px; }
.post figure img { display: block; width: 100%; height: auto; }
.post figcaption { margin-top: 6px; font-size: 13px; line-height: 1.45; color: #8b9099; }
.post figcaption a { color: #9da2ab; }
.endnote { margin-top: 22px; }
.endnote p { margin: 0 0 12px; }
.endnote .cta { margin: 0; }
.post blockquote { margin: 0 0 12px; padding: 2px 16px; border-left: 3px solid #3a3e48; color: #aeb3bc; }
.post code { padding: 1px 5px; border-radius: 4px; background: #23252d; font: 14px ui-monospace, Menlo, monospace; }
.post pre { padding: 12px 14px; border-radius: 8px; background: #1c1e25; overflow-x: auto; }
.post pre code { padding: 0; background: none; }
.post hr { border: 0; border-top: 1px solid #2a2d36; margin: 26px 0; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; }

/* ---------- contact form ---------- */
form.contact { margin-top: 18px; display: grid; gap: 14px; max-width: 620px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 14px; color: #c3c7ce; }
.field small { font-size: 13px; color: #8b9099; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3a3e48;
  border-radius: 8px;
  background: #0f1014;
  color: #e6e8ec;
  font: inherit;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #6effc8; outline-offset: 1px; border-color: transparent; }
/* a field people never see; robots fill it in and give themselves away */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.contact button {
  justify-self: start;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: #c9433a;
  color: #fff;
  font: 700 16px/1 system-ui, sans-serif;
  cursor: pointer;
}
form.contact button:hover { filter: brightness(1.1); }
form.contact button[disabled] { opacity: .6; cursor: default; }
.form-note { font-size: 13px; color: #8b9099; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 600; }
.form-status.ok { color: #6effc8; }
.form-status.bad { color: #ff8a7d; }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  footer.foot span { margin-left: 0; width: 100%; }
}
