:root {
  --blue: #004dff;
  --white: #F5FFFE;
  --bg: #FBFBF9;

  --rail: clamp(180px, 20vw, 280px); /* thin left strip for the name */
  --pad: clamp(0.75rem, 2.5vw, 2.5rem); /* breathing room around the feed */
  --gap: 4vh; /* gap between stacked images */
  --frame-h: 80vh; /* each image fills most of the viewport */
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--blue);
  font-family: 'Untitled Sans', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Thin vertical strip, pinned left, same background as the page. */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: var(--pad) 0 0 var(--pad);
  z-index: 2;
}

.rail-name {
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.rail-handle {
  color: inherit;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  text-decoration: underline;
  opacity: 0.8;
}

.rail-handle:hover {
  opacity: 1;
}

.rail-project {
  margin: 1.5em 0 0;
  padding-right: var(--pad);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.45;
  font-weight: 400;
}

.rail-project-label {
  display: block;
  margin-bottom: 0.35em;
}

/* Scrollable feed of large, stacked images to the right of the rail. */
.feed {
  margin-left: var(--rail);
  padding: var(--pad) var(--pad) calc(var(--pad) + 6vh) var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.frame {
  display: block;
  position: relative;
  width: 100%;
  height: var(--frame-h);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--frame-border, #004dff) 55%, transparent);
}

@supports (height: 100dvh) {
  .frame {
    height: 80dvh;
  }
}

.frame-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
