/*
 * The journal (/blog) and the help centre (/help), on top of legal.css.
 * Pages are written by scripts/tina/build-blog.mjs. Same palette as the site
 * (src/styles/main.css): Romie for what is said once, Archivo for reading,
 * groups held by hairlines rather than boxes (docs/UI-STYLE.md).
 */
@font-face { font-family: "Romie"; src: url("/fonts/Romie-Medium.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Romie"; src: url("/fonts/Romie-MediumItalic.woff2") format("woff2"); font-style: italic; font-weight: 300 800; font-display: swap; }

:root {
  --ink: #f0e9e5; --body: #c6bcb8; --muted: #d3cbc7; --blush: #f2b3ae; --blush-hover: #f7c8c4; --sand: #eed1b7;
  --bg: #262323; --line: rgb(255 255 255 / .14);
  --wide: min(100% - 48px, 1100px); --read: min(100% - 48px, 720px);
  font-family: Archivo, Arial, sans-serif;
}
h1, h2, h3 { font-family: Romie, Georgia, serif; font-weight: 400; }
img { max-width: 100%; height: auto; }

/* Header and footer, as on the home page */
.site-header { width: var(--wide); border-bottom: 1px solid var(--line); padding: 22px 0; flex-wrap: wrap; }
.site-header .wordmark { min-height: 44px; }
.site-header .wordmark img { display: block; height: 24px; width: auto; }
.site-header nav { gap: 4px 28px; align-items: center; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; }
.site-header nav a.join { background: var(--blush); color: var(--bg); padding: 0 18px; border-radius: 6px; font-weight: 500; }
.site-header nav a.join:hover { background: var(--blush-hover); color: var(--bg); text-decoration: none; }

.site-footer { width: var(--wide); border-top: 1px solid var(--line); padding: 40px 0 36px; display: grid; gap: 18px; }
.site-footer .tagline { margin: 0; font-family: Romie, Georgia, serif; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sand); }
.site-footer nav { gap: 0 30px; }
.site-footer nav a { color: var(--body); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.site-footer nav a:hover { color: #fff; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--body); }
.site-footer .legal p { margin: 0; align-self: center; }
.site-footer .legal nav a { font-weight: 400; letter-spacing: 1.4px; }

/* Announcement bar and social links (Site in the CMS; shell.mjs). Absent unless set. */
.announcement { background: var(--blush); color: var(--bg); text-align: center; padding: 10px 24px; font-size: 14px; line-height: 1.45; }
.announcement p { margin: 0 auto; max-width: 72ch; }
.announcement a { color: inherit; font-weight: 700; margin-left: .4em; text-underline-offset: 3px; display: inline; min-height: 0; }
.announcement a:hover { color: inherit; text-decoration-thickness: 2px; }
.announcement a:focus-visible { outline-color: var(--bg); }
.site-footer nav.social { gap: 0 4px; }
.site-footer nav.social a { min-width: 44px; justify-content: center; color: var(--body); }
.site-footer nav.social a:hover { color: #fff; }
.site-footer nav.social svg { width: 18px; height: 18px; }

/* Shared type */
main.journal, main.help { width: var(--wide); padding-top: 56px; }
main h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 40px; max-width: 48ch; }
.meta { font-size: 13px; color: var(--body); margin: 0 0 10px; }
.meta a { color: var(--body); }
.meta a:hover { color: #fff; }
.empty { font-family: Romie, Georgia, serif; font-style: italic; font-size: 26px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; margin: 0 0 32px; }

/* The list of posts: ruled rows */
.post-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.post-list > li { max-width: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
.post-card { display: grid; gap: 20px 40px; align-items: start; }
.post-card:has(.post-card-cover) { grid-template-columns: minmax(0, 1fr); }
.post-card-cover { display: block; min-height: 0; }
.post-card-cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.post-card h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; margin: 0 0 12px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blush); text-decoration: underline; }
.post-card p:last-child { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .post-card:has(.post-card-cover) { grid-template-columns: 340px minmax(0, 1fr); } }

/* One post */
.post { width: var(--read); margin: 0 auto; }
.post h1 { font-size: clamp(40px, 7vw, 72px); }
.cover { margin: 28px 0 36px; }
.cover img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.back { width: var(--read); max-width: none; margin: 48px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }

/* Rich text from the CMS */
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 32px; margin: 44px 0 12px; }
.prose h3 { font-size: 24px; margin: 32px 0 8px; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; margin: 28px 0 6px; }
.prose img { display: block; border-radius: 3px; margin: 8px 0; }
.prose blockquote { margin: 32px 0; padding: 0 0 0 22px; border-left: 2px solid var(--blush); font-family: Romie, Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.35; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--sand); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { font-size: .9em; background: rgb(255 255 255 / .06); padding: 1px 5px; border-radius: 3px; }
.prose pre { overflow-x: auto; background: rgb(255 255 255 / .05); padding: 16px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }

/* Help centre: articles beside a list of every article */
.help-header nav a.join { white-space: nowrap; }
.help-layout { width: var(--wide); margin: 0 auto; display: grid; gap: 0 56px; }
.help-layout main.help { width: auto; margin: 0; min-width: 0; }
.help-layout main.help h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; }
.help-layout .prose, .help-layout .lede { max-width: 68ch; }
.help-nav { border-top: 1px solid var(--line); padding: 24px 0 48px; }
.help-nav h2 { font-family: inherit; font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--body); }
.help-nav ol { list-style: none; margin: 0; padding: 0; }
.help-nav li { border-bottom: 1px solid var(--line); }
.help-nav a { display: flex; min-height: 44px; align-items: center; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; padding: 8px 0 8px 12px; border-left: 2px solid transparent; }
.help-nav a:hover { color: #fff; text-decoration: underline; }
.help-nav a[aria-current="page"] { border-left-color: var(--blush); color: var(--blush); }
@media (min-width: 900px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "nav main"; }
  .help-layout main.help { grid-area: main; }
  .help-nav { grid-area: nav; border-top: 0; padding-top: 64px; position: sticky; top: 0; align-self: start; }
}
.help-list { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.help-list > li { max-width: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
.help-list a { font-family: Romie, Georgia, serif; font-size: 26px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.help-list a:hover { color: var(--blush); text-decoration: underline; }
.help-list p { margin: 6px 0 0; color: var(--muted); }
.help-footer p { margin: 0; font-size: 13px; color: var(--body); }
.help-tag { display: inline-block; margin-left: 10px; vertical-align: 5px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blush); }

/* Help centre: video guides (build-blog.mjs renderVideo, help-video.js) */
.help-videos { max-width: 68ch; display: grid; gap: 44px; margin: 0 0 48px; }
.help-video { border-top: 1px solid var(--line); padding-top: 24px; scroll-margin-top: 24px; }
.help-video-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.help-video-head h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; margin: 0; }
.help-video-status { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sand); }
.help-video-status[data-status="live"] { color: #9fd8b5; }
.help-video-status[data-status="test"], .help-video-status[data-status="both"] { color: var(--blush); }
.help-video-purpose { margin: 8px 0 16px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.help-video-frame { position: relative; border-radius: 3px; overflow: hidden; background: #1b1919; box-shadow: 0 0 0 1px var(--line); }
.help-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1b1919; }
.help-video-frame video::cue { font-family: Archivo, Arial, sans-serif; font-size: 18px; background: rgb(20 18 18 / .82); color: var(--ink); }
.help-video-tools:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 12px 0 0; }
.help-video-tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 15px/1 Archivo, Arial, sans-serif; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.help-video-tools button:hover { border-color: var(--blush); }
.help-video-tools button:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }
.help-video-tools button svg { flex: none; }
.help-video-voice .on { display: none; }
.help-video-voice[aria-pressed="true"] { background: var(--blush); border-color: var(--blush); color: var(--bg); }
.help-video-voice[aria-pressed="true"] .on { display: inline; }
.help-video-voice[aria-pressed="true"] .off { display: none; }
.help-video-state { font-weight: 400; color: var(--body); }
.help-video-voice[aria-pressed="true"] .help-video-state { color: inherit; }
.help-video-full[hidden] { display: none; }
.help-video-note { margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--blush); color: var(--muted); font-size: 15px; line-height: 1.55; }
.help-video-transcript { margin: 16px 0 0; }
.help-video-transcript summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.help-video-transcript summary:hover { color: #fff; }
.help-video-transcript summary:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
.help-video-transcript p { margin: 2px 0 0; font-size: 17px; line-height: 1.7; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .help-video-tools button { transition: none; } }
@media (max-width: 640px) { .help-videos { gap: 36px; } .help-video-purpose, .help-video-transcript p { font-size: 16px; } .help-video-frame video::cue { font-size: 14px; } }

@media (max-width: 640px) {
  .site-header nav { width: 100%; gap: 0 20px; }
  .site-header nav a.join { margin-left: auto; }
  main.journal, main.help { padding-top: 36px; }
  .lede { font-size: 18px; margin-bottom: 28px; }
  .prose { font-size: 17px; }
  .prose blockquote { font-size: 22px; }
}
@media (max-width: 400px) { :root { --wide: calc(100% - 36px); --read: calc(100% - 36px); } .site-header nav a.join { margin-left: 0; } }
@media print { .site-header nav, .help-nav, .site-footer nav, .help-video-frame, .help-video-tools { display: none; } }
