@font-face {
  font-family: Experimental;
  src: url("/experimental-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Experimental;
  src: url("/experimental-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #000;
  color: #fff;
  font-family: Experimental, Arial, sans-serif;
  font-synthesis: none;
}

.screen {
  --side: clamp(20px, 4vw, 66px);
  --top: max(clamp(12px, 2.8vh, 32px), env(safe-area-inset-top));
  --bottom: max(clamp(18px, 4vh, 44px), env(safe-area-inset-bottom));
  box-sizing: border-box;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  margin: 0;
  padding: var(--top) var(--side) var(--bottom);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.top-bar {
  position: relative;
  z-index: 1;
  min-block-size: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.identity {
  --brand-size: clamp(18px, 5.3vw, 29px);
  display: flex;
  align-items: center;
  margin: 0;
  font-size: var(--brand-size);
  line-height: 1;
}

.identity-mark {
  display: block;
  flex: none;
  inline-size: 1.13em;
  block-size: auto;
  margin-inline-end: .3em;
}

.wordmark {
  font-weight: 500;
  white-space: nowrap;
}

.alternate-a {
  font-feature-settings: "ss01";
}

.descriptor {
  display: grid;
  align-content: center;
  min-block-size: calc(var(--brand-size) * 1.16);
  margin-inline-start: calc(var(--brand-size) * .48);
  padding-inline-start: calc(var(--brand-size) * .48);
  border-inline-start: 1px solid #929292;
  font-size: clamp(11px, 1.15vw, 15px);
  line-height: 1.02;
  font-weight: 400;
  white-space: nowrap;
}

.about {
  position: relative;
  flex: none;
}

.about summary {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .27em;
  list-style: none;
  cursor: pointer;
}

.about summary::-webkit-details-marker { display: none; }
.about summary:hover { text-decoration-thickness: 2px; }

.about summary:focus-visible,
.mark-study:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.about-note {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  box-sizing: border-box;
  inline-size: min(252px, calc(100vw - 2 * var(--side)));
  padding-block: 9px 12px;
  border-block-start: 1px solid #5b5b5b;
  background: #000;
  text-align: start;
}

.about-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.center {
  display: grid;
  place-items: center;
  min-inline-size: 0;
}

.mark-study {
  display: block;
  inline-size: clamp(137px, 18.5vw, 211px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 1;
}

.mark-study:enabled { cursor: pointer; }

.mark-study video {
  display: block;
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

.bottom-bar {
  display: grid;
  min-block-size: 44px;
  place-items: center;
}

.clock {
  color: #fff;
  font: 400 clamp(10px, 1.3vw, 12px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

@media (max-height: 450px) and (orientation: landscape) {
  .mark-study { inline-size: max(114px, 40vh); }
}

@media (prefers-reduced-motion: no-preference) {
  .about[open] .about-note { animation: disclose 160ms ease-out both; }

  @keyframes disclose {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
