:root{
  --void: #141318;
  --static: #201d24;
  --bone: #e8e3d9;
  --dim: #b9b4c4;
  --line: rgba(232, 227, 217, 0.22);
  color-scheme: dark;
}
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a{ color: var(--bone); text-underline-offset: 3px; }
a:hover{ text-decoration-thickness: 2px; }
:focus-visible{ outline: 2px solid var(--bone); outline-offset: 3px; }

.skip{
  position: absolute; left: 12px; top: -48px;
  background: var(--bone); color: var(--void);
  padding: 0.6rem 1rem; z-index: 10; text-decoration: none; border-radius: 4px;
}
.skip:focus{ top: 12px; }

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
header.site{ border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
header.site .wrap{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.5rem; }
.brand{ font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
nav.legal{ display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.9rem; }
nav.legal a[aria-current="page"]{ text-decoration-thickness: 2px; font-weight: 600; }

main{ padding: 2.4rem 0 3rem; }
h1{ font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
h2{ font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 1.4rem; line-height: 1.3; margin: 2.2rem 0 0.6rem; }
p, li{ max-width: 68ch; }
ul{ padding-left: 1.2rem; }
li{ margin: 0.3rem 0; }
.meta{ color: var(--dim); font-size: 0.9rem; margin: 0 0 1.6rem; }

.table-scroll{ overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 4px; }
table{ border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
th, td{ text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
th{ font-weight: 600; background: var(--static); }
tr:last-child td{ border-bottom: 0; }
code{ font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.88em; background: var(--static); padding: 0.1em 0.35em; border-radius: 3px; }

button.action{
  font: inherit; font-weight: 600; font-size: 0.95rem;
  color: var(--void); background: var(--bone);
  border: 1px solid var(--bone); border-radius: 4px;
  padding: 0.65rem 1.1rem; min-height: 44px; cursor: pointer;
}
button.action:hover{ background: transparent; color: var(--bone); }
#reset-status{ margin-left: 0.8rem; color: var(--dim); }

mark.todo{ background: var(--bone); color: var(--void); padding: 0 0.3em; border-radius: 2px; font-weight: 600; }

footer.site{ border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--dim); font-size: 0.88rem; }
footer.site a{ color: var(--dim); }

@media (max-width: 560px){
  main{ padding: 1.6rem 0 2.4rem; }
  h2{ margin-top: 1.8rem; }
}

@media (max-width: 640px){
  .table-scroll{ border: 0; overflow: visible; }
  table{ min-width: 0; }
  thead{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td{ display: block; width: 100%; }
  tr{ border: 1px solid var(--line); border-radius: 4px; margin: 0 0 0.9rem; background: var(--static); }
  td{ border-bottom: 1px solid var(--line); padding: 0.55rem 0.8rem; }
  tr td:last-child{ border-bottom: 0; }
  td::before{ content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; color: var(--dim); margin-bottom: 0.1rem; }
}
