:root {
  color-scheme: dark;
  --paper: #1b1a18;
  --surface: #26241f;
  --sand: #302d28;
  --ink: #f5f0e7;
  --muted: #bdb5aa;
  --rule: #49443b;
  --accent: #f2d4a7;
  --accent-dark: #f6deba;
  --green: #b6c0aa;
  --accent-ink: #2b2219;
  --heading-font: "Georgia", "Times New Roman", serif;
  --body-font: "Avenir Next", "Trebuchet MS", sans-serif;
  --shadow: 0 18px 50px #0b09077d;
  --gutter: clamp(24px, 3vw, 60px);
}
* { box-sizing: border-box; }
/* The page keeps its colour below the first screen, where the fixed glow of the body ends. */
html { min-width: 280px; background: var(--paper); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse min(55vw, 760px) 72% at 50% 36%, #39332c 0%, var(--paper) 86%)
    fixed;
  color: var(--ink);
  font: 16px/1.55 var(--body-font);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: wait; opacity: .62; }
a { color: var(--accent-dark); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; background: var(--surface); padding: 10px; z-index: 5; }
.skip-link:not(:focus) { clip-path: inset(100%); }
.wrap { width: min(1480px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
/* Who runs Neverend: required on the site, kept small and below everything else. */
.site-footer { padding-block: 18px 26px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.site-footer p { overflow-wrap: anywhere; }
.site-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent-dark); }
.doc-page { width: min(720px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.doc-page section { padding-block: 8px 28px; }
.doc-page h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 18px; }
.doc-page h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 30px 0 10px; }
.doc-page p, .doc-page li { color: var(--ink); margin: 0 0 10px; }
.doc-page ul { padding-left: 22px; margin: 0 0 10px; }
.doc-page .doc-languages { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc-page .doc-updated { color: var(--muted); font-size: 14px; }

.site-header {
  width: min(1600px, calc(100% - var(--gutter) - var(--gutter)));
  min-height: clamp(57px, 8svh, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font: 500 clamp(26px, 2.3vw, 33px)/1 var(--heading-font);
  letter-spacing: -.055em;
  text-decoration: none;
}
.site-header:has(.workspace-switch:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.site-header > .site-menu { justify-self: end; }
.workspace-switch {
  --publication-share: .5;
  --switch-divider: calc((100% - 6px) * var(--publication-share));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: calc(100% * var(--publication-share)) minmax(0, 1fr);
  width: clamp(186px, 19vw, 242px);
  padding: 3px;
  border: 1px solid #51493e;
  border-radius: 999px;
  background: #211e1a;
}
.workspace-switch::before {
  position: absolute;
  z-index: -1;
  inset-block: 3px;
  left: 3px;
  width: var(--switch-divider);
  border-radius: inherit;
  background: var(--accent);
  box-shadow: inset 0 1px 0 #fff5e580;
  content: "";
}
.workspace-switch:has(> button:nth-child(2)[aria-pressed="true"])::before {
  left: calc(3px + var(--switch-divider));
  width: calc(100% - 6px - var(--switch-divider));
}
.workspace-switch > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 5px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}
.workspace-switch > button[aria-pressed="true"] { color: var(--accent-ink); }
.workspace-switch > button[aria-pressed="false"]:hover { color: var(--ink); }
.workspace-switch > button:focus-visible { outline-offset: -3px; }
.workspace-switch > button[aria-pressed="true"]:focus-visible { outline-color: var(--accent-ink); }
.workspace-switch svg { width: 15px; height: 15px; flex: none; }
.site-menu { position: relative; z-index: 2; }
.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0 6px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.menu-chevron {
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 0;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] .menu-chevron { margin-block: 3px 0; transform: rotate(225deg); }
.site-menu-toggle:is(:hover, [aria-expanded="true"]) { color: var(--accent-dark); }
.site-menu-panel {
  position: absolute;
  inset: calc(100% + 7px) 0 auto auto;
  width: min(225px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  gap: 2px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.site-menu-panel :is(button, a) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.site-menu-panel :is(button, a):hover { background: var(--sand); color: var(--accent-dark); }
.site-menu-panel :focus-visible { outline-offset: -2px; }
main { flex: 1; padding-block: clamp(27px, 3vw, 56px) 58px; }
main:focus { outline: 0; }
main:has(.workspace-home, .public-home) {
  width: min(850px, calc(100% - 2 * var(--gutter)));
  display: grid;
  align-content: start;
  padding-block: clamp(4px, 2.1svh, 22px) 25px;
}

.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 5px 0;
  font-weight: 600;
  font-size: 14px;
}
.site-nav button:hover, .text-button:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 5px; }
main { flex: 1; padding-block: clamp(35px, 6vw, 75px); }
main:focus { outline: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 500; }
h1 { font-size: clamp(42px, 5.2vw, 77px); letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(29px, 3.7vw, 45px); letter-spacing: -.028em; line-height: 1.08; }
h3 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.16; }
.kicker { color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.button, .icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  border: 1px solid #746b60;
  border-radius: 8px;
  line-height: 1.25;
  font-weight: 700;
}
.button { padding: 12px 17px; min-height: 46px; font-size: 14px; }
.button:hover, .icon-button:hover { background-color: var(--sand); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.icon-button { width: 43px; height: 43px; font-size: 20px; flex: none; }

form { margin: 0; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.field :is(input:not([type="file"]), textarea, select) {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #746b60;
  border-radius: 6px;
  background: #211f1b;
  color: var(--ink);
  font-weight: 500;
}
.field input[type="file"] { max-width: 100%; }
.field textarea { resize: vertical; min-height: 92px; }
.field small { color: var(--muted); font-weight: 500; }
.form-fields { display: grid; gap: 15px; }
.field + .form-fields, .form-fields + .form-fields { margin-top: 15px; }
.form-fields > .form-note { margin-top: 0; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
form details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--rule); }
summary { width: fit-content; cursor: pointer; font-size: 14px; font-weight: 650; }
details .form-fields { margin-block: 14px 0; }
.form-note { color: var(--muted); margin-top: 15px; font-size: 13px; }
.form-error, .panel-feedback[data-error="true"] { color: var(--accent-dark); margin-top: 12px; font-size: 14px; }

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border: 1px solid var(--rule);
  background: var(--surface);
}
.preview {
  position: relative;
  min-height: 510px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  background: radial-gradient(ellipse at 50% 30%, #3c342a, #25211d);
}
.preview:empty { display: none; }
.media-stack { display: grid; place-items: center; width: 100%; min-width: 0; }
.media-stack img, .media-stack video {
  width: auto;
  max-width: 100%;
  height: min(48vh, 500px);
  min-height: 300px;
  display: block;
  object-fit: contain;
  box-shadow: 0 12px 35px #0a090871;
  background: #312620;
}
.media-stack video { aspect-ratio: 9/16; }
.media-stack img { aspect-ratio: 4/5; }
.media-error { margin: 5px 0; color: var(--accent-dark); text-align: center; }
.post-info { min-width: 0; padding: clamp(25px, 4vw, 51px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.post-info h2 { max-width: 20ch; overflow-wrap: anywhere; }
.showcase { max-width: 1180px; margin-inline: auto; }
.showcase .preview { background: var(--sand); }
.formats { display: flex; align-items: center; gap: 19px; }
.formats a { color: var(--muted); padding-block: 7px; text-decoration: none; font-weight: 650; }
.formats a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.formats a:hover { color: var(--accent-dark); }
.showcase .media-stack video { height: min(64vh, 650px); min-height: 0; max-width: 100%; }
.showcase .media-stack img {
  height: auto;
  min-height: 0;
  width: min(100%, 400px, 49vh);
}
.showcase .post-info h1 {
  margin-block: 16px 12px;
  max-width: 15ch;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  overflow-wrap: break-word;
}
.showcase-brand { font-size: 14px; font-weight: 650; }
.caption { color: var(--muted); font-size: 15px; margin-top: 18px; white-space: pre-line; overflow-wrap: anywhere; }
.showcase .caption { max-width: 40ch; white-space: pre-wrap; }
.post-actions { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.post-next { margin-top: 13px; }
.progress-hint { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.progress-hint .button { margin-top: 8px; }
.waiting { max-width: 650px; padding: 25px 0 36px; }
.waiting h2 { margin-bottom: 14px; }
.waiting p { color: var(--muted); margin-bottom: 14px; }
.waiting .button { margin-top: 5px; }

dialog {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(620px, calc(100% - 30px));
  max-height: min(88dvh, 740px);
  box-shadow: 0 17px 80px #080705bf;
}
dialog::backdrop { background: #120f0dbf; }
.panel-frame { display: flex; flex-direction: column; max-height: min(88dvh, 740px); min-height: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 27px 17px; border-bottom: 1px solid var(--rule); }
.close-button { width: 42px; height: 42px; border-color: transparent; font-size: 27px; font-weight: 400; }
.panel-body { overflow-y: auto; padding: 19px 27px 26px; overscroll-behavior: contain; }
.panel-body > p { margin-bottom: 13px; color: var(--muted); }
.panel-feedback { margin: 0; padding: 11px 27px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--green); }
.panel-feedback[data-error="true"] { margin-top: 0; }
.settings-connection { border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 16px; }
.monthly-plan-inline { max-width: 740px; padding-top: 19px; border-top: 1px solid var(--rule); }
.plan-summary { color: var(--muted); padding-bottom: 16px; }
.plan-period { color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.plan-period:empty { display: none; }
.plan-period:not(:empty) + .plan-message { margin-top: 5px; }
.plan-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plan-item { padding: 17px 0; border-bottom: 1px solid var(--rule); }
.plan-item-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 12px; color: var(--muted); font-size: 13px; }
.plan-item-status { color: var(--accent-dark); font-weight: 650; }
.plan-item h3 { margin-top: 4px; font: 600 clamp(21px, 4.8vw, 27px)/1.2 var(--heading-font); overflow-wrap: break-word; }
.plan-reason { margin-top: 5px; color: var(--muted); font-size: 14px; overflow-wrap: break-word; }
.plan-agent { margin-top: 5px; font-size: 14px; overflow-wrap: break-word; }
.plan-learned { padding: 0 0 16px; color: var(--muted); font-size: 14px; }
.plan-learned h3 { color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.plan-learned ul { margin: 5px 0 0; padding-left: 16px; }
.plan-source, .plan-item .button { display: inline-flex; margin-top: 8px; margin-right: 10px; font-size: 13px; }
.plan-source { text-underline-offset: 3px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.plan-topic { margin-top: 8px; color: var(--muted); font-size: 14px; }
.plan-topic summary { padding-block: 5px; }
.plan-topic summary:hover, .calendar-caption summary:hover { color: var(--accent-dark); }
.plan-topic-body { margin-top: 7px; padding-left: 12px; border-left: 1px solid var(--rule); overflow-wrap: anywhere; }
.plan-topic dl { margin: 8px 0; }
.plan-topic dt { color: var(--ink); font-weight: 650; }
.plan-topic dd { margin: 0 0 5px; }
.plan-topic ul { margin: 6px 0 0; padding-left: 16px; }
.plan-topic li + li { margin-top: 5px; }
.plan-topic li p { font-size: 13px; }
.plan-other-heading { margin-block: 16px 10px; }
.calendar-list { list-style: none; margin: 0; padding: 0; }
.calendar-list li { border-bottom: 1px solid var(--rule); }
.calendar-list li:last-child { border-bottom: 0; }
.calendar-caption { color: var(--muted); margin-bottom: 12px; }
.calendar-caption summary { min-height: 40px; padding-block: 9px; }
.calendar-caption .caption { margin-top: 4px; white-space: pre-wrap; }
.calendar-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; text-align: left; gap: 10px; padding: 15px 0; border: 0; background: transparent; color: var(--ink); }
.calendar-entry:hover .calendar-title { text-decoration: underline; text-underline-offset: 3px; }
.calendar-title { display: block; overflow-wrap: anywhere; font: 600 22px/1.18 var(--heading-font); }
.calendar-time { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.calendar-status { color: var(--accent-dark); font-size: 12px; text-align: right; }
.material-options { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; }
.material-options legend { font-family: var(--heading-font); font-size: 23px; margin-bottom: 10px; }
.material-limit { color: var(--muted); font-size: 13px; }
.material-options label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; font-size: 14px; overflow-wrap: anywhere; }
.material-options input { accent-color: var(--accent); margin-top: 4px; }
.material-list { border-top: 1px solid var(--rule); margin-top: 21px; padding-top: 16px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 12px 16px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); border-radius: 3px; z-index: 2; font-size: 14px; }
.toast[data-error="true"] { background: #682f35; color: #fff4ef; }

.workspace-home, .public-home, #workspace-content { min-width: 0; }
.release-card {
  /* Leave room below the slide for a two-line title, status, and actions. */
  --print-width: min(490px, max(230px, calc(80svh - 214px)));
  display: grid;
  justify-items: center;
}
.release-preview { width: 100%; }
.release-preview.waiting { padding: 25px; text-align: center; }
.release-preview.preview {
  min-height: 0;
  gap: 4px;
  padding: 0;
  background: transparent;
}
.carousel-stage {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  column-gap: clamp(10px, 2vw, 29px);
  grid-template-areas:
    "previous print next"
    ". count .";
}
.carousel-stage .media-stack { grid-area: print; }
.carousel-stage .carousel-arrow { width: 44px; height: 44px; }
.previous-slide { grid-area: previous; }
.next-slide { grid-area: next; }
#slide-count {
  grid-area: count;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.release-preview .carousel-stage { width: min(100%, calc(var(--print-width) + 144px)); }
.release-preview .media-stack img {
  width: min(100%, var(--print-width));
  height: auto;
  min-height: 0;
  box-shadow: 0 17px 45px #08070692, 0 2px 5px #090807a8;
  background: #201d1a;
}
.release-preview .media-stack video {
  height: min(64svh, 560px);
  min-height: 0;
}
.carousel-arrow.icon-button {
  border-color: transparent;
  border-radius: 50%;
  color: #d9cbb8;
}
.carousel-arrow.icon-button:hover { color: var(--ink); background: #f2d4a714; }
.carousel-arrow svg { width: 22px; height: 22px; }
.release-toolbar {
  width: min(100%, 540px);
  display: grid;
  justify-items: center;
  row-gap: 8px;
  margin-top: 10px;
  text-align: center;
}
.release-toolbar h1 {
  max-width: 100%;
  font: 500 clamp(18px, 2vw, 22px)/1.2 var(--heading-font);
  color: #eee5d8;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.release-story {
  width: min(100%, 540px);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: break-word;
}
/* The field and its button stay on the first screen, so the sample slide gives up some height. */
.release-card:has(.trial-form) { --print-width: min(490px, max(230px, calc(80svh - 300px))); }
.trial-form {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 10px;
  text-align: left;
}
.trial-form .field { margin: 0; }
.trial-form .form-note, .trial-form .form-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) {
  .trial-form { grid-template-columns: minmax(0, 1fr); }
  .trial-form .button { justify-self: stretch; }
}
.trial-start {
  width: min(100%, 540px);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: break-word;
}
.trial-start p { margin-top: 6px; }
.trial-start p:first-child { margin-top: 0; }
.trial-start .trial-niche { color: #eee5d8; }
.trial-start .trial-niche .button { margin-left: 8px; padding: 4px 10px; min-height: 30px; font-size: 13px; }
.trial-start > .button { margin-top: 12px; }
.trial-samples { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.trial-samples h2 { color: #eee5d8; font: 600 15px/1.3 var(--body-font, inherit); }
.trial-samples ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.sample-tile { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sample-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #1d1a17; }
.sample-tile span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.sample-tile:focus-visible { outline: 2px solid #eee5d8; outline-offset: 3px; }
.sample-result { margin-top: 4px; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.sample-result a { color: #eee5d8; }
.showcase-consent { width: min(100%, 540px); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 14px; line-height: 1.45; text-align: left; overflow-wrap: break-word; }
.showcase-consent .consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sample-slides { display: grid; gap: 12px; }
.sample-slides img { display: block; width: 100%; border-radius: 6px; }
.release-story h2 { margin-top: 12px; color: #eee5d8; font: 600 15px/1.3 var(--body-font, inherit); }
.release-story h2:first-child { margin-top: 0; }
.release-story p { margin-top: 4px; }
.release-story .story-result { color: #eee5d8; font-weight: 650; }
.story-block { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 6px; color: #eee5d8; }
.story-block ul { margin: 6px 0 0; padding-left: 16px; }
.release-state, .release-feedback {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
/* Keep both live regions available before their first update. */
.release-state:empty, .release-feedback:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.progress-hint:empty { display: none; }
.release-actions {
  justify-content: center;
  width: auto;
  margin-top: 4px;
  gap: 10px;
}
.release-actions .button {
  min-height: 46px;
  padding: 10px 19px;
  border-radius: 999px;
  font-weight: 650;
}
.release-actions[data-decision] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.release-actions .button svg { width: 18px; height: 18px; flex: none; }
.release-actions .button[aria-disabled="true"] { opacity: .55; cursor: default; }
.release-feedback .button { margin-top: 8px; }
.release-waiting { max-width: 650px; margin: clamp(24px, 10svh, 120px) auto 0; text-align: center; }
.release-waiting h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 13px; }
.release-waiting p { max-width: 52ch; color: var(--muted); }
.release-waiting .button { margin-top: 17px; }

.grid-view {
  width: min(100%, 720px);
  margin-inline: auto;
  padding-top: clamp(4px, 1.5vw, 20px);
  container-type: inline-size;
}
.grid-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: clamp(9px, 2vw, 18px);
}
.grid-month-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0px, 1.2cqi, 9px);
}
.grid-month-label {
  width: clamp(126px, 30cqi, 193px);
  min-width: max-content;
  font: 500 clamp(18px, 4.3cqi, 30px)/1.12 var(--heading-font);
  letter-spacing: -.025em;
  text-align: center;
  white-space: nowrap;
}
.grid-month-nav .icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
}
.grid-month-nav .icon-button:hover { background: #f2d4a711; color: var(--ink); }
.grid-month-nav svg, .grid-add svg { width: 17px; height: 17px; flex: none; }
.grid-add {
  padding: 0 13px;
  min-height: 38px;
  border-color: #61574a;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2px, .55cqi, 4px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed-grid-item { min-width: 0; }
.feed-tile {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #302b24;
  color: var(--ink);
  text-align: left;
}
.feed-tile[data-entry="manual"] { background: #302b30; }
.feed-tile[data-entry="planned"] { background: #322d26; }
.feed-tile-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
button.feed-tile:hover::after,
button.feed-tile:focus-visible::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}
button.feed-tile:hover::after { box-shadow: inset 0 0 0 1px #f6deba94; }
button.feed-tile:focus-visible { outline: 0; }
button.feed-tile:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); }
.feed-tile-text {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.8cqi, 13px);
  min-width: 0;
  min-height: 0;
  padding: clamp(6px, 2.55cqi, 18px);
  overflow: hidden;
}
.feed-tile-date {
  order: -1;
  flex: none;
  color: #e1c8a5;
  font-size: clamp(10px, 2.15cqi, 13px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.2;
}
.feed-tile-title {
  display: -webkit-box;
  overflow: hidden;
  color: #f5ede0;
  font: 500 clamp(12px, 3.55cqi, 23px)/1.15 var(--heading-font);
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}
.feed-tile-kind {
  align-self: flex-start;
  flex: none;
  margin-top: auto;
  color: #d9c4d2;
  font-size: clamp(9px, 2cqi, 12px);
  font-weight: 650;
  line-height: 1.15;
}
.grid-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: clamp(220px, 55cqi, 320px);
  padding: 18px;
  border-block: 1px solid var(--rule);
  background: #211e1a90;
  color: var(--muted);
  text-align: center;
}
@container (max-width: 400px) {
  .feed-tile-title { -webkit-line-clamp: 7; }
  .feed-tile[data-entry="manual"] .feed-tile-title { -webkit-line-clamp: 6; }
}
@container (max-width: 310px) {
  .feed-tile[data-entry="manual"] .feed-tile-title { -webkit-line-clamp: 5; }
}

@media (max-width: 650px) {
  :root { --gutter: 16px; }
  body { background: radial-gradient(ellipse 120vw 62% at 50% 34%, #37312b, var(--paper) 86%) fixed; }
  .site-header { min-height: 56px; }
  main { padding-block: 22px 34px; }
  main:has(.workspace-home, .public-home) { padding-top: 7px; }
  h1 { font-size: clamp(34px, 10vw, 52px); }
  .editorial-layout { grid-template-columns: minmax(0, 1fr); }
  .preview { min-height: 0; padding: 17px 12px 12px; }
  .media-stack img, .media-stack video { height: min(48vh, 390px); min-height: 235px; }
  .post-info { padding: 23px 18px; }
  .showcase .media-stack img { width: min(100%, 49svh); }
  .showcase .post-info h1 { margin-block: 10px 8px; font-size: clamp(34px, 8vw, 49px); }
  .release-card { --print-width: min(420px, max(245px, calc(80svh - 146px))); }
  .panel-heading { padding: 16px 17px 12px; }
  .panel-body { padding: 15px 17px 21px; }
  .panel-feedback { padding-inline: 17px; }
  .calendar-entry { grid-template-columns: 1fr; gap: 5px; }
  .calendar-status { text-align: left; }
  .site-header:has(.workspace-switch:not([hidden])) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
  }
  .site-header:has(.workspace-switch:not([hidden])) .brand { font-size: clamp(22px, 5.6vw, 27px); }
  .workspace-switch { justify-self: center; width: min(100%, 218px); }
}
@media (max-width: 480px) {
  .workspace-switch { --publication-share: .6; }
  .workspace-switch > button { font-size: 12px; }
  .workspace-switch svg { width: 13px; height: 13px; }
  .grid-month-nav { gap: 0; }
  .grid-month-nav .icon-button { width: 32px; }
  .grid-add { gap: 4px; padding-inline: 8px; font-size: 12px; }
  .carousel-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "print print print" "previous count next";
    column-gap: 0;
  }
  .carousel-stage.media-controls { row-gap: 1px; }
  #slide-count { margin: 0; }
  .release-preview .carousel-stage { width: min(100%, var(--print-width)); }
  .release-toolbar { margin-top: 4px; }
  .release-actions[data-decision] {
    width: min(100%, 338px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .release-actions[data-decision] .button { padding-inline: 9px; }
}
@media (max-width: 365px) {
  .site-header:has(.workspace-switch:not([hidden])) { --gutter: 12px; gap: 6px; }
  .site-header:has(.workspace-switch:not([hidden])) .brand { font-size: 21px; }
  .workspace-switch { --publication-share: .64; }
  .workspace-switch > button { gap: 4px; padding-inline: 2px; font-size: 11px; }
  .workspace-switch svg { width: 12px; height: 12px; }
  .site-header:has(.workspace-switch:not([hidden])) .site-menu-toggle {
    position: relative;
    width: 44px;
    padding: 0;
  }
  .site-header:has(.workspace-switch:not([hidden])) .site-menu-label {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .site-header:has(.workspace-switch:not([hidden])) .menu-chevron {
    width: 14px;
    height: 10px;
    margin: 0;
    border-width: 1px 0;
    background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat;
    transform: none;
  }
  main:has(.grid-view:not([hidden])) { --gutter: 12px; }
  .grid-month-label { width: 121px; font-size: 18px; }
  .grid-add-noun { display: none; }
}
@media (max-width: 350px) {
  main:has(.workspace-home, .public-home) { --gutter: 22px; }
  .form-split { grid-template-columns: 1fr; }
  .release-actions .button { gap: 5px; }
}
@media (max-width: 310px) {
  .workspace-switch { --publication-share: .66; }
  .workspace-switch svg { display: none; }
  .grid-add { width: 40px; height: 40px; padding: 0; }
  .grid-add > span { display: none; }
  .feed-tile-text { padding: 4px; }
  .feed-tile-title { font-size: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-menu :is(button, a), .button, .icon-button {
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  }
  .workspace-switch::before {
    transition: left 210ms cubic-bezier(.22, .7, .3, 1), width 210ms cubic-bezier(.22, .7, .3, 1);
  }
}
