/* Burnbox — design tokens & base */

:root {
  /* dark (default) */
  --bg: #08080a;
  --surface-1: #18181b;
  --surface-2: #202024;
  --surface-3: #2e2e33;

  --text-1: #ececee;
  --text-2: #a1a1a6;
  --text-3: #6c6c72;
  --text-on-fill: #0e0e10;
  --text-error: #e4564a;

  --rule: rgba(236, 236, 238, 0.08);
  --rule-strong: rgba(236, 236, 238, 0.16);
  --rule-emphasis: rgba(236, 236, 238, 0.32);
  --focus: rgba(236, 236, 238, 0.45);

  --fill-primary: #ececee;
  --fill-primary-hover: #ffffff;
  --fill-secondary: rgba(236, 236, 238, 0.06);
  --fill-secondary-hover: rgba(236, 236, 238, 0.12);
  --fill-danger: #e4564a;
  --fill-danger-hover: #ee6457;

  --danger: #e4564a;
  --danger-bg: rgba(228, 86, 74, 0.1);

  /* spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --col-max: 640px;
  --gutter: 24px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --duration-fast: 120ms;
  --duration-mid: 200ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --segmented-track: var(--surface-2);
  --segmented-thumb: var(--surface-3);
  --segmented-thumb-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface-1: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #f4f4f5;

    --text-1: #18181b;
    --text-2: #5c5c63;
    --text-3: #8e8e94;
    --text-on-fill: #fafaf9;
    --text-error: #b83a2a;

    --rule: rgba(24, 24, 27, 0.12);
    --rule-strong: rgba(24, 24, 27, 0.18);
    --rule-emphasis: rgba(24, 24, 27, 0.32);
    --focus: rgba(24, 24, 27, 0.4);

    --fill-primary: #18181b;
    --fill-primary-hover: #000000;
    --fill-secondary: rgba(24, 24, 27, 0.05);
    --fill-secondary-hover: rgba(24, 24, 27, 0.09);
    --fill-danger: #b83a2a;
    --fill-danger-hover: #a0301f;

    --danger: #b83a2a;
    --danger-bg: rgba(184, 58, 42, 0.08);

    --segmented-track: #eaeaea;
    --segmented-thumb: #ffffff;
    --segmented-thumb-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
}

/* reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

::selection {
  background: var(--focus);
  color: var(--text-1);
}

a {
  color: var(--text-1);
  text-decoration: none;
}
a:hover {
  color: var(--text-2);
}

p {
  margin: 0;
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.01em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

input,
textarea {
  font-size: 16px; /* prevent iOS zoom */
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* layout shell */

.shell {
  width: 100%;
  max-width: calc(var(--col-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-10);
}

.header__brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-1);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 14px;
}

.header__nav a {
  color: var(--text-2);
  transition: color var(--duration-fast) var(--ease-out);
}
.header__nav a:hover,
.header__nav a[aria-current="page"] {
  color: var(--text-1);
}
.header__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  margin: 0 calc(-1 * var(--space-2));
}
.header__nav-icon:hover {
  background: var(--fill-secondary);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-16);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--fill-primary);
  color: var(--text-on-fill);
}
.btn--primary:hover:not(:disabled) {
  background: var(--fill-primary-hover);
}

.btn--secondary {
  background: var(--fill-secondary);
  color: var(--text-1);
  border: 1px solid var(--rule);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--fill-secondary-hover);
  border-color: var(--rule-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--text-1);
  background: var(--fill-secondary);
}

.btn--danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--rule);
}
.btn--danger:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn--sm {
  height: 32px;
  padding: 0 var(--space-3);
  font-size: 13px;
}
.btn--full {
  width: 100%;
}
@media (min-width: 721px) {
  .btn--full {
    width: auto;
    min-width: 180px;
  }
}

.btn__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn--icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: transparent;
}
.btn--icon-only svg {
  width: 16px;
  height: 16px;
  display: block;
}
.btn--icon-only:hover:not(:disabled) {
  color: var(--text-1);
  background: var(--fill-secondary);
}

/* inputs */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Collapsible wrapper. Arc-style: outer clips and animates height; inner
   stays at natural size and translates from -100% to 0. Content is never
   rendered at a partial height, so inputs/text don't crop mid-transition. */
.collapse {
  height: 0;
  overflow: hidden;
  transition: height 220ms cubic-bezier(0.2, 0, 0, 1);
}
.collapse[data-open="true"] {
  height: var(--collapse-height, auto);
}
.collapse__inner {
  transform: translateY(-100%);
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}
.collapse[data-open="true"] .collapse__inner {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .collapse,
  .collapse__inner {
    transition: none;
  }
}
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.field__hint {
  font-size: 12px;
  color: var(--text-3);
}
.field__error {
  font-size: 13px;
  color: var(--text-error);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.input,
.textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-3);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:hover,
.textarea:hover {
  border-color: var(--rule-strong);
}
.input:focus,
.textarea:focus {
  border-color: var(--rule-emphasis);
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}

.textarea {
  resize: none;
  font-family: var(--font-sans);
  min-height: 200px;
  max-height: 60dvh;
  padding: var(--space-3);
}

.input--password-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}
.input--password-row .input {
  padding-right: 40px;
}
.input--password-row .btn--icon-only {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

/* segmented control */

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--segmented-track);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 3px;
  width: 100%;
  gap: 2px;
}
.segmented__option {
  height: 34px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
.segmented__option:hover {
  color: var(--text-1);
}
.segmented__option[aria-checked="true"] {
  background: var(--segmented-thumb);
  color: var(--text-1);
  box-shadow: var(--segmented-thumb-shadow);
}

@media (max-width: 720px) {
  .segmented__option {
    height: 40px;
  }
}

/* listbox / popover (custom select) */

.listbox-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.listbox-trigger:hover {
  border-color: var(--rule-strong);
}
.listbox-trigger__chevron {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
}
.listbox-trigger__chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.listbox-popover {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  margin: 0;
}
.listbox-popover::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.listbox-panel {
  background: var(--surface-1);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: light) {
  .listbox-panel {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.06),
      0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

.listbox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  font-size: 14px;
  color: var(--text-1);
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.listbox-option:hover,
.listbox-option[data-active="true"] {
  background: var(--surface-2);
}
.listbox-option[aria-selected="true"] .listbox-option__check {
  opacity: 1;
}
.listbox-option__check {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: 0;
  color: var(--text-2);
  flex-shrink: 0;
}
.listbox-option__check svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 720px) {
  /* bottom-sheet behavior */
  .listbox-popover[open] {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .listbox-panel {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-3);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    border-bottom-color: transparent;
  }
  .listbox-option {
    height: 48px;
    font-size: 16px;
  }
}

/* drop zone */

.drop-zone {
  position: relative;
  width: 100%;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  background: transparent;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.drop-zone:hover {
  border-color: var(--rule-emphasis);
  background: var(--fill-secondary);
}
.drop-zone[data-dragging="true"] {
  border-style: solid;
  border-color: var(--rule-emphasis);
  background: var(--fill-secondary-hover);
}
.drop-zone__icon {
  display: inline-flex;
  color: var(--text-3);
  width: 18px;
  height: 18px;
}
.drop-zone__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.drop-zone__label {
  font-size: 14px;
  color: var(--text-2);
}
.drop-zone__hint {
  font-size: 12px;
  color: var(--text-3);
}
.drop-zone__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* file list */

.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.file-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.file-row__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}
.file-row__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.file-row__name {
  font-size: 14px;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row__size {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  flex-shrink: 0;
}
.file-row__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text-2);
  transform-origin: left center;
  transform: scaleX(0);
  transition:
    transform var(--duration-fast) linear,
    opacity var(--duration-mid) var(--ease-out);
}
.file-row[data-state="done"] .file-row__progress {
  opacity: 0;
}

@media (max-width: 720px) {
  .file-row {
    grid-template-columns: auto 1fr auto;
  }
  .file-row__size {
    display: none;
  }
}

/* share panel (showcase) */

.share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.share__caption {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 500;
}

.share__card {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.share__url {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-1);
  word-break: break-all;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.share__divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.share__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.share__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

@media (max-width: 720px) {
  .share__url {
    font-size: 16px;
  }
  .share__actions {
    flex-direction: column-reverse;
  }
  .share__actions .btn {
    width: 100%;
  }
}

/* inline media (image/video/audio attachments) */

.media-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.media-figure img,
.media-figure video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.media-figure audio {
  width: 100%;
}
.media-figure__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}

/* note view (decrypted content) */

.note {
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-1);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.note > *:first-child {
  margin-top: 0;
}
.note > *:last-child {
  margin-bottom: 0;
}
.note h1,
.note h2,
.note h3 {
  margin: var(--space-6) 0 var(--space-3);
  line-height: 1.3;
}
.note h1 {
  font-size: 22px;
}
.note h2 {
  font-size: 18px;
}
.note h3 {
  font-size: 16px;
}
.note p {
  margin: 0 0 var(--space-4);
}
.note p:last-child {
  margin-bottom: 0;
}
.note a {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-emphasis);
}
.note a:hover {
  text-decoration-color: var(--text-1);
}
.note code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.note pre {
  background: var(--surface-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0 0 var(--space-4);
}
.note pre code {
  background: transparent;
  padding: 0;
}
.note ul,
.note ol {
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
}
.note li {
  margin-bottom: var(--space-1);
}
.note blockquote {
  border-left: 2px solid var(--rule-strong);
  padding-left: var(--space-4);
  color: var(--text-2);
  margin: 0 0 var(--space-4);
}
.note hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-6) 0;
}

/* page-specific */

.page-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}
.page-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: var(--space-8);
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.editor__tabs {
  display: flex;
  gap: 2px;
}
.editor__tab {
  height: 30px;
  padding: 0 var(--space-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}
.editor__tab:hover {
  color: var(--text-1);
}
.editor__tab[aria-selected="true"] {
  color: var(--text-1);
  background: var(--fill-secondary);
}

.note-preview {
  min-height: 200px;
}
.note-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .settings-row {
    grid-template-columns: 1fr;
  }
}

.password-toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.password-toggle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.password-toggle__header:hover {
  border-color: var(--rule-strong);
}
.password-toggle__header:active {
  transform: scale(0.98);
  transition: transform 80ms ease-out;
}
.password-toggle__check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.password-toggle[data-on="true"] .password-toggle__check {
  background: var(--fill-primary);
  border-color: var(--fill-primary);
  color: var(--text-on-fill);
}
.password-toggle[data-on="true"] .password-toggle__check svg {
  display: block;
}
.password-toggle__check svg {
  display: none;
  width: 10px;
  height: 10px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .actions .btn--primary {
    width: 100%;
  }
  .actions {
    flex-direction: column-reverse;
  }
}

.empty-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-align: center;
}
.empty-link__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}
.empty-link__body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

.password-prompt {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-align: center;
}
.password-prompt__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}
.password-prompt__body {
  font-size: 14px;
  color: var(--text-2);
}

.burned {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity var(--duration-mid) var(--ease-out),
    max-height var(--duration-mid) var(--ease-out);
}
.burned-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}

.fade-in {
  animation: fade-in var(--duration-mid) var(--ease-out) both;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* about page */

.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
}
.about h1 {
  font-size: 24px;
  margin: 0;
}
.about h2 {
  font-size: clamp(20px, 4vw, 22px);
  margin: var(--space-4) 0 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.about p {
  margin: 0;
}
.about ol,
.about ul {
  margin: 0;
  padding-left: var(--space-5);
}
.about li {
  margin-bottom: var(--space-1);
}
.about code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--text-1);
}
.about a {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-emphasis);
}
.about a:hover {
  text-decoration-color: var(--text-1);
}
.about strong {
  font-weight: 600;
}
