:root {
  --page: #fff4e2;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #5b564e;
  --line: #e2dbcd;
  --action: #c83c15;
  --on-action: #ffffff;
  --link: #b0350f;
  --translation-bg: #e9f2f1;
  --on-translation: #4e6467;
  --sticker: #1f1d1a;
}
@font-face {
  font-family: Literata;
  src: url(/fonts/Literata-400.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url(/fonts/Literata-600.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url(/fonts/Onest-400.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url(/fonts/Onest-600.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    17px/1.55 Onest,
    'Segoe UI',
    'Helvetica Neue',
    sans-serif;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}
a {
  color: var(--link);
}
h1,
h2,
h3 {
  font-family: Literata, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  margin: 24px 0 12px;
}
h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
h3 {
  font-size: 19px;
  margin: 0 0 4px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand {
  font:
    600 22px Literata,
    Georgia,
    serif;
  color: var(--ink);
  text-decoration: none;
}
.top nav {
  display: flex;
  gap: 12px;
  font-size: 15px;
}
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.lead {
  font-size: 19px;
  color: var(--muted);
}
.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  text-decoration: none;
}
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.steps {
  padding-left: 20px;
  display: grid;
  gap: 16px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.card {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.card-title {
  font:
    600 16px/1.25 Literata,
    Georgia,
    serif;
}
.card-meta {
  color: var(--muted);
  font-size: 14px;
}
.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--sticker);
  box-shadow: 3px 3px 0 var(--sticker);
  object-fit: cover;
  overflow: hidden;
}
.cover.drawn {
  padding: 14px;
  color: #fff;
}
.cover-title {
  font:
    600 18px/1.2 Literata,
    Georgia,
    serif;
  overflow-wrap: normal;
}
.cover-author {
  font:
    13px Literata,
    Georgia,
    serif;
}
.cover.large {
  max-width: 220px;
}
.book-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
.book-head h1 {
  margin-top: 0;
}
.author {
  font-size: 19px;
  margin: 0 0 4px;
}
.facts {
  color: var(--muted);
  margin: 0 0 16px;
}
.excerpt {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.pair {
  background: var(--surface);
}
.pair h3,
.original {
  margin: 0;
  padding: 18px 22px 8px;
  font:
    20px/1.5 Literata,
    Georgia,
    serif;
}
.translation {
  margin: 0;
  padding: 10px 22px 16px;
  background: var(--translation-bg);
  color: var(--on-translation);
  font-size: 16px;
}
.list {
  padding-left: 20px;
}
.post img {
  max-width: 100%;
}
@media (max-width: 560px) {
  .book-head {
    grid-template-columns: 1fr;
  }
  .cover.large {
    max-width: 180px;
  }
}
