:root {
  color-scheme: light;
  --green: #183d32;
  --ink: #172e27;
  --muted: #52635a;
  --paper: #f7f8f2;
  --line: #cbd3c8;
  --lime: #d7e8a7;
  --lav: #e3def3;
  --peach: #f4d6bb;
  font-family: "DM Sans", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
.button {
  border: 1px solid #aebbad;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
button:hover,
.button:hover {
  filter: brightness(0.95);
  background-color: #e4e9dc;
}
.primary:hover {
  background: #245541;
}
button.link {
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.35rem 0;
}
.skip {
  position: absolute;
  left: -300px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 10px;
  z-index: 5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.display {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.043em;
}
h1 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  line-height: 1.55;
}
.muted,
small {
  color: var(--muted);
}
small,
.meta {
  font-size: 0.84rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font:
    bold 1.65rem Georgia,
    serif;
  letter-spacing: -0.065em;
}
.brand i {
  width: 26px;
  height: 29px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow:
    -4px 3px 0 -1px var(--green),
    -4px 3px currentColor;
  transform: rotate(-7deg);
  position: relative;
}
.brand i:after {
  content: "";
  position: absolute;
  top: 7px;
  left: 5px;
  width: 12px;
  border-top: 2px solid currentColor;
  box-shadow: 0 6px currentColor;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.cover {
  background: var(--green);
  color: #f9fbef;
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  overflow: hidden;
}
.cover h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 8rem);
  margin: 0.4em 0 0.25em;
}
.cover p {
  max-width: 37ch;
  color: #dbe5d6;
}
.sheets {
  display: flex;
  align-items: flex-end;
  min-height: 145px;
  margin: 2.4rem 0 1rem 1rem;
}
.sheet {
  width: 28%;
  height: 130px;
  border-radius: 10px 10px 3px 3px;
  box-shadow: 0 7px 10px #09201736;
  color: var(--green);
  padding: 1rem;
  font:
    2rem Georgia,
    serif;
  border: 1px solid #37503b;
}
.sheet:nth-child(1) {
  background: var(--lime);
  transform: rotate(-13deg) translateY(3px);
}
.sheet:nth-child(2) {
  background: var(--lav);
  transform: rotate(-2deg) translateY(-10px);
  margin-left: -7%;
}
.sheet:nth-child(3) {
  background: var(--peach);
  transform: rotate(11deg) translateY(2px);
  margin-left: -7%;
}
.login {
  align-self: center;
  padding: clamp(2rem, 7vw, 7.5rem);
  max-width: 650px;
  width: 100%;
  margin: auto;
}
.login h2 {
  font-size: 2.65rem;
  margin: 1.4rem 0;
}
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tabs button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.form {
  display: grid;
  gap: 1rem;
}
.form label,
label.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
}
.field {
  margin: 0.8rem 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #a8b6a7;
  border-radius: 7px;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #729854;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
aside {
  background: var(--green);
  color: #fff;
  padding: 2.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
aside .brand {
  margin-left: 0.6rem;
}
nav {
  display: grid;
  gap: 0.3rem;
}
nav button,
.account button,
.account a {
  color: #eaf1e4;
  border: 0;
  justify-content: flex-start;
  font-weight: 500;
  text-align: left;
}
nav button[aria-current="page"] {
  background: #e5efcc;
  color: var(--green);
  font-weight: 700;
}
nav button:hover,
.account button:hover,
.account a:hover {
  color: var(--green);
  background: #c9ddb9;
}
.account {
  margin-top: auto;
  display: grid;
  gap: 0.28rem;
}
.account b {
  padding: 0.75rem;
  overflow-wrap: anywhere;
}
.main {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4.4rem);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.section-head,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.section-head {
  margin: 2.3rem 0 1rem;
}
.lead {
  margin: 0.65rem 0 1.85rem;
  color: var(--muted);
  max-width: 70ch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.track {
  padding: 1.4rem;
  border: 1px solid #bec9b8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.track.language {
  background: var(--lime);
}
.track.kata {
  background: var(--lav);
}
.track.habit {
  background: var(--peach);
}
.track h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
}
.track p {
  min-height: 3em;
  font-size: 0.96rem;
}
.track button {
  background: #ffffffe0;
  margin-top: auto;
}
.symbol {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}
.pill {
  border: 1px solid #44584955;
  border-radius: 50px;
  padding: 0.22rem 0.6rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.track .between {
  width: 100%;
}
.panel {
  padding: clamp(1.2rem, 2.8vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 1rem 0;
}
.panel h2 {
  margin: 0.6rem 0 1rem;
  max-width: 34ch;
  line-height: 1.18;
}
.panel h3 {
  margin-bottom: 0.55rem;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.fine {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.answer {
  background: #eff4e8;
  padding: 1rem;
  border-left: 3px solid #759558;
  border-radius: 2px;
  margin: 1rem 0;
}
.entry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.88rem 0;
  border-bottom: 1px solid var(--line);
}
.entry p {
  overflow-wrap: anywhere;
}
.entry small {
  white-space: nowrap;
}
.entries .entry:last-child {
  border: 0;
}
.panel select {
  width: auto;
  max-width: 100%;
}
.code,
pre,
code {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.code {
  background: #182f2a;
  color: #ecf4e3;
  min-height: 180px;
  tab-size: 4;
}
.results {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f5ef;
  padding: 1rem;
  border-radius: 7px;
  line-height: 1.5;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font:
    2.1rem Georgia,
    serif;
}
.error {
  color: #8e3024;
}
.empty {
  padding: 1.1rem 0;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.2rem;
  background: #75392d;
  color: white;
  border-radius: 8px;
  max-width: min(90vw, 480px);
  z-index: 10;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem;
  width: min(95vw, 580px);
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #13291f80;
}
dialog h2 {
  margin-bottom: 1.4rem;
}
.runner {
  display: none;
}
.gap {
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  aside {
    padding: 1.5rem 0.7rem;
  }
  .cards {
    gap: 0.65rem;
  }
  .track {
    padding: 1rem;
  }
  .track .between {
    align-items: flex-start;
  }
  .main {
    padding: 1.6rem;
  }
}
@media (max-width: 740px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .cover {
    padding: 1.6rem;
    gap: 1.1rem;
  }
  .cover h1 {
    font-size: 3.1rem;
    max-width: none;
  }
  .sheets {
    display: none;
  }
  .login {
    padding: 1.7rem;
  }
  .shell {
    display: block;
  }
  aside {
    gap: 1rem;
    padding: 1rem;
  }
  .account {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .account b {
    padding: 0.3rem;
  }
  nav {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
  }
  nav button,
  .account button,
  .account a {
    font-size: 0.88rem;
    padding: 0.45rem 0.6rem;
  }
  .main {
    padding: 1.1rem;
  }
  .cards,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .track {
    gap: 0.6rem;
  }
  .track p {
    min-height: 0;
  }
  .top {
    margin-bottom: 1.5rem;
  }
  .entry {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .panel select {
    width: 100%;
  }
}
