@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #090909;
  color: #f3f1ec;
  font-optical-sizing: auto;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #d5f36a;
  outline-offset: 5px;
}

.site-header,
.site-footer {
  width: min(100% - 96px, 1440px);
  margin-inline: auto;
  display: flex;

  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  isolation: isolate;
  border-bottom: 1px solid #252525;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  background: #1d1d1d;
  content: "";
  inset: 0;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1000ms ease;
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header-inner {
  width: min(100% - 96px, 1440px);
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.07em;
}

.wordmark-dot {
  color: #d5f36a;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #a4a4a0;
  font-size: 13px;
}

nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a,
.site-footer a,
.text-link {
  transition: color 160ms ease;
}

nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: #d5f36a;
}

nav span,
.site-footer a span,
.text-link span {
  margin-left: 4px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #a4a4a0;
  font-size: 12px;
  line-height: 1;
}

.drive-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.drive-nav-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.drive-nav-link:hover {
  color: #d5f36a;
}

.logout-button {
  border: 1px solid #494944;
  border-radius: 3px;
  padding: 8px 12px;
  background: transparent;
  color: #d3d2cc;
  font: inherit;
  cursor: pointer;
}

.logout-button:hover {
  border-color: #d5f36a;
  color: #d5f36a;
}

.logout-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  width: min(100% - 96px, 1440px);
  padding-block: 140px 160px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: #a4a4a0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5f36a;
  box-shadow: 0 0 12px #d5f36666;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(56px, 9.5vw, 132px);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.98;
}

h1 span {
  color: #777773;
}

.hero-copy {
  max-width: 380px;
  margin: 32px 0 25px;
  color: #a4a4a0;
  font-size: 15px;
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid #60605b;
  font-size: 13px;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 60px;
  color: #62625e;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-footer {
  min-height: 88px;
  border-top: 1px solid #252525;
  color: #a4a4a0;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f3f1ec;
}

.copyright {
  color: #62625e;
}

.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 72px 20px;
}

.login-card {
  width: min(100%, 420px);
}

.login-card .eyebrow {
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: clamp(56px, 10vw, 76px);
}

.login-note {
  color: #a4a4a0;
  font-size: 14px;
  line-height: 1.7;
}

#login-title {
  margin: 0 0 34px;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  margin-top: 6px;
  color: #d3d2cc;
  font-size: 12px;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #30302d;
  border-radius: 3px;
  background: #10100f;
  color: #f3f1ec;
  font: inherit;
  font-size: 14px;
}

.login-form input::placeholder {
  color: #62625e;
}

.login-form input:focus-visible {
  outline: 2px solid #d5f36a;
  outline-offset: 2px;
}

.login-form button {
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 3px;
  background: #d5f36a;
  color: #090909;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.login-form button:hover {
  background: #e2ff83;
}

.login-form button:disabled,
.login-form button[aria-disabled="true"],
.login-form button:disabled:hover,
.login-form button[aria-disabled="true"]:hover {
  background: #555650;
  color: #b7b7b1;
  cursor: not-allowed;
}

.login-form button:focus-visible {
  outline: 2px solid #f3f1ec;
  outline-offset: 3px;
}

.login-note {
  margin-top: 20px;
  font-size: 12px;
}

.drive-main {
  display: block;
}

.drive-page {
  width: min(100% - 96px, 1440px);
  margin: 0 auto;
  padding-block: 72px 120px;
}

.drive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #292929;
  border-radius: 8px;
  background: #111;
  margin-bottom: 20px;
}

.drive-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drive-inline-form input {
  min-height: 40px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid #383838;
  border-radius: 6px;
  background: #090909;
  color: #f3f1ec;
  font: inherit;
}

.drive-inline-form input.visually-hidden {
  min-height: 1px;
  padding: 0;
  border: 0;
}

.drive-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.drive-button-secondary {
  border-color: #3a3a3a;
  background: #191919;
  color: #f3f1ec;
}

.drive-button-secondary:hover {
  border-color: #585858;
  background: #222;
}

.drive-button-primary {
  background: #d5f36a;
  color: #090909;
}

.drive-button-primary:hover {
  background: #e2ff83;
}

.drive-button-upload {
  background: #292929;
  color: #f3f1ec;
}

.drive-button-upload:not(:disabled):hover {
  background: #383838;
}

.drive-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.drive-upload-form {
  flex: 1;
  min-width: min(100%, 360px);
  justify-content: flex-end;
  padding-left: 12px;
  border-left: 1px solid #303030;
}

.drive-selected-file {
  min-width: 0;
  overflow: hidden;
  color: #969690;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-inline-form[hidden] {
  display: none;
}

.drive-file-size,
.drive-breadcrumbs {
  font-variant-numeric: tabular-nums;
}

.drive-message {
  min-height: 1.5em;
  color: #a4a4a0;
  font-size: 13px;
}

.drive-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  color: #a4a4a0;
  font-size: 13px;
}

.drive-breadcrumbs a:hover,
.drive-folder-link:hover,
.drive-items a:hover {
  color: #d5f36a;
}

.drive-items {
  margin: 0;
  padding: 0;
  border-top: 1px solid #30302d;
  list-style: none;
}

.drive-items li {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #30302d;
}

.drive-file-item {
  gap: 12px;
}

.drive-file-details {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.drive-file-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.drive-video-player {
  width: min(100%, 720px);
  max-height: 70vh;
  border-radius: 8px;
  background: #000;
}

.drive-delete-button,
.drive-edit-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #b7b7b1;
  cursor: pointer;
}

.drive-delete-button svg,
.drive-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.drive-delete-button:hover {
  background: #291919;
  border-color: #e67575;
  color: #ff9a9a;
}

.drive-edit-button:hover {
  background: #222719;
  border-color: #9db84c;
  color: #d5f36a;
}

.drive-delete-button:disabled,
.drive-edit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.drive-folder-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.drive-folder-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drive-item-actions {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
}

.drive-file-size {
  flex: none;
  color: #858580;
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.visually-hidden:focus-visible + .drive-selected-file {
  outline: 2px solid #d5f36a;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-header.is-authenticated .site-header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .site-header.is-authenticated .header-navigation {
    width: 100%;
    justify-content: space-between;
  }

  .site-header.is-authenticated nav {
    gap: 20px;
  }

  .site-header.is-authenticated .header-account-name {
    max-width: min(35vw, 180px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .site-footer,
  .hero {
    width: calc(100% - 40px);
  }

  .site-header-inner {
    width: calc(100% - 40px);
    min-height: 76px;
  }

  nav {
    gap: 20px;
  }

  .header-navigation {
    gap: 20px;
  }

  .header-account {
    gap: 8px;
  }

  .site-header.is-authenticated .header-account-name {
    max-width: min(28vw, 150px);
  }

  .logout-button {
    padding: 6px 9px;
  }

  .hero {
    padding-block: 110px 130px;
  }

  .drive-page {
    width: calc(100% - 40px);
    padding-block: 48px 80px;
  }

  .drive-toolbar,
  .drive-inline-form {
    width: 100%;
  }

  .drive-toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .drive-upload-form {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 12px 0 0;
    border-top: 1px solid #303030;
    border-left: 0;
  }

  .drive-selected-file {
    flex: 1 1 100%;
    order: 1;
  }

  .drive-inline-form input {
    flex: 1;
    min-width: 0;
  }

  h1 {
    font-size: clamp(54px, 15vw, 88px);
  }

  .hero-index {
    bottom: 42px;
  }

  .site-footer {
    min-height: 76px;
    gap: 20px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header::before {
    transition-duration: 500ms!important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
