:root {
  --bg: #dddddd;
  --fg: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.52);
  --font: "Times New Roman", Times, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
p,
a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

body.template-home {
  overflow: hidden;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: default;
}

.stage.is-hot {
  cursor: pointer;
}

.projects-rail {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
}

.projects-rail::-webkit-scrollbar {
  display: none;
}

.projects-rail.is-open {
  pointer-events: auto;
}

.projects-rail-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  width: max-content;
  min-width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.rail-col {
  display: flex;
  flex-direction: column;
  /* gap: 15px; */
  line-height: 1;
  flex: 0 0 auto;
  min-width: 160px;
}

.rail-intro {
  min-width: 240px;
  padding-right: 24px;
}

.rail-intro h1,
.rail-project h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

.rail-col p,
.rail-intro a {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.rail-project:hover h2 {
  text-decoration: underline;
}

.rail-project:hover {
  text-decoration: none;
}

.home-chrome {
  position: fixed;
  top: 1.75rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.site-name {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

.site-tagline {
  margin: 0.2rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.page {
  width: min(920px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-header .site-name {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 14px;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

.crumb {
  margin: 0 0 0.4rem;
  font-size: 14px;
  color: var(--muted);
}

.project-meta-line {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.project-cover img,
.project-list img {
  display: block;
  width: 100%;
  height: auto;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 14px;
}

.prose {
  max-width: 42rem;
}

.credits {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 14px;
}

.credits h2 {
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
}

.light-editor {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  line-height: 1.4;
}

.light-editor header {
  margin-bottom: 0.75rem;
}

.light-editor header strong {
  display: block;
  font-size: 13px;
}

.light-editor header span {
  color: var(--muted);
  font-size: 11px;
}

.light-editor-row {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.light-editor-row.is-selected {
  background: rgba(0, 0, 0, 0.03);
}

.light-editor-swatch {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.light-editor-row code {
  display: block;
  font-size: 11px;
  color: #444;
}

.light-editor label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.light-editor input[type="range"] {
  width: 100%;
  vertical-align: middle;
}

.light-editor-global {
  margin-top: 0.35rem;
}

.light-editor-code {
  margin: 0.75rem 0 0.5rem;
  padding: 0.6rem;
  background: #f4f4f4;
  font-size: 10px;
  overflow-x: auto;
  white-space: pre;
}

.light-editor-copy {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  font: inherit;
}
