@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-Regular.ttf");
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Regular.ttf");
}
:root {
  --paper: #faf9f5;
  --ink: #1a1814;
  --ink2: #6b6862;
  --line: #e6e3db;
  --sheet: #fff;
  --surface: #f3f1eb;
  --accent: #ff7a3a;
  --bad: #a93e34;
  --fast: 150ms;
  --move: 240ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1814;
    --ink: #f0eee5;
    --ink2: #a09e96;
    --line: #3d3a30;
    --sheet: #2c2920;
    --surface: #232017;
    --bad: #e0897f;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1040px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
header > span {
  font-size: 12px;
  color: var(--ink2);
}
a {
  color: var(--ink);
  text-underline-offset: 4px;
}
.wordmark {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
main {
  max-width: 660px;
  margin: 72px auto 80px;
  padding: 0 24px;
  text-align: center;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
}
p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink2);
  margin: 0 0 28px;
}
button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #1a1814;
  font:
    500 15px/1.4 Geist,
    system-ui,
    sans-serif;
  padding: 13px 24px;
  min-height: 46px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
button:active,
.button:active {
  transform: scale(0.98);
}
button:hover,
.button:hover {
  background: #f5610f;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.file {
  width: 80px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sheet);
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font:
    15px "Geist Mono",
    monospace;
  color: var(--ink2);
}
.size {
  font-size: 12px;
  margin: 14px 0 0;
}
.with-preview {
  max-width: 1040px;
  margin-top: 40px;
  margin-bottom: 48px;
}
.with-preview h1 {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: 32px;
  line-height: 1.25;
}
.preview-meta {
  font-size: 13px;
  margin-bottom: 24px;
}
.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.preview video,
.preview img {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.preview video {
  aspect-ratio: 16 / 9;
  background: #1a1814;
}
.preview-image img {
  width: auto;
  max-width: 100%;
  margin: auto;
}
.preview-audio {
  padding: 40px 24px;
}
.preview audio {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: auto;
}
.preview iframe {
  display: block;
  width: 100%;
  height: 65vh;
  min-height: 320px;
  border: 0;
  background: var(--paper);
}
.preview-text-content {
  max-height: 65vh;
  min-height: 200px;
  overflow: auto;
  margin: 0;
  padding: 24px;
  text-align: left;
  font:
    13px/1.65 "Geist Mono",
    monospace;
  tab-size: 2;
}
.preview-text-content:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}
.file-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
}
.open-file {
  padding: 12px 0;
  font-size: 15px;
}
.preview-error {
  font-size: 13px;
  margin: 16px 0 0;
}
footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  text-align: center;
  font-size: 12px;
}
form {
  max-width: 320px;
  margin: 0 auto;
  text-align: left;
}
label {
  font-size: 13px;
  color: var(--ink2);
  display: block;
  margin: 0 0 8px;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
  font:
    15px Geist,
    system-ui,
    sans-serif;
  background: var(--surface);
  color: var(--ink);
}
form button {
  width: 100%;
  margin-top: 14px;
}
.error {
  font-size: 13px;
  color: var(--bad);
  margin: 10px 0 0;
}
.lock {
  width: 44px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  margin: 22px auto 40px;
  position: relative;
}
.lock:before {
  content: "";
  position: absolute;
  left: 9px;
  top: -22px;
  width: 18px;
  height: 22px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.lock:after {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: var(--ink);
}
.instructions {
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
}
.instructions h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.instructions li {
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0;
}
.instructions ol {
  padding-left: 20px;
}
.instructions p {
  font-size: 13px;
  margin: 24px 0 0;
}
@media (max-width: 600px) {
  header {
    padding: 22px 24px;
  }
  main {
    margin-top: 56px;
  }
  h1 {
    font-size: 24px;
    line-height: 1.25;
  }
  .with-preview {
    margin-top: 32px;
    padding: 0 16px;
  }
  .with-preview h1 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
