/* Design tokens and base styles follow tsukiii.cn */
:root {
  color-scheme: light;
  --bg: #faf9f7;
  --surface: #fff;
  --text: #36332f;
  --muted: #76706b;
  --line: #e6e2dd;
  --accent: #95616d;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #222120; --surface: #292725; --text: #e6e2dd; --muted: #afa8a0; --line: #3b3733; --accent: #d6a5af;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #222120; --surface: #292725; --text: #e6e2dd; --muted: #afa8a0; --line: #3b3733; --accent: #d6a5af;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a span[aria-hidden] { display: inline-block; margin-left: 5px; font-size: .85em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 984px; padding: 0 32px; margin: 0 auto; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { font-size: 13px; color: var(--muted); }
.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; border-radius: 4px; }
.theme-toggle:hover { color: var(--accent); }
main { padding: 56px 0 64px; }
main section + section { margin-top: 44px; }
h2 { font-size: 25px; line-height: 1.4; font-weight: 500; letter-spacing: -.6px; margin: 0 0 18px; }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 21px 0 30px; color: var(--muted); font-size: 11px; }

.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li + li { margin-top: 21px; }
h3 { margin: 0 0 3px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.project-list p { color: var(--muted); font-size: 14px; margin: 0; }

.field { display: block; width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; font: inherit; }
.field::placeholder { color: var(--muted); }
.field:focus, .field:focus-visible { outline: none; border-color: var(--accent); }
.field--title { margin-bottom: 12px; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pw-input { -webkit-text-security: disc; }
.field--custom { margin-bottom: 12px; }
.field--custom[hidden] { display: none; }
.content-field { min-height: 340px; resize: vertical; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.7; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.hint { font-size: 12px; color: var(--muted); }

.button { display: inline-block; padding: 7px 18px; font-size: 13px; line-height: 1.8; background: var(--accent); color: var(--bg); border: 1px solid var(--accent); border-radius: 4px; cursor: pointer; }
.button:hover { opacity: .88; text-decoration: none; }
.button--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.button--ghost:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }

.paste-title { margin-bottom: 2px; overflow-wrap: anywhere; }
.paste-meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.paste-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.paste-box { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; overflow: auto; max-height: 72vh; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.7; white-space: pre; }
.paste-box code { font: inherit; }

.notice { margin: 0 0 16px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--muted); font-size: 13px; }

.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 0; }
.not-found h1 { margin: 0; font-size: clamp(28px, 5vw, 36px); font-weight: 500; }
.not-found__text { max-width: 360px; margin: 18px 0 24px; color: var(--muted); font-size: 14px; }
.not-found__link { font-size: 14px; }

@media (max-width: 600px) {
  .wrap { padding: 0 24px; }
  .topbar { height: auto; min-height: 80px; padding: 18px 0; flex-wrap: wrap; gap: 12px 24px; }
  .topbar nav { gap: 16px; }
  main { padding: 38px 0 42px; }
  .content-field { min-height: 260px; }
  .options { grid-template-columns: 1fr; }
  .editor-actions { flex-direction: column-reverse; align-items: stretch; }
  .editor-actions .button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
