:root {
  color: #172033;
  background: #f5efe2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f5efe2; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
p { color: #596575; line-height: 1.7; }

.site-header {
  color: #fff8ea;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 197, 87, 0.38), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.2), transparent 28rem),
    #121c32;
  padding: 1.1rem clamp(1rem, 4vw, 4rem) 5.5rem;
}

.topbar,
.hero-shell,
.metrics,
.workspace,
.section {
  max-width: 1200px;
  margin: 0 auto;
}

.topbar,
.navlinks,
.hero-actions,
.lead-meta,
.card-topline,
.story-foot,
.card-actions,
.section-heading.inline,
.filter-stack,
.form-row {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 5rem;
}

.brand {
  color: #ffc557;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.navlinks { gap: 1rem; flex-wrap: wrap; color: #d8e3ff; font-weight: 850; }
.navlinks a:hover { color: #ffc557; }

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.eyebrow {
  color: #c15332;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header .eyebrow { color: #ffc557; }
h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 9vw, 7.3rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 0.96; letter-spacing: -0.06em; }
h3 { margin-bottom: 0.75rem; font-size: 1.42rem; line-height: 1.1; letter-spacing: -0.03em; }
.lede { max-width: 780px; color: #d8e3ff; font-size: 1.16rem; }
.hero-actions { gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

.button,
.tiny-button,
.filter-chip {
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.button { display: inline-flex; justify-content: center; padding: 0.9rem 1.15rem; }
.primary { background: #ffc557; color: #172033; }
.secondary { background: rgba(255, 255, 255, 0.1); color: #fff8ea; border: 1px solid rgba(255, 255, 255, 0.16); }

.lead-panel,
.metrics article,
.workspace,
.story-card,
.creator-card,
.automation article {
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.1);
}

.lead-panel {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
}
.lead-panel p { color: #d8e3ff; }
.lead-meta { gap: 0.55rem; flex-wrap: wrap; }
.lead-meta span { padding: 0.45rem 0.7rem; border-radius: 999px; background: rgba(255, 197, 87, 0.16); color: #ffc557; font-weight: 950; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -2.5rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
}
.metrics article { padding: 1.3rem; background: #fffaf0; }
.metrics strong { display: block; color: #c15332; font-size: 2.25rem; line-height: 1; }
.metrics span { color: #596575; font-weight: 850; }

.workspace,
.section { padding: 4.5rem clamp(1rem, 4vw, 4rem); }
.workspace { margin-top: 4rem; background: #172033; color: #fff8ea; }
.workspace p { color: #d8e3ff; }
.composer { display: grid; gap: 1rem; }
.composer label { display: grid; gap: 0.45rem; color: #ffc557; font-weight: 950; }
.composer input,
.composer textarea,
.composer select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ea;
}
.composer option { color: #172033; }
.composer textarea { min-height: 120px; resize: vertical; }
.form-row { gap: 1rem; }
.form-row label { flex: 1; }

.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading.inline { max-width: none; justify-content: space-between; gap: 1.5rem; align-items: end; }
.centered { margin-left: auto; margin-right: auto; text-align: center; }
.filter-stack { flex-direction: column; gap: 0.6rem; align-items: flex-end; }
.filter-stack > div { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.filter-chip { padding: 0.65rem 0.85rem; background: #fffaf0; color: #172033; border: 1px solid rgba(23, 32, 51, 0.12); }
.filter-chip.active { background: #172033; color: #ffc557; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story-card { display: flex; flex-direction: column; min-height: 320px; padding: 1.4rem; background: #fffaf0; }
.hero-story { grid-column: span 2; background: #172033; color: #fff8ea; }
.hero-story p { color: #d8e3ff; }
.card-topline { justify-content: space-between; gap: 0.75rem; color: #c15332; font-size: 0.76rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.story-foot { justify-content: space-between; gap: 0.75rem; margin-top: auto; color: #596575; font-size: 0.9rem; font-weight: 850; }
.hero-story .story-foot { color: #d8e3ff; }
.card-actions { gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.tiny-button { padding: 0.58rem 0.75rem; background: #f0dfc0; color: #172033; }
.hero-story .tiny-button { background: #ffc557; }

.creators { background: #efe3cf; border-radius: 42px; }
.creator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.creator-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.35rem; background: #fffaf0; }
.avatar { position: relative; display: grid; place-items: center; overflow: hidden; width: 3.25rem; height: 3.25rem; border-radius: 1.1rem; background: #172033; color: #ffc557; font-weight: 950; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar span { position: relative; }
.avatar:has(img) span { opacity: 0; }
.role { margin-bottom: 0.4rem; color: #c15332; font-weight: 950; }

.automation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.automation article { padding: 1.45rem; background: #fffaf0; }
.automation span { color: #c15332; font-weight: 950; }

@media (max-width: 900px) {
  .hero-shell,
  .story-grid,
  .creator-grid,
  .automation-grid { grid-template-columns: 1fr; }
  .hero-story { grid-column: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading.inline,
  .form-row { flex-direction: column; align-items: stretch; }
  .filter-stack { align-items: flex-start; }
  .filter-stack > div { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-bottom: 3rem; }
  .metrics { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3rem, 18vw, 4.6rem); }
}

.flash {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 197, 87, 0.14);
  color: #ffc557;
  font-weight: 900;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-label {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 22rem);
  color: #c15332;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-label input {
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #fffaf0;
  color: #172033;
  text-transform: none;
  letter-spacing: 0;
}

.ticker {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(193, 83, 50, 0.22);
  border-radius: 20px;
  background: #fff4df;
  color: #172033;
  font-weight: 800;
}

.ticker strong { color: #c15332; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 1rem;
}

.tag-row span,
.media-pill {
  width: fit-content;
  border-radius: 999px;
  background: #f0dfc0;
  color: #172033;
  font-size: 0.78rem;
  font-weight: 950;
}

.tag-row span { padding: 0.35rem 0.55rem; }
.media-pill { padding: 0.45rem 0.65rem; }
.hero-story .tag-row span,
.hero-story .media-pill { background: rgba(255, 197, 87, 0.18); color: #ffc557; }

.tiny-button.danger { background: #ffe0d8; color: #9b2c17; }

.desk { padding-top: 2rem; }
.assignment-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 32px;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.1);
}

.section-heading.compact { margin-bottom: 1.2rem; }
.section-heading.compact h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.assignment-grid div,
.video-box {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 22px;
  padding: 1rem;
  background: #f8ecd8;
}

.assignment-grid strong,
.assignment-grid span { display: block; }
.assignment-grid strong { color: #c15332; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.assignment-grid span { margin-top: 0.25rem; color: #172033; font-weight: 950; }

.assignment-panel label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #c15332;
  font-weight: 950;
}

.assignment-panel textarea {
  min-height: 95px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #fffaf0;
  color: #172033;
  resize: vertical;
}

.video-box h3 { margin-bottom: 0.4rem; }
.video-box p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .metrics,
  .assignment-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
}

/* WordPress-inspired admin skin */
.site-header {
  background: #f0f0f1;
  color: #1d2327;
  padding-top: 0;
}

.topbar {
  max-width: none;
  margin-inline: calc(clamp(1rem, 4vw, 4rem) * -1);
  padding: 0.55rem clamp(1rem, 4vw, 4rem);
  background: #1d2327;
  color: #f0f0f1;
}

.brand {
  color: #f0f0f1;
  letter-spacing: -0.02em;
}

.brand span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.35rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
}

.admin-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: min(34rem, 38vw);
  padding: 0.45rem 0.7rem;
  border: 1px solid #50575e;
  border-radius: 3px;
  background: #2c3338;
  color: #c3c4c7;
  font-size: 0.86rem;
}

.admin-search strong {
  color: #8c8f94;
  font-size: 0.75rem;
}

.navlinks { color: #f0f0f1; }
.navlinks a:hover { color: #72aee6; }

.hero-shell {
  align-items: stretch;
  padding-top: 4.5rem;
}

.site-header .eyebrow,
.eyebrow { color: #2271b1; }

h1, h2, h3 { letter-spacing: -0.035em; }

.lede,
.lead-panel p { color: #3c434a; }

.lead-panel,
.metrics article,
.workspace,
.story-card,
.creator-card,
.automation article,
.assignment-panel {
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.lead-panel {
  background: #fff;
  border-color: #c3c4c7;
  color: #1d2327;
}

.lead-meta span,
.primary {
  background: #2271b1;
  color: #fff;
}

.wp-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: none;
  background: #f0f0f1;
}

.wp-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 1rem 0;
  background: #1d2327;
  color: #c3c4c7;
}

.wp-sidebar a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem 1rem;
  font-weight: 700;
}

.wp-sidebar a:hover,
.wp-sidebar a.active {
  background: #2271b1;
  color: #fff;
}

.wp-sidebar span { width: 1.1rem; text-align: center; }
.wp-content { min-width: 0; padding-bottom: 4rem; }

.metrics { margin-top: -2rem; }
.metrics article,
.workspace,
.story-card,
.creator-card,
.automation article,
.assignment-panel { background: #fff; }

.workspace {
  color: #1d2327;
  border: 1px solid #c3c4c7;
}

.workspace p { color: #50575e; }

.wp-editor {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.editor-main,
.publish-box {
  display: grid;
  gap: 1rem;
}

.editor-main {
  padding: 1rem;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.publish-box {
  padding: 1rem;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.composer label { color: #1d2327; }
.composer input,
.composer textarea,
.composer select,
.assignment-panel textarea {
  border-radius: 2px;
  border-color: #8c8f94;
  background: #fff;
  color: #1d2327;
}

.composer input:focus,
.composer textarea:focus,
.composer select:focus,
.search-label input:focus {
  outline: 2px solid #72aee6;
  border-color: #2271b1;
}

#title {
  min-height: 3.5rem;
  font-size: 1.55rem;
}

.secondary,
.tiny-button,
.filter-chip {
  border: 1px solid #2271b1;
  background: #f6f7f7;
  color: #2271b1;
  border-radius: 3px;
}

.button,
.filter-chip,
.tiny-button { border-radius: 3px; }
.filter-chip.active { background: #2271b1; color: #fff; }

.publish-actions,
.button-row {
  display: grid;
  gap: 0.7rem;
}

.hero-story {
  background: #1d2327;
  color: #fff;
}

.creators { background: transparent; border-radius: 0; }

@media (max-width: 900px) {
  .wp-layout { grid-template-columns: 1fr; }
  .wp-sidebar { position: static; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-editor { grid-template-columns: 1fr; }
  .admin-search { min-width: 100%; order: 3; }
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(circle at top left, rgba(34, 113, 177, 0.16), transparent 30rem),
    #f0f0f1;
}

.auth-card {
  width: min(100%, 620px);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 35, 39, 0.12);
}

.auth-card h1 {
  margin-bottom: 1rem;
  color: #1d2327;
  font-size: clamp(2.7rem, 8vw, 4.7rem);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
  color: #1d2327;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: #1d2327;
}

.auth-form input:focus {
  outline: 2px solid #72aee6;
  border-color: #2271b1;
}

.auth-message {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid #2271b1;
  background: #f6f7f7;
  color: #1d2327;
  font-weight: 800;
}

.auth-note {
  margin: 1rem 0 0;
  color: #50575e;
  font-size: 0.93rem;
}

.auth-switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rust);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.loading-shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.nav-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 850;
}

.nav-button:hover { color: #72aee6; }

/* Public reader-facing site */
.public-header {
  padding: 1.1rem clamp(1rem, 4vw, 4rem) 4rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 197, 87, 0.24), transparent 28rem),
    #121c32;
  color: #fff8ea;
}

.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.public-brand { color: #ffc557; }
.public-links { display: flex; gap: 1rem; color: #d8e3ff; font-weight: 850; }
.public-links a:hover { color: #ffc557; }
.public-hero { max-width: 1200px; margin: 0 auto; }
.public-hero h1 { color: #fff8ea; }
.public-lead { margin-top: 2rem; max-width: 760px; }
.public-grid .story-card .card-actions { display: none; }
.read-more { display: inline-flex; width: fit-content; margin-top: auto; text-decoration: none; }
.site-footer { padding: 3rem clamp(1rem, 4vw, 4rem); text-align: center; }
.footer-login { opacity: 0.28; font-size: 0.82rem; font-weight: 800; }
.footer-login:hover { opacity: 1; color: #2271b1; }
.compact-public { padding-bottom: 1rem; }
.compact-public .public-nav { margin-bottom: 0; }
.article-page { padding: 4rem clamp(1rem, 4vw, 4rem); }
.article-shell { max-width: 860px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem); background: #fffaf0; border: 1px solid rgba(23, 32, 51, 0.12); }
.article-shell h1 { color: #172033; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.article-shell .lede { color: #596575; }
.article-shell hr { border: 0; border-top: 1px solid rgba(23, 32, 51, 0.14); margin: 2rem 0; }

@media (max-width: 640px) {
  .public-nav { align-items: flex-start; flex-direction: column; }
}

/* Public editorial edition — intentionally separate from the publishing dashboard. */
.reader-header,
.reader-lead,
.reader-brief,
.reader-latest,
.reader-about,
.reader-footer {
  max-width: 1280px;
  margin-inline: auto;
}

.reader-header {
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: #f8f7f2;
  color: #151b22;
}

.reader-utility,
.reader-masthead,
.reader-sections,
.reader-section-heading,
.reader-story-footer,
.reader-pagination,
.reader-footer {
  display: flex;
  align-items: center;
}

.reader-pagination {
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #cfd2cb;
}
.reader-pagination div { display: flex; gap: 0.4rem; }
.reader-pagination button {
  min-width: 2.65rem;
  border: 1px solid #cfd2cb;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: #151b22;
  font-weight: 850;
}
.reader-pagination button:hover:not(:disabled),
.reader-pagination button.active { border-color: #151b22; background: #151b22; color: #fff; }
.reader-pagination button:disabled { cursor: not-allowed; opacity: 0.35; }

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 1.25rem auto 0;
}
.article-pagination a { display: grid; gap: 0.35rem; padding: 1rem; border: 1px solid rgba(23, 32, 51, 0.12); background: #fffaf0; }
.article-pagination a:last-child { text-align: right; }
.article-pagination span { color: #c15332; font-size: 0.75rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.article-pagination strong { line-height: 1.35; }

.reader-utility {
  justify-content: space-between;
  min-height: 2.55rem;
  border-bottom: 1px solid #cfd2cb;
  color: #59605d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.reader-utility p { margin: 0; color: inherit; line-height: 1.25; }

.reader-masthead { justify-content: space-between; padding: 1.7rem 0 1.45rem; }
.reader-wordmark {
  color: #151b22;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.3rem, 5vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.8;
}
.reader-wordmark span { color: #cc4d28; }
.reader-edition { color: #151b22; font-size: 0.85rem; font-weight: 800; }
.reader-edition span { margin-left: 0.35rem; color: #cc4d28; }

.reader-sections { gap: 1.45rem; overflow-x: auto; border-top: 3px solid #151b22; border-bottom: 1px solid #cfd2cb; }
.reader-section {
  flex: 0 0 auto;
  padding: 0.82rem 0 0.72rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #59605d;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reader-section:hover,
.reader-section.active { color: #151b22; border-bottom-color: #cc4d28; }

.reader-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: clamp(2rem, 7vw, 8rem); padding: clamp(3rem, 7vw, 6.7rem) clamp(1.25rem, 4vw, 4rem); }
.reader-lead-copy { min-width: 0; max-width: 790px; }
.reader-lead-art { min-width: 0; }
.reader-kicker { margin-bottom: 0.95rem; color: #a94022; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; line-height: 1.25; text-transform: uppercase; }
.reader-kicker span { padding-inline: 0.25rem; color: #cc4d28; }
.reader-lead h1,
.reader-section-heading h2,
.reader-about h2 {
  color: #151b22;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.reader-lead h1 { max-width: 810px; margin-bottom: 1.35rem; font-size: clamp(3.25rem, 5.2vw, 4.7rem); line-height: 0.91; overflow-wrap: break-word; }
.reader-dek { max-width: 680px; color: #3f4949; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.reader-byline { margin-top: 1.8rem; color: #59605d; font-size: 0.84rem; line-height: 1.4; }
.reader-byline strong { color: #151b22; }
.reader-byline span { padding-inline: 0.35rem; color: #cc4d28; }
.reader-link { display: inline-flex; gap: 0.55rem; margin-top: 0.65rem; padding-bottom: 0.25rem; border-bottom: 1px solid #151b22; color: #151b22; font-size: 0.86rem; font-weight: 900; }
.reader-link span { color: #cc4d28; }
.reader-link:hover { border-color: #cc4d28; color: #cc4d28; }
.reader-lead-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin-top: 0.65rem; }
.reader-lead-actions .reader-link { margin-top: 0; }
.reader-video-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #a94022; font-size: 0.82rem; font-weight: 900; }
.reader-video-link:hover { color: #151b22; }
.reader-video-link span { color: #cc4d28; font-size: 0.72rem; }

.reader-lead-art { position: relative; isolation: isolate; min-height: 390px; overflow: hidden; align-self: stretch; background: #e4ded1; }
.reader-lead-art::before,
.reader-lead-art::after { position: absolute; content: ''; border-radius: 50%; }
.reader-lead-art::before { z-index: -1; width: 23rem; height: 23rem; right: -8rem; bottom: -8rem; background: #cc4d28; }
.reader-lead-art::after { z-index: -1; width: 13rem; height: 13rem; left: -3rem; top: 3rem; border: 2px solid #151b22; }
.reader-lead-art span { position: absolute; top: 1.25rem; right: 1.25rem; color: #151b22; font-family: Georgia, serif; font-size: clamp(5rem, 12vw, 10rem); font-weight: 700; letter-spacing: -0.16em; line-height: 0.8; }
.reader-lead-art i { position: absolute; width: 80%; height: 1px; right: 0; top: 60%; background: #151b22; transform: rotate(-31deg); }
.reader-lead-art b { position: absolute; width: 1.25rem; height: 1.25rem; left: 35%; bottom: 18%; border-radius: 50%; background: #151b22; }

.reader-brief { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 1.15rem clamp(1.25rem, 4vw, 4rem); border-top: 1px solid #cfd2cb; border-bottom: 1px solid #cfd2cb; background: #f0eee7; }
.reader-brief p { margin: 0; color: #3f4949; font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; }
.reader-brief p span { margin-right: 0.7rem; color: #a94022; font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.reader-brief a { color: #151b22; font-size: 0.8rem; font-weight: 900; white-space: nowrap; }
.reader-brief a span { color: #cc4d28; }

.reader-latest { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem); }
.reader-section-heading { justify-content: space-between; gap: 1.5rem; padding-bottom: 1.4rem; border-bottom: 3px solid #151b22; }
.reader-section-heading .reader-kicker { margin-bottom: 0.5rem; }
.reader-section-heading h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 0.95; }
.reader-section-heading > p { margin: 0; color: #59605d; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.reader-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reader-story { display: flex; flex-direction: column; min-height: 330px; padding: 1.65rem 1.6rem 1.4rem; border-right: 1px solid #cfd2cb; border-bottom: 1px solid #cfd2cb; }
.reader-story:first-child { padding-left: 0; }
.reader-story:last-child { border-right: 0; }
.reader-story h3 { margin-bottom: 0.8rem; color: #151b22; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; }
.reader-story h3 a:hover { color: #a94022; }
.reader-story > p:not(.reader-kicker) { margin-bottom: 1.2rem; color: #59605d; font-size: 0.95rem; line-height: 1.55; }
.reader-story-footer { justify-content: space-between; gap: 1rem; margin-top: auto; color: #59605d; font-size: 0.72rem; font-weight: 800; }
.reader-story-footer a { color: #151b22; font-size: 0.78rem; }.reader-story-footer a span { color: #cc4d28; }
.reader-card-links { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem 0.9rem; }
.reader-card-links .reader-video-link { color: #a94022; font-size: 0.76rem; }
.reader-empty { padding: 2rem 0; }.reader-empty h3 { color: #151b22; }

.reader-about { margin-bottom: clamp(3rem, 8vw, 7rem); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 7vw, 8rem); background: #151b22; color: #f8f7f2; }
.reader-about .reader-kicker { color: #ec8a62; }.reader-about h2 { max-width: 730px; color: #f8f7f2; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 0.94; }.reader-about > p:not(.reader-kicker) { max-width: 720px; color: #cfd2cb; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }.reader-about .reader-link { border-color: #f8f7f2; color: #f8f7f2; }
.reader-footer { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr); gap: 2rem 4rem; padding: 3rem clamp(1.25rem, 4vw, 4rem); border-top: 3px solid #151b22; }
.reader-footer .reader-wordmark { font-size: 2.1rem; }
.reader-footer p { margin: 0; color: #59605d; font-size: 0.82rem; }
.reader-footer-brand { display: grid; gap: 1rem; }
.reader-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.5rem; align-content: start; }
.reader-footer-links a { width: fit-content; padding-bottom: .2rem; border-bottom: 1px solid transparent; color: #151b22; font-size: .78rem; font-weight: 900; }
.reader-footer-links a:hover { border-color: #cc4d28; color: #a94022; }
.reader-footer .reader-footer-meta { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid #cfd2cb; }

@media (max-width: 960px) {
  .reader-lead { grid-template-columns: 1fr; gap: 2.25rem; }
  .reader-lead-art { min-height: clamp(260px, 55vw, 480px); }
}

@media (max-width: 780px) {
  .reader-utility p:first-child { display: none; }
  .reader-utility { justify-content: flex-end; }
  .reader-lead-art { min-height: 230px; }
  .reader-story-grid { grid-template-columns: 1fr; }
  .reader-story, .reader-story:first-child { min-height: 0; padding: 1.5rem 0; border-right: 0; }
  .reader-footer { grid-template-columns: 1fr; }
  .reader-footer .reader-footer-meta { grid-column: auto; }
}

@media (max-width: 480px) {
  .reader-masthead { padding-block: 1.25rem; }
  .reader-edition { font-size: 0.72rem; }
  .reader-brief { grid-template-columns: 1fr; gap: 0.65rem; }
  .reader-section-heading { align-items: flex-end; }
  .reader-section-heading > p { display: none; }
}


.author-manager { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.5fr); gap: 1.5rem; align-items: start; }
.author-form { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid #c3c4c7; background: #fff; }
.author-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.author-form-heading h3 { margin: 0; }
.author-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.author-form label { display: grid; gap: .4rem; color: #1d2327; font-weight: 800; }
.author-form input, .author-form textarea { width: 100%; border: 1px solid #8c8f94; border-radius: 2px; padding: .75rem; color: #1d2327; background: #fff; }
.author-form textarea { min-height: 7rem; resize: vertical; }
.author-form .avatar-url-field, .author-form .bio-field { grid-column: 1 / -1; }
.creator-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.backup-section { background: #172033; color: #fff8ea; border-radius: 42px; }
.backup-section .section-heading p:not(.eyebrow) { color: #d8e3ff; }
.backup-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.backup-card > div { padding: 1.5rem; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); }
.backup-card p { color: #d8e3ff; }
.import-button { align-items: center; cursor: pointer; }
@media (max-width: 640px) { .backup-card { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .author-manager { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .author-form-grid { grid-template-columns: 1fr; } }

/* Story thumbnail controls and reader-facing media */
.thumbnail-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 1rem; border: 1px solid #c3c4c7; }
.thumbnail-fieldset legend { padding: 0 .35rem; color: #1d2327; font-weight: 850; }
.thumbnail-fieldset > p, .thumbnail-preview { grid-column: 1 / -1; margin: 0; }
.thumbnail-fieldset > p { color: #50575e; font-size: .88rem; line-height: 1.45; }
.thumbnail-preview { display: flex; align-items: center; gap: .9rem; }
.thumbnail-preview-image { width: 8rem; height: 4.8rem; object-fit: cover; border: 1px solid #c3c4c7; }
.thumbnail-remove { display: flex !important; align-items: center; gap: .5rem; font-size: .9rem; }
.thumbnail-remove input { width: auto; }
.story-thumbnail { width: calc(100% + 2.8rem); height: 11rem; margin: -1.4rem -1.4rem 1.2rem; border-radius: 4px 4px 0 0; object-fit: cover; }
.reader-lead-art { display: grid; place-items: stretch; }
.reader-lead-thumbnail { position: relative; z-index: 1; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.reader-lead-art:has(.reader-lead-thumbnail) { background: #151b22; }
.reader-lead-art:has(.reader-lead-thumbnail)::before, .reader-lead-art:has(.reader-lead-thumbnail)::after, .reader-lead-art:has(.reader-lead-thumbnail) > span, .reader-lead-art:has(.reader-lead-thumbnail) > i, .reader-lead-art:has(.reader-lead-thumbnail) > b { display: none; }
.reader-story-thumbnail { width: 100%; height: 10.5rem; margin-bottom: 1.25rem; object-fit: cover; }
.article-thumbnail { display: block; width: 100%; max-height: 34rem; margin: 1.8rem 0; object-fit: cover; }
@media (max-width: 640px) { .thumbnail-fieldset { grid-template-columns: 1fr; } .story-thumbnail { height: 10rem; } }

/* Direct R2 video uploads and reader-facing playback */
.video-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 1rem; border: 1px solid #c3c4c7; }
.video-fieldset legend { padding: 0 .35rem; color: #1d2327; font-weight: 850; }
.video-fieldset > p, .video-upload-progress, .video-preview, .video-transcript-field { grid-column: 1 / -1; margin: 0; }
.video-fieldset > p { color: #50575e; font-size: .88rem; line-height: 1.45; }
.video-upload-progress { display: grid; gap: .35rem; color: #50575e; font-size: .86rem; }
.video-upload-progress progress { width: 100%; height: .85rem; accent-color: #2457d6; }
.video-preview { display: grid; gap: .7rem; }
.video-remove { display: flex !important; align-items: center; gap: .5rem; font-size: .9rem; }
.video-remove input { width: auto; }
.video-player-shell { width: 100%; margin: 1.8rem 0; }
.article-video, .editor-video-preview { display: block; width: 100%; max-height: 38rem; background: #080b10; }
.editor-video-preview { max-height: 24rem; }
.video-transcript { margin-top: .8rem; padding: .9rem 1rem; border: 1px solid #d8dde4; background: #f7f8fa; }
.video-transcript summary { cursor: pointer; font-weight: 800; }
.video-transcript .article-body { margin-top: 1rem; font-size: 1rem; }
@media (max-width: 640px) {
  .video-fieldset { grid-template-columns: 1fr; }
  .video-player-shell { margin: 1.25rem 0; }
  .article-video, .editor-video-preview { max-height: 70vh; }
}


/* Full article editing and reader typography */
.composer textarea.story-body {
  min-height: 26rem;
  line-height: 1.65;
  resize: vertical;
}

.field-help {
  color: #646970;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.article-body {
  color: #252b31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 1.4em;
  color: inherit;
}

.article-body-empty {
  color: #646970;
  font-style: italic;
}

.article-source {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 32, 51, 0.14);
  font-size: 0.9rem;
}


/* Author portraits attached to public story bylines */
.story-author-avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 50%;
  background: #151b22;
  color: #f8f7f2 !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.story-author-avatar > span {
  padding: 0 !important;
  color: inherit !important;
}

.story-author-avatar img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-byline,
.reader-story-author,
.article-byline {
  display: flex;
  align-items: center;
}

.reader-byline {
  gap: 0.65rem;
}

.reader-byline-copy {
  padding: 0 !important;
  color: #59605d !important;
}

.reader-story-author {
  gap: 0.5rem;
}

.reader-story-author > span:last-child {
  color: inherit;
}

.article-byline {
  gap: 0.8rem;
  margin: 1.25rem 0 0.65rem;
}

.article-author-avatar {
  width: 3.75rem;
  height: 3.75rem;
  font-size: 0.9rem;
}

.article-byline > div {
  display: grid;
  gap: 0.1rem;
}

.article-byline > div > span,
.article-byline small {
  color: #646970;
  font-size: 0.76rem;
}

.article-byline strong {
  color: #172033;
  font-size: 1rem;
}

.article-byline small {
  display: block;
}

.article-meta {
  gap: 0.55rem;
  margin-top: 0;
}


/* Privacy policy */
.privacy-page {
  min-height: 100vh;
  background: #f8f7f2;
  color: #151b22;
}
.privacy-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.privacy-shell h1 {
  max-width: none;
  margin-bottom: 1rem;
  color: #151b22;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.055em;
}
.privacy-shell h2 {
  margin-top: 2.5rem;
  color: #151b22;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.privacy-shell p,
.privacy-shell li {
  color: #3f4949;
  line-height: 1.75;
}
.privacy-shell li + li { margin-top: .55rem; }
.privacy-shell a {
  color: #a94022;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.privacy-updated {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #cfd2cb;
  font-size: .9rem;
  font-weight: 800;
}
