/* Changely: one stylesheet for the dashboard, sign-in, home and public changelog pages.
   The look is plain and technical: graphite ink on white, one ink-blue accent, IBM Plex. */

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #1c2330;
  --ink-soft: #3d4655;
  --muted: #5b6474;
  --line: #e3e6ec;
  --line-strong: #d5dae3;
  --field: #c9cfda;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --accent: #2450c9;
  --improved: #1d7a55;
  --fixed: #a2531a;
  --danger: #b42318;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: 22px;
  font-weight: 600;
}

h2 {
  font-size: 15px;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: color-mix(in srgb, var(--accent) 75%, #000);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--mono);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wordmark {
  font: 600 16px / 1 var(--mono);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* Controls */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 14px / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--wash);
  color: var(--ink);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.button.primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: #fff;
}

.button.quiet {
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.button.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.button.large {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.button.danger-button {
  border-color: var(--danger);
  color: var(--danger);
}

.button.danger-button:hover {
  background: #fdf1f0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  padding: 0;
  font-weight: 500;
}

.field legend {
  margin-bottom: 6px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
input:not([type]),
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px / 1.4 var(--sans);
}

textarea {
  min-height: 220px;
  font: 400 14px / 1.65 var(--mono);
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

input[type="color"] {
  width: 52px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.field-error {
  font-size: 13px;
  color: var(--danger);
}

.affix {
  display: flex;
  align-items: stretch;
}

.affix input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
}

.affix-text {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--wash);
  color: var(--muted);
  font: 400 14px / 1 var(--mono);
  white-space: nowrap;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: 500 13px / 1 var(--mono);
  cursor: pointer;
}

.segment input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.segment input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--danger);
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.notice {
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--ink);
  font-size: 14px;
}

.dev-note {
  padding: 10px 14px;
  border: 1px dashed var(--field);
  border-radius: 8px;
  font-size: 14px;
}

details.danger summary {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

details.danger[open] summary {
  margin-bottom: 14px;
}

details.danger p {
  color: var(--ink-soft);
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* A DNS record to copy, and the states of a custom domain */
.record {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--wash);
}

.record dd {
  font-family: var(--mono);
  font-size: 13px;
}

.state-ok {
  color: var(--improved);
  font-weight: 500;
}

.state-wait {
  color: var(--fixed);
  font-weight: 500;
}

.state-bad {
  color: var(--danger);
  font-weight: 500;
}

.row .domain-input {
  flex: 1 1 260px;
  width: auto;
}

.code {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.code-bar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 6px 0;
}

.code pre {
  margin: 0;
  padding: 2px 12px 12px;
  color: #e6e9ef;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code .button {
  border-color: #3a4352;
  background: #283041;
  color: #e6e9ef;
}

/* Signing in and setting up */

body.narrow {
  background: var(--wash);
}

.narrow-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 440px;
  margin: 0 auto;
  padding: 72px 16px;
}

.narrow-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 32px;
}

.legal-note {
  color: var(--muted);
  font-size: 13px;
}

/* Privacy policy and terms */

body.legal {
  background: var(--wash);
}

.legal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 16px;
}

.legal-text {
  width: 100%;
  padding: 32px;
}

.legal-text h2 {
  margin-top: 28px;
}

.legal-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.legal-links a {
  color: var(--muted);
}

.home-foot {
  display: flex;
  justify-content: center;
  padding: 0 16px 40px;
}

/* Dashboard */

body.dash {
  background: var(--wash);
  font-size: 14px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 56px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
}

.tabs a {
  padding: 17px 10px 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.tabs a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.workspace {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px
    max(16px, env(safe-area-inset-left, 0px));
}

.post-list {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 300px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h1 {
  font-size: 18px;
}

.list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  list-style: none;
}

.list li + li {
  border-top: 1px solid #eef0f4;
}

.list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.list a:hover {
  background: var(--wash);
}

.list a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}

.list-title {
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.list-state {
  font: 400 12px / 1.4 var(--mono);
  color: var(--muted);
}

.list-state.draft {
  color: var(--fixed);
}

.list-state.scheduled {
  color: var(--accent);
}

.empty {
  padding: 16px 14px;
  border: 1px dashed var(--field);
  border-radius: var(--radius);
  color: var(--muted);
}

.editor {
  display: flex;
  flex: 999 1 440px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.status {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}

.button[aria-expanded="true"] {
  border-color: var(--ink);
}

/* The row the Schedule button opens, under the editor's buttons */
.later {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--wash);
}

.later[hidden] {
  display: none;
}

.later .when {
  width: 230px;
  font-family: var(--mono);
  font-size: 14px;
}

.later-zone {
  align-self: center;
}

.later .field-error {
  flex-basis: 100%;
}

.side {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 360px;
}

.side-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Shown across the dashboard when Changely took the owner's changelog down. */
.banner {
  margin: 0;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px
    max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #f1c7c1;
  background: #fdf1f0;
  color: #7a1c12;
  font-size: 14px;
}

/* Reporting a page and reviewing reports */

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.report-head h3 {
  font-size: 16px;
  font-weight: 600;
}

.report-owner {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.report-meta time {
  font: 400 12px / 1.4 var(--mono);
  color: var(--muted);
}

.report-details {
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.down-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
}

.down-site {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* On a phone the three columns stack, so the side columns take the full width. */
@media (max-width: 760px) {
  .post-list,
  .side {
    max-width: none;
  }
}

.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px
    max(16px, env(safe-area-inset-left, 0px));
}

/* The widget's look, drawn on the server for the editor's preview and the home page */

.pv {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(28, 35, 48, 0.1);
}

.pv-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.pv-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.pv-item + .pv-item {
  border-top: 1px solid #eef0f4;
}

.pv-item.unread {
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}

.pv-meta {
  display: flex;
  gap: 10px;
  font: 400 12px / 1.4 var(--mono);
  color: var(--muted);
}

.pv-title {
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pv-summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cat {
  font-weight: 500;
}

.cat-new {
  color: var(--accent);
}

.cat-improved {
  color: var(--improved);
}

.cat-fixed {
  color: var(--fixed);
}

/* Home */

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px
    max(16px, env(safe-area-inset-left, 0px));
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) 96px
    max(16px, env(safe-area-inset-left, 0px));
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-demo {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 400px;
}

.demo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--field);
  border-radius: 8px;
  font-weight: 500;
}

.demo-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: 600 11px / 18px var(--sans);
  text-align: center;
}

.demo-panel {
  width: 100%;
  box-shadow: 0 14px 36px rgba(28, 35, 48, 0.16);
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing h2 {
  font-size: 22px;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.plan {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan h3 {
  font-size: 16px;
  font-weight: 600;
}

.price {
  font: 500 24px / 1.2 var(--mono);
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.soon {
  color: var(--muted);
  font-size: 13px;
}

/* Public changelog page */

body.changelog {
  font-size: 16px;
  line-height: 1.6;
}

.cl {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px max(16px, env(safe-area-inset-right, 0px)) 48px
    max(16px, env(safe-area-inset-left, 0px));
}

.cl-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cl-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.cl-title-row h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cl-rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.cl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.cl-filters a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cl-posts {
  display: flex;
  flex-direction: column;
}

.cl-post {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.cl-post:target {
  background: linear-gradient(color-mix(in srgb, var(--accent) 6%, #fff), #fff);
}

.cl-meta {
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  gap: 2px;
  font: 500 13px / 1.5 var(--mono);
}

.cl-body {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 640px;
}

.cl-body h2 {
  font-size: 21px;
  line-height: 1.3;
}

.cl-body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.prose {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.prose pre {
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--wash);
}

.prose code {
  font-size: 0.9em;
}

.cl-empty {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.cl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.cl-foot a {
  color: var(--muted);
}

.cl-foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cl-brand {
  text-decoration: none;
}

.cl-missing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 48px;
}
