/* What both public sites share: layout and reading. Each site's own stylesheet sets its colours and type by
   filling in these variables, so a redesign rarely needs to touch the posts or this file. */
:root {
  --paper: #ffffff; --ink: #111111; --quiet: #666666; --rule: #e5e5e5; --accent: #111111; --accent-ink: #ffffff; --link: #111111;
  --heading-font: Georgia, serif; --body-font: system-ui, sans-serif; --heading-weight: 400;
  --measure: 42rem; --wide: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body-font); }
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); line-height: 1.15; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header-inner, .site-footer-inner, main { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: 1rem; }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.wordmark { font-family: var(--heading-font); font-weight: var(--heading-weight); font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

main { padding-block: 2.5rem 4rem; }
.page-title { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 2rem; }

.cards { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.75rem; }
.card time { font-size: 0.85rem; color: var(--quiet); }
.card h2 { font-size: 1.4rem; margin: 0.25rem 0 0.5rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--quiet); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.article { max-width: var(--measure); margin: 0 auto; }
.article > header h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 0.75rem; }
.byline { color: var(--quiet); font-size: 0.9rem; margin: 0 0 2rem; }
.lead { margin: 0 0 2rem; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1.25em; white-space: pre-wrap; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.75em 0 0.5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 3px solid var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li > p { margin-bottom: 0.4em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 0.85rem; color: var(--quiet); margin-top: 0.5rem; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-button { text-align: center; margin: 2em 0; }
.link-button a, .button { display: inline-block; padding: 0.7em 1.5em; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; font: inherit; cursor: pointer; border-radius: 2px; }
.topics { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.comments { margin-top: 3rem; font-size: 0.95rem; }
.comments h2 { font-size: 1.3rem; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments ul ul { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.comment-meta { color: var(--quiet); font-size: 0.85rem; margin: 1.5rem 0 0.25rem; }
.comment-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.call { max-width: var(--measure); margin: 3rem auto 0; padding: 1.5rem; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); }
.call h2 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.call p { margin: 0 0 1rem; }
.sign-up { display: grid; gap: 0.75rem; }
.sign-up label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.sign-up input { font: inherit; padding: 0.6em 0.75em; border: 1px solid var(--quiet); background: var(--paper); color: var(--ink); border-radius: 2px; width: 100%; }
.sign-up .trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sign-up small { color: var(--quiet); }
.sign-up [role="status"] { margin: 0; font-weight: 600; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2rem; font-size: 0.9rem; color: var(--quiet); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-footer a { color: inherit; }

/* StageDoor's look: its provisional brand (apps/stagedoor/vision.md, "Brand"). Change this to redesign.
   Saffron is never large text on Paper. Oxblood is for tiny details only. Nothing here uppercases the name. */
:root {
  --paper: #FAF8F3; --ink: #1B2A4A; --quiet: #6C7891; --rule: #E4E0D6; --accent: #F4B400; --accent-ink: #1B2A4A; --link: #1B2A4A;
  --heading-font: "DM Serif Display", Georgia, serif; --body-font: "DM Sans", system-ui, sans-serif; --heading-weight: 400;
}
.prose a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.welcome { max-width: 48rem; margin: 0 0 3rem; }
.welcome h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0 0 0.5rem; }
.welcome p { font-size: 1.2rem; margin: 0; color: var(--quiet); }
.more { text-align: center; margin: 2.5rem 0 0; }
.practical { margin: 2.5rem 0 0; padding: 1.5rem; border: 1px solid var(--rule); background: #fff; }
.practical p { margin: 0 0 0.5rem; }
.practical p:last-child { margin: 0.75rem 0 0; }

.review-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.9rem; margin: -1.25rem 0 2rem; }
