/* Cheesemis foundations. Page compositions live in public.css and studio.css. */
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f7f3ea;
  --ink: #24231f;
  --oxblood: #8c1826;
  --gold: #d6a548;
  --rule: #dcd5c9;
  --muted: #67635c;
  --ad: #eeeae2;
  --ivory: #fbf8f2;
  --panel: #fffdf8;
  --surface: #fff;
  --line: #e6e0d6;
  --canvas: #f5f3ef;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --display: var(--serif);
  --page: 1240px;
  --measure: 43rem;
  --sidebar: 240px;
  --topbar: 72px;
  --workspace: 1480px;
  --settings: 880px;
  --control: 44px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius: 10px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}
html {
  font-size: 16px;
  scroll-padding-top: 104px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
img {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--oxblood);
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
h1,
h2,
h3 {
  overflow-wrap: break-word;
}
.wrap {
  width: min(var(--page), calc(100% - 80px));
  margin-inline: auto;
}
.button,
.filters button,
.pager button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--oxblood);
  border-radius: 6px;
  background: var(--oxblood);
  color: #fff;
  font: 600 14px/1.35 var(--sans);
  text-decoration: none;
  letter-spacing: 0;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  white-space: normal;
  text-align: center;
}
.button:hover,
.button:focus-visible {
  background: #701320;
  color: #fff;
  border-color: #701320;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.button-quiet:hover,
.button-quiet:focus-visible {
  background: #f0ebe2;
  color: var(--oxblood);
  border-color: #bda7a5;
}
.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.button[aria-busy="true"] {
  cursor: progress;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #d6cfc3;
  border-radius: 6px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  max-width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--oxblood);
  width: 18px;
  height: 18px;
  flex: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--oxblood);
  outline: 2px solid #8c182622;
  outline-offset: 1px;
}
:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
}
.field-label {
  display: block;
  font: 600 13px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.meta {
  font: 400 12px/1.65 var(--sans);
  color: var(--muted);
}
.dek {
  font: 400 16px/1.65 var(--sans);
  color: #514e47;
}
.kicker,
.footer-label {
  font: 600 10px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e0d9cc;
  border-radius: 5px;
  padding: 3px 8px;
  background: #f4f0e8;
  color: #544e45;
  font: 600 11px/1.5 var(--sans);
  white-space: nowrap;
}
.badge--published,
.badge--succeeded {
  background: #edf4ee;
  border-color: #d9e7dc;
  color: #31583c;
}
.badge--scheduled,
.badge--queued {
  background: #f1edf7;
  border-color: #e1d9ed;
  color: #65507f;
}
.badge--review,
.badge--blocked {
  background: #fff4de;
  border-color: #eadab4;
  color: #805818;
}
.badge--failed {
  background: #faeceb;
  border-color: #eed4d2;
  color: #8c1826;
}
.sample-banner {
  margin: 0;
  padding: 10px 20px;
  background: #f3ecde;
  border-block: 1px solid #e6dbc7;
  color: #62513a;
  font: 400 12px/1.6 var(--sans);
}
.sample-banner strong {
  font-weight: 600;
  color: inherit;
}
.load-error,
.blocker {
  padding: 12px 16px;
  border: 1px solid #ebcfd1;
  border-radius: 6px;
  background: #fbefef;
  color: #7c1724;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 36px 24px;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.text-link {
  font: 600 13px/1.5 var(--sans);
  color: var(--oxblood);
  text-decoration: none;
}
.text-link::after {
  content: " ↗";
  margin-left: 5px;
}
.spinner,
.edition-loader__spin {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cheesemis-spin 0.8s linear infinite;
}
.button .spinner {
  margin: 0;
}
.edition-loader {
  min-height: 340px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 48px 24px;
  color: var(--oxblood);
}
.edition-loader img {
  width: 200px;
}
.skeleton {
  background: #e8e2d8;
  border-radius: 4px;
  animation: cheesemis-pulse 1.4s ease-in-out infinite;
}
.desk-skeleton {
  height: 140px;
  background: #e8e2d8;
  border-radius: 8px;
  animation: cheesemis-pulse 1.4s ease-in-out infinite;
}
.page-head {
  margin: 0 0 28px;
  padding: 0;
}
.page-head h1 {
  font: 600 clamp(2.5rem, 4.6vw, 4.4rem) / 1.04 var(--serif);
  letter-spacing: -0.035em;
  margin: 4px 0 16px;
}
.page-head p:last-child {
  margin-bottom: 0;
}
.site-footer {
  padding: 40px 0 20px;
  background: #efe9de;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  width: 170px;
  height: auto;
  margin: 0 0 16px;
}
.footer-grid > div > p {
  max-width: 35ch;
  font-size: 13px;
  line-height: 1.8;
  color: #5f594f;
}
.footer-links,
#footer-categories {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}
.footer-links .footer-label {
  margin: 0 0 8px;
  color: #706552;
}
.footer-links a {
  display: block;
  min-height: 28px;
  padding: 3px 0;
  font: 500 12px/1.65 var(--sans);
  text-decoration: none;
  color: var(--ink);
}
.footer-links a:hover {
  text-decoration: underline;
  color: var(--oxblood);
}
.footer-note {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-top: 1px solid #dbd2c3;
  margin-top: 28px;
  padding-top: 18px;
}
.footer-note p {
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
  color: #6d6459;
  max-width: 72ch;
}
@keyframes cheesemis-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cheesemis-pulse {
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .footer-grid {
    gap: 24px;
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-note {
    display: grid;
    gap: 8px;
  }
  .site-footer {
    padding: 30px 0 22px;
  }
  .page-head h1 {
    font-size: 40px;
  }
  .page-head {
    margin-bottom: 24px;
  }
  .edition-loader {
    min-height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.request-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
  background: #8c18261a;
}
.request-progress__bar {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--oxblood);
  animation: request-progress 1.1s ease-in-out infinite;
}
@keyframes request-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(350%);
  }
}
button.is-requesting::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cheesemis-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .request-progress__bar {
    animation: none;
    width: 100%;
    opacity: 0.75;
  }
  button.is-requesting::before {
    animation: none;
  }
}
