@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-display: swap;
  font-weight:100 900;
}
@font-face {
  font-family: Archivo Black;
  src: url('/archivo-black.woff2') format('woff2');
  font-display:swap;
}
:root {
  color-scheme: light;
  --paper: #f2eee4;
  --card: #faf6eb;
  --ink: #241f1c;
  --muted: #64594e;
  --line: #cfc2b2;
  --hot: #a63a27;
  --dark: #24211c;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
}
* {
  box-sizing:border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font: 15px/1.5 Inter,system-ui,sans-serif;
  color:var(--ink);
}
.shell {
  width: min(1170px,calc(100% - 64px));
  margin:auto;
}
button,input,textarea {
  font:inherit;
}
button,a,input,textarea {
  outline-offset:4px;
}
:focus-visible {
  outline:2px solid #a63a27;
}
.skip {
  position: absolute;
  top: -100px;
  left: 11px;
  z-index: 5;
  padding: 9px;
  background: var(--card);
  color:var(--ink);
}
.skip:focus {
  top:12px;
}
.top {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap:8px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.05em;
  white-space:nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--hot);
  color: #fff2e3;
  font-size: 15px;
  border-radius:50%;
}
.top nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 28px;
  padding:31px 0 29px;
}
.intro h1 {
  font: clamp(44px,6.8vw,96px)/.9 Archivo Black,Arial,sans-serif;
  margin: 0;
  letter-spacing:-.08em;
}
.intro h1 em {
  color: var(--hot);
  font-style:normal;
}
.intro>p {
  max-width: 39ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size:16px;
}
.eyebrow {
  font: 11px var(--mono);
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: .13em;
  margin:0 0 10px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0,2.1fr) minmax(0,1fr);
  gap: 15px;
  align-items:start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 17px;
  min-width:0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom:13px;
}
h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.045em;
  overflow-wrap:anywhere;
}
button {
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 690;
  min-height:36px;
}
.plain {
  background: #f7f0e3;
  color: #342c25;
  border:1px solid #bcae9a;
}
.solid {
  background: #a63a27;
  color: #fff6eb;
  border:1px solid #a63a27;
}
button:hover:not(:disabled) {
  filter:brightness(.92);
}
button:disabled {
  cursor: default;
  opacity:.49;
}
.clock {
  background: var(--dark);
  color: #fbedd7;
  border: 1px solid #403728;
  border-radius: 11px;
  padding: 14px 18px;
  display: grid;
  gap:2px;
}
.clock span {
  font-size: 11px;
  color:#e6cdb1;
}
.clock output {
  font: clamp(35px,6.3vw,78px)/1.14 var(--mono);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  overflow-wrap:anywhere;
}
.timer-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin:13px 0;
}
.timer-actions .solid {
  min-width:120px;
}
.split-table {
  overflow-x:auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align:left;
}
th,td {
  padding: 8px 7px;
  border-bottom: 1px solid #e2d8c9;
  font-size: 12px;
  overflow-wrap:anywhere;
}
thead th {
  font: 11px var(--mono);
  color: #655650;
  text-transform: uppercase;
  letter-spacing:.045em;
}
th:first-child {
  width:48%;
}
td {
  font-family: var(--mono);
  font-variant-numeric:tabular-nums;
}
.split-index {
  margin-right: 8px;
  color: var(--hot);
  font:11px var(--mono);
}
.current {
  background:#f4e4c9;
}
.ahead {
  color:#225740;
}
.behind {
  color:#a63a27;
}
.notice {
  margin: 9px 0 0;
  min-height: 1em;
  color: var(--muted);
  font-size:12px;
}
.aside {
  display: grid;
  gap:15px;
}
.history>b {
  font: 32px var(--mono);
  display: block;
  color: var(--hot);
  margin:8px 0;
}
.history p:not(.eyebrow),.practice p,.guide p,.guide li {
  color: var(--muted);
  font-size:13px;
}
.history ul {
  list-style: none;
  padding: 0;
  margin:0 0 10px;
}
.history li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2d8c9;
  padding: 7px 0;
  font-size:12px;
}
.history li strong {
  font-family:var(--mono);
}
.practice {
  background:#ebe1cf;
}
.guide {
  margin-top:17px;
}
.guide ol {
  padding-left: 18px;
  max-width: 80ch;
  margin-bottom:8px;
}
.guide li {
  margin:4px 0;
}
.footer {
  padding: 22px 0;
  color: var(--muted);
  font-size:12px;
}
dialog {
  width: min(440px,calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  background: var(--card);
  color:var(--ink);
}
dialog::backdrop {
  background:#241f1caa;
}
dialog label {
  display: grid;
  margin-top: 11px;
  gap: 3px;
  font-size: 13px;
  font-weight:620;
}
dialog label span {
  font-size: 11px;
  color:var(--muted);
}
dialog input,dialog textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color:var(--ink);
}
dialog textarea {
  resize:vertical;
}
dialog p {
  font-size: 13px;
  color:var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap:8px;
}
#form-error {
  color:var(--hot);
}
@media(max-width:850px) {
  .shell {
    width:calc(100% - 34px);
  }
  .intro {
    gap:18px;
  }
  .intro>p {
    font-size:14px;
  }
}
@media(max-width:630px) {
  .shell {
    width:calc(100% - 24px);
  }
  .intro,.workspace {
    grid-template-columns:1fr;
  }
  .intro {
    padding:24px 0 20px;
  }
  .brand {
    font-size:14px;
  }
  .panel {
    padding:12px;
  }
  .timer-actions .solid {
    min-width:104px;
  }
  .clock output {
    font-size:clamp(35px,10vw,56px);
  }
  .top nav button {
    font-size: 11px;
    padding:7px;
  }
  .split-index {
    display: block;
    margin-right:0;
  }
}
.reading {
  max-width: 780px;
  padding-top:35px;
}
.reading h1 {
  margin: 0;
  font: clamp(52px,8vw,86px)/.89 Archivo Black,Arial,sans-serif;
  letter-spacing:-.075em;
}
.reading h1 em {
  font-style: normal;
  color:var(--hot);
}
.reading .lead {
  font-size: 17px;
  color: var(--muted);
  max-width:48ch;
}
.reading table {
  margin-top:11px;
}
.backlink {
  color: #8c301f;
  text-underline-offset: 4px;
  font-weight: 650;
  font-size:13px;
}
.resource-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top:14px;
}
.resource-button {
  display: inline-block;
  color: #fff7ef;
  background: var(--hot);
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  text-decoration:none;
}
