:root {
  font-family:
    ui-rounded,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #293f38;
  background: #f8f3e8;
  font-size: 19px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #87745c06 4px
  );
}
main {
  max-width: 740px;
  margin: auto;
  padding: 24px 20px 60px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #b8b8a5;
  padding-bottom: 18px;
  margin-bottom: 30px;
}
.brand {
  font-weight: 850;
  letter-spacing: -1px;
  font-size: 32px;
}
.tag {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #617665;
}
h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0;
}
h2 {
  font-size: 25px;
  margin: 8px 0;
}
p {
  margin: 10px 0 20px;
}
.muted {
  color: #5b695e;
}
.hero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero img {
  width: 150px;
}
.card {
  background: #fffdf7;
  border: 1px solid #dfdfcc;
  border-radius: 24px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 5px 0 #dfdfcc66;
}
.stitched {
  outline: 1px dashed #c8cfb6;
  outline-offset: -9px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row > * {
  flex: 1;
}
button,
input,
select {
  font: inherit;
  border-radius: 15px;
  min-height: 56px;
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid #bbc6b5;
  background: #fffdf7;
  color: inherit;
}
button {
  cursor: pointer;
  font-weight: 700;
}
button.primary {
  background: #345c49;
  color: white;
  border-color: #345c49;
  box-shadow: 0 4px 0 #233e31;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
button.secondary {
  background: #e9efde;
}
button.danger {
  background: #a64132;
  color: white;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c68431;
  outline-offset: 3px;
}
.small {
  font-size: 15px;
}
.badge {
  background: #e8edda;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 15px;
  display: inline-block;
}
.tamil {
  font-size: 32px;
  line-height: 1.7;
}
.roman {
  font-size: 25px;
  font-weight: 750;
}
.phrase {
  text-align: center;
  padding: 26px 12px;
}
audio {
  width: 100%;
  margin: 12px 0;
}
.notice {
  padding: 16px;
  border-radius: 14px;
  background: #e9efde;
  min-height: 56px;
}
.error {
  background: #fae4dc;
  color: #8a3025;
}
label {
  display: block;
  font-weight: 700;
  margin: 16px 0 8px;
}
.lesson {
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  gap: 12px;
}
.lesson span {
  display: block;
}
.login {
  max-width: 480px;
  margin: 40px auto;
}
.login img {
  width: 170px;
  display: block;
  margin: auto;
}
a {
  color: #345c49;
}
progress {
  width: 100%;
  accent-color: #345c49;
  height: 12px;
}
nav {
  margin: 25px 0;
}
#preview {
  background: #fff1da;
  border: 1px dashed #bd8f48;
}
#status:empty {
  display: none;
}
@media (max-width: 430px) {
  main {
    padding: 18px 16px;
  }
  .hero img {
    width: 105px;
  }
  .card {
    padding: 21px;
  }
  .row {
    gap: 9px;
  }
  .row button {
    padding: 12px 8px;
  }
  .tamil {
    font-size: 28px;
  }
}
.lesson {
  display: block;
}
.lesson span {
  margin-top: 5px;
  font-weight: 500;
  color: #5b695e;
}
