:root {
  color-scheme: light;
  --bar: #111111;
  --accent: #ff4548;
  --text: #ffffff;
  --muted: #b9b9b9;
  --paper: #ececec;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: #151515;
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(16px, 3vw, 40px);
  color: var(--text);
  background: rgba(17, 17, 17, .98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 15px; line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}

.preview-nav a,
.menu-button {
  border: 0;
  border-radius: 5px;
  padding: 10px 12px;
  color: #d9d9d9;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.preview-nav a:hover,
.preview-nav a:focus-visible,
.preview-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.menu-button { display: none; margin-left: auto; background: #2b2b2b; }

.status {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px auto 10px;
  padding: 0 16px;
  color: #444;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 69, 72, .13);
}

.status-note { margin-left: auto; color: #777; }

.canvas {
  width: min(100%, 900px);
  min-height: 70vh;
  margin: 0 auto 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .14);
}

.canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.not-found {
  width: min(680px, calc(100% - 32px));
  margin: 80px auto;
  padding: 48px;
  text-align: center;
  background: #fff;
}

.not-found a { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .preview-bar { flex-wrap: wrap; gap: 8px; }
  .menu-button { display: block; }
  .preview-nav {
    display: none;
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid #343434;
  }
  .preview-nav.is-open { display: flex; }
  .preview-nav a { flex: 1 0 calc(25% - 4px); text-align: center; }
  .status { margin-top: 12px; }
}

@media (max-width: 520px) {
  .preview-bar { min-height: 58px; padding: 9px 12px; }
  .brand small { display: none; }
  .preview-nav a { flex-basis: calc(50% - 4px); }
  .status-note { display: none; }
  .canvas { margin-bottom: 0; box-shadow: none; }
}
