:root {
  color-scheme: light;
  --paper: #e9e9e9;
  --ink: #273965;
  --muted: #526081;
  --accent: #264dad;
  --lamp-mid: #e74a40;
  --lamp-high: #f1928c;
  --lamp-low: #96302a;
  --lamp-metal: #3476ce;
  --lamp-joint: #ffdc54;
  --light-color: #fff4d6;
  --ui-bg: #f0efeb;
  --ui-ink: #383838;
  --ui-line: #aaa9a3;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #202124;
  --ink: #e4e5e7;
  --muted: #b9babc;
  --accent: #98bcf5;
  --lamp-mid: #ff5148;
  --lamp-high: #ff9791;
  --lamp-low: #a6352f;
  --lamp-metal: #3986f5;
  --lamp-joint: #ffda38;
  --light-color: #ffedbd;
  --ui-bg: #272727;
  --ui-ink: #e7e7e7;
  --ui-line: #555555;
}
:root[data-theme="dark"] #light-pool {
  opacity: .24;
}
:root[data-theme="dark"] #light-beam {
  opacity: .18;
}
#light-ambient {
  opacity: 0;
}
/* Give the warm light contrast against white paper. */
:root[data-theme="light"] #light-ambient {
  opacity: .08;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(240px, 31vh, 340px) clamp(28px, 11vw, 180px) 110px;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  background-image: url("grain.png");
}
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  visibility: hidden;
}
.scene.ready {
  visibility: visible;
}
main {
  position: relative;
  max-width: 665px;
}
h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .45em;
  align-items: baseline;
  margin: 0 0 23px;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.045em;
}
h1 [lang="hi"] {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: .9em;
  letter-spacing: -.035em;
}
.separator {
  font-weight: 300;
  color: var(--muted);
}
p {
  margin: 0 0 19px;
}
a {
  color: var(--accent);
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}
nav {
  display: flex;
  gap: 24px;
  margin: 25px 0 15px;
  font-size: 14px;
}
.mail {
  font: 12px/1.6 ui-monospace, SFMono-Regular, monospace;
  color: var(--muted);
  text-decoration: none;
}
.work {
  margin-top: 55px;
}
h2 {
  margin: 0 0 23px;
  color: var(--muted);
  font: 11px/1.4 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.work ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 19px;
}
.work li {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 20px;
  align-items: baseline;
  font-size: 14px;
}
time {
  color: var(--muted);
  font: 11px/1.6 ui-monospace, monospace;
  white-space: nowrap;
}
.shadow {
  text-shadow: var(--cast, 2px 3px 3px #65522d18);
}
.controls {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  display: flex;
  gap: 8px;
}
.controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sun, .bulb-off {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: block;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
#light-switch[aria-pressed="false"] .bulb-rays {
  display: none;
}
#light-switch[aria-pressed="false"] .bulb-off {
  display: block;
}
.controls[hidden] {
  display: none;
}
button {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background: var(--ui-bg);
  padding: 8px 13px;
  cursor: pointer;
}
button:hover {
  border-color: var(--ui-ink);
}
@media (max-width: 760px) {
  .stage {
    padding: 285px 28px 110px;
  }
  main {
    max-width: 580px;
  }
  h1 {
    font-size: 27px;
    gap: 0 .35em;
  }
  .work {
    margin-top: 38px;
  }
  .work li {
    gap: 12px;
    grid-template-columns: 73px 1fr;
  }
}
@media (min-width: 641px) {
  .stage {
    padding-left: clamp(300px, calc(25vw + 40px), 440px);
  }
}
@media (max-width: 380px) {
  h1 .separator {
    display: none;
  }
  h1 {
    flex-direction: column;
  }
}
