@import "./rounded.css";
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url("./Nunito.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #f1eee7;
  --ink: #292823;
  --muted: #655e56;
  --line: #ded9d1;
  --accent: #aa5b1d;
  --icon-accent: var(--accent);
  --icon-size: 24px;
  font-family: "Nunito", "FHFS Rounded SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141413;
  --surface: #292925;
  --ink: #eeeae0;
  --muted: #bab3a9;
  --line: #383832;
  --accent: #e8ad68;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1160px; margin: auto; padding: 48px 32px; }
header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.3; }
p { color: var(--muted); font-size: 14px; line-height: 1.8; }
header p { max-width: 60ch; margin: 16px 0 0; }
button, input, select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; padding: 10px 14px; }
button { flex-shrink: 0; cursor: pointer; }
button:hover, input:hover, select:hover { border-color: var(--muted); }
button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { color: var(--paper); background: var(--accent); }
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 20px; padding: 28px 0 24px; margin-top: 20px; border-top: 1px solid var(--line); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
label:first-child { flex: 1; min-width: 180px; max-width: 360px; }
#count { margin: 0 0 8px auto; font-variant-numeric: tabular-nums; }
ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; }
li { min-width: 0; border-top: 1px solid var(--line); }
li[hidden] { display: none; }
li a { display: flex; min-height: 128px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
li a:hover, li a:focus-visible { background: var(--surface); color: var(--accent); }
svg { width: var(--icon-size); height: var(--icon-size); margin-bottom: 4px; }
li span { font-size: 13px; }
small { color: var(--muted); font-size: 11px; }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }
footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); text-underline-offset: 4px; margin-right: 24px; }
@media (max-width: 850px) { ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) { main { padding: 28px 20px; } header { flex-wrap: wrap; } ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tools { gap: 16px; } label:first-child { max-width: none; flex-basis: 100%; } }

:root[data-ink="mono"] { --icon-accent: currentColor; }
#ink { margin-bottom: 18px; }
button { background: var(--surface); box-shadow: 0 1px 2px rgb(79 61 39 / 13%); font-weight: 650; }
button:active { scale: .98; box-shadow: inset 0 1px 2px rgb(79 61 39 / 13%); }
input { font-size: 16px; }
input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
