/* The selector is shared. Themes share page composition and customize palette, typography and linework. */
body.newspaper .topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
body.newspaper .theme-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 12px/1.4 Arial, Helvetica, sans-serif;
}
@media (max-width: 720px) {
  body.newspaper .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  body.newspaper .top-market { grid-column: 1 / -1; grid-row: 2; }
  body.newspaper .top-left { grid-column: 1 / -1; }
}
body.newspaper .site-footer .theme-control { margin: 12px 0 20px; }
body.newspaper .theme-control label { font: inherit; margin: 0; }
body.newspaper .theme-control select {
  width: auto;
  min-width: 0;
  min-height: 32px;
  max-width: 140px;
  padding: 4px 6px;
  margin: 0;
  border: 1px solid #aaa;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
body.newspaper .theme-control select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

html[data-site-theme="front-page"] body.newspaper {
  --paper: var(--skin-paper);
  --text-ink: var(--skin-ink);
  --editorial-red: var(--skin-accent);
  --editorial-blue: var(--skin-accent);
  --deep-red: var(--skin-accent);
  --ink-blue: var(--skin-accent);
  --text: var(--skin-ink);
  background: var(--skin-paper);
  color: var(--skin-ink);
}
html[data-site-theme="front-page"] .newspaper :is(.topbar, .site-header, .main-nav, .nav-toggle, .photo-project-hero) {
  background: var(--skin-paper);
  color: var(--skin-ink);
}
html[data-site-theme="front-page"] .newspaper .site-title,
html[data-site-theme="front-page"] .newspaper .site-title-link:hover .site-title {
  color: var(--skin-ink);
}
html[data-site-theme="front-page"] .newspaper :is(.ed-story h3, .page-title, .article-headlink, .article-body) {
  color: var(--skin-ink);
}
html[data-site-theme="front-page"] .newspaper :is(.ed-story p, .ed-meta, figcaption, .reading-credit, .article-meta-line, .article-detail-lede, .page-copy, .article-lede, .article-meta, .about-copy) {
  color: var(--skin-muted);
}
html[data-site-theme="front-page"] .newspaper :is(.ed-section, .ed-gallery, .ed-about, .ed-bottom, .main-nav, .reading-byline, .reading-endnotes) {
  border-color: var(--skin-ink);
}
html[data-site-theme="front-page"] .newspaper :is(.ed-supporting, .ed-rail, .ed-rail-story, .site-footer, .article-list-item, .photo-card) {
  border-color: var(--skin-rule);
}
html[data-site-theme="front-page"] .newspaper :is(input, select, textarea, .btn-secondary) {
  background-color: var(--skin-paper);
  color: var(--skin-ink);
  border-color: var(--skin-rule);
}
html[data-site-theme="front-page"] .newspaper .btn-primary {
  background: var(--skin-accent);
  border-color: var(--skin-accent);
  color: #fff;
}

/* Front page: headline-driven treatment based on the user's image reference.
   Roboto Serif, OFL-1.1; font and license are stored alongside our other fonts. */
@font-face {
  font-family: "Portfolio Condensed";
  src: url("/assets/fonts/RobotoSerif-CondensedDisplay.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
html[data-site-theme="front-page"] {
  --skin-paper: #fff;
  --skin-ink: #111;
  --skin-muted: #454545;
  --skin-rule: #b8b8b8;
  --skin-accent: #ae2029;
  background: #fff;
}
html[data-site-theme="front-page"] body.newspaper {
  --deep-red: #ae2029;
  --ink-blue: #205a86;
  --editorial-red: #ae2029;
  --editorial-blue: #205a86;
}
html[data-site-theme="front-page"] .newspaper .site-title {
  font-family: "Portfolio Condensed", Georgia, serif;
  font-weight: 800;
  font-size: clamp(38px, 7vw, 100px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: calc(-0.035em + 2pt);
}
html[data-site-theme="front-page"] .newspaper .main-nav {
  border-bottom: 5px double #111;
}
html[data-site-theme="front-page"] .newspaper :is(.ed-section, .ed-gallery) {
  border-top: 5px double #111;
}
html[data-site-theme="front-page"] .newspaper :is(.ed-story h3, .page-title, .article-headlink, .ed-gallery > div a) {
  font-family: "Portfolio Condensed", Georgia, serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
html[data-site-theme="front-page"] .newspaper .ed-section .ed-story h3 {
  font-size: clamp(28px, 3.1cqi, 38px);
}
html[data-site-theme="front-page"] .newspaper .ed-section .ed-lead h3 {
  font-size: clamp(36px, 4.2cqi, 52px);
}
html[data-site-theme="front-page"] .newspaper .ed-main > .ed-section[data-section-index="0"] .ed-lead h3 {
  font-size: clamp(44px, 6.8cqi, 70px);
  line-height: 0.99;
}
html[data-site-theme="front-page"] .newspaper .ed-section .ed-story p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.35;
  color: #292929;
}
html[data-site-theme="front-page"] .newspaper .ed-main > .ed-section[data-section-index="0"] .ed-lead p {
  font-size: 19px;
  line-height: 1.3;
}
html[data-site-theme="front-page"] .newspaper :is(.ed-kicker, .reading-kicker, .page-kicker, .ed-rail-title) {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}
html[data-site-theme="front-page"] .newspaper .ed-section .ed-kicker {
  font-size: 12px;
}
html[data-site-theme="front-page"] .newspaper .ed-section-head h2 {
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
html[data-site-theme="front-page"] .newspaper .ed-rail-story h3 { font-size: 26px; }
html[data-site-theme="front-page"] .newspaper .ed-rail-story:not(:first-of-type) h3 { font-size: 23px; }
html[data-site-theme="front-page"] .newspaper :is(.ed-about h2, .page-title) {
  font-family: "Portfolio Condensed", Georgia, serif;
  font-weight: 800;
  color: #111;
}
html[data-site-theme="front-page"] .newspaper .page-title { font-size: clamp(40px, 5vw, 68px); }
html[data-site-theme="front-page"] .newspaper .article-headlink { font-size: 30px; }
html[data-site-theme="front-page"] .newspaper #ed-gallery-title {
  font: 800 36px/1.05 "Portfolio Condensed", Georgia, serif;
  color: #111;
  letter-spacing: -0.02em;
  text-transform: none;
}
html[data-site-theme="front-page"] .newspaper #ed-gallery-title::before {
  content: "Photography";
  display: table;
  background: #ae2029;
  color: #fff;
  padding: 3px 6px;
  margin-bottom: 8px;
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
html[data-site-theme="front-page"] .newspaper .ed-gallery > div a { font-size: 24px; }
@container editorial-section (max-width: 650px) {
  html[data-site-theme="front-page"] .newspaper .ed-section .ed-story h3 { font-size: 29px; }
  html[data-site-theme="front-page"] .newspaper .ed-section .ed-lead h3 { font-size: 38px; }
  html[data-site-theme="front-page"] .newspaper .ed-main > .ed-section[data-section-index="0"] .ed-lead h3 { font-size: 46px; }
}
@media (max-width: 720px) {
  html[data-site-theme="front-page"] .newspaper .site-title { font-size: clamp(30px, 7.6vw, 48px); }
}

/* Compact current conditions, alongside the market feed. */
body.newspaper .topbar-inner:has(.site-weather) { grid-template-columns: auto minmax(0, 1fr) auto; }
.site-weather { position: relative; width: 170px; color: #444; font: 11px/1.4 Arial, sans-serif; z-index: 510; }
.site-weather summary { display: flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; height: 24px; }
.site-weather summary::-webkit-details-marker { display: none; }
.weather-icon { display: block; width: 20px; height: 22px; flex: 0 0 20px; }
.weather-icon svg { width: 100%; height: 100%; }
.weather-temp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.weather-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-panel { position: absolute; top: 30px; right: 0; width: 260px; box-sizing: border-box; padding: 14px; background: #fff; color: #222; border: 1px solid #aaa; box-shadow: 0 4px 14px #0002; text-align: left; }
.weather-panel p { margin: 0 0 10px; }
.weather-panel small { display: block; margin-top: 12px; font-size: 10px; }
.weather-panel .weather-locate { padding: 5px 9px; background: white; border: 1px solid #aaa; color: #222; font: inherit; cursor: pointer; }
.site-weather summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 720px) {
  body.newspaper .topbar-inner:has(.site-weather) { grid-template-columns: minmax(0, 1fr) auto; }
  body.newspaper .topbar-inner:has(.site-weather) .top-market { grid-column: 1; grid-row: 2; }
  .site-weather { grid-column: 2; grid-row: 2; width: 130px; }
}
