:root {
  --ink: #111;
  --soft: #444;
  --line: #ccc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.sheet {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.actions a,
.actions button {
  font-size: 13px;
}

.actions a {
  color: #444;
}

.actions button {
  height: 2.25rem;
  padding: 0 0.95rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  font-weight: 500;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--soft);
}

table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 13px;
}

tr {
  break-inside: avoid;
}

th,
td {
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}

.el {
  font-weight: 600;
}

.latin {
  color: #333;
}

.en {
  color: var(--soft);
}

.word-note-row .word-note {
  padding: 0.15rem 0.35rem 0.55rem;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
  border-bottom: 1px solid var(--line);
  font-style: italic;
}

.word-note {
  padding-top: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
  border-bottom: 1px solid var(--line);
}

.list-fun-fact {
  margin: 1rem 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
}

.alphabet-appendix-print {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  page-break-inside: avoid;
}

.alphabet-appendix-print h2 {
  margin: 0 0 0.35rem;
  font-size: 14px;
  font-weight: 600;
}

.alphabet-print-lead {
  margin: 0 0 0.65rem;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
}

.alphabet-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.35;
}

.alphabet-print-table th,
.alphabet-print-table td {
  border: 1px solid var(--line);
  padding: 0.28rem 0.35rem;
  vertical-align: top;
  text-align: left;
}

.alphabet-print-table th {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  background: #f5f5f5;
}

.alphabet-print-table .el {
  font-weight: 600;
  white-space: nowrap;
}

.alphabet-print-notes {
  margin: 0.75rem 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #444;
}

.alphabet-print-notes h3 {
  margin: 0.65rem 0 0.25rem;
  font-size: 11px;
  font-weight: 600;
}

.alphabet-print-notes h3:first-child {
  margin-top: 0;
}

.alphabet-print-notes p {
  margin: 0;
}

.translit-combos-print {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  page-break-inside: avoid;
}

.translit-combos-print h2 {
  margin: 0 0 0.65rem;
  font-size: 14px;
  font-weight: 600;
}

.translit-combos-print .translit-combo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.translit-combos-print .translit-combo {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
}

.translit-combos-print .translit-combo-rule {
  margin: 0;
  font-weight: 600;
}

.translit-combos-print .translit-combo-example {
  margin: 0.2rem 0 0;
  font-weight: 400;
  color: #444;
}

.translit-combos-print .translit-combo-note {
  margin: 0.25rem 0 0;
  font-weight: 400;
  color: #444;
  line-height: 1.45;
}

.credit {
  margin: 1.5rem 0 0;
  font-size: 11px;
  color: #666;
}

@media print {
  .actions {
    display: none;
  }

  .sheet {
    max-width: none;
    padding: 0;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 0.28rem 0.25rem;
  }
}
