/* Poetry & meter */

.poem__mode {
  border: 1px solid var(--clay);
  border-radius: var(--radius-pill);
  color: var(--clay);
  padding: 8px 16px;
  font-size: 14px;
}
.poem__mode:hover { background: var(--clay-soft); color: var(--clay); text-decoration: none; }
.poem__mode[aria-current="page"] { background: var(--clay); color: var(--text-on-accent); }

.poem__card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
}
.poem__couplet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 8px 56px;
  text-align: center;
}
.poem__half { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.8; }
.poem__translation { font-size: 21px; color: var(--text-body); text-align: center; text-wrap: balance; }
.poem__recite { display: flex; justify-content: center; margin-top: -10px; }

.poem__scansion { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--line); padding-top: 24px; }
.poem__feet { display: flex; gap: 10px; flex-wrap: wrap; }
.poem__foot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.poem__syllables { display: flex; gap: 4px; }
.poem__syl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 46px;
  color: var(--ink);
  font-size: 14px;
}
button.poem__syl:hover { border-color: var(--ink); }
.poem__syl.is-right { background: var(--green-soft); border-color: var(--green); }
.poem__syl.is-wrong { background: var(--clay-soft); border-color: var(--clay); }
.poem__mark { font-size: 20px; line-height: 1; height: 22px; }
.poem__foot-name { font-size: 20px; }
.poem__result { font-size: 15px; color: var(--text-body); }

.poem__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.poem__meter, .poem__how { gap: 10px; }
.poem__meter-name { font-size: 32px; }
.poem__meter-ar { font-size: 30px; color: var(--peach); }
.poem__pattern { font-size: 22px; line-height: 1.7; }
.poem__meter-note { font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.5; }
.poem__mnemonic { font-size: 22px; color: var(--peach); }

.poem__rule { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; }
.poem__rule-mark { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.poem__how-note { font-size: 14px; color: var(--text-body); line-height: 1.5; }

@media (max-width: 600px) {
  .poem__card { padding: 24px 16px; }
  .poem__foot { flex: 1 1 auto; }
  .poem__syl { min-width: 0; flex: 1; padding: 6px 4px; }
}
