/* Cover and index of the home edition. */
.almanac {
  --alm-ink: #20332c;
  --alm-paper: #f8f6ef;
  --alm-rule: #b8b8a8;
  --alm-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  width: min(1280px, calc(100% - clamp(32px, 8vw, 120px)));
  margin: clamp(16px, 2.6vw, 38px) auto 0;
  color: var(--alm-ink);
}
.alm-cover {
  display: grid;
  grid-template-columns: 37% 63%;
  background: #eeeadc;
  border-block: 1px solid var(--alm-ink);
}
.alm-mast {
  align-self: center;
  padding: clamp(24px, 3.2vw, 48px);
}
.alm-mast h1 {
  margin: .23em 0 .25em -.06em;
  font: 600 clamp(3rem, 6.6vw, 6.65rem)/1.05 var(--alm-serif);
  letter-spacing: -.075em;
}
.alm-mast h1 b { font-size: 1.23em; font-weight: inherit; }
.alm-deck { font-size: clamp(.84rem, 1.15vw, 1rem); line-height: 1.85; letter-spacing: .035em; }
.alm-plate, .alm-fortune-art { position: relative; overflow: hidden; }
.alm-plate { background: #e9d8ab; }
.alm-plate img, .alm-fortune-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.alm-index { margin-top: clamp(32px, 4.8vw, 70px); }
.alm-index-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding-bottom: 18px; border-bottom: 3px solid var(--alm-ink);
}
.alm-index-title { display: flex; align-items: baseline; gap: 16px; margin-top: 6px; }
.alm-index-title h2 { font: 700 clamp(1.85rem, 3.3vw, 3rem)/1.28 var(--alm-serif); letter-spacing: -.045em; }
.almanac #tool-count { color: #59645a; font-size: .9rem; white-space: nowrap; }
.alm-search { position: relative; width: min(370px, 42%); }
.alm-search label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.almanac .alm-search::before, .almanac .alm-search::after { content: ""; position: absolute; pointer-events: none; }
.alm-search::before { left: 15px; top: 15px; width: 12px; height: 12px; border: 1.7px solid currentColor; border-radius: 50%; }
.alm-search::after { left: 27px; top: 28px; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); }
.almanac #tool-search {
  width: 100%; min-height: 48px; border-radius: 0; padding: .55em .7em .55em 44px;
  border: 1px solid #8c9386; background: #fffdf7; color: var(--alm-ink); font-size: 1rem;
}
.alm-section {
  display: grid; grid-template-columns: minmax(160px, .6fr) minmax(0, 2fr);
  gap: clamp(16px, 3vw, 48px); padding: 20px 0;
  border-bottom: 1px solid var(--alm-ink); scroll-margin-top: 1rem;
}
.alm-section-heading { padding-top: 8px; }
.alm-section h3 { margin-top: 5px; font: 700 clamp(1.15rem, 1.95vw, 1.7rem)/1.5 var(--alm-serif); }
.alm-entries {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 3vw, 42px);
}
.alm-entries li { border-top: 1px solid var(--alm-rule); }
.alm-entries li:nth-child(-n+2 of :not([hidden])) { border-top-color: transparent; }
.alm-entries .tool-tile {
  height: 100%; display: flex; align-items: baseline; min-height: 62px; padding: 9px 0 11px; gap: 10px;
  color: var(--alm-ink); border-radius: 0; text-decoration: none;
}
.alm-entries .tool-icon {
  width: 1.55em; height: auto; padding: 0; line-height: 1; background: none;
  font: 700 1.15rem/1 Georgia, var(--alm-serif); color: var(--accent, var(--alm-ink));
}
.alm-entries .tool-tile strong { font-size: 1.02rem; line-height: 1.5; }
.alm-entries .tool-tile small { margin-top: 4px; color: #566157; font-size: .84rem; line-height: 1.6; }
.alm-entries .tool-tile:hover { background: #eeeee3; }
.alm-fortune { margin-top: clamp(28px, 4vw, 56px); }
.alm-fortune a {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  color: var(--alm-paper); background: #493d4a; text-decoration: none;
}
.alm-fortune-art {
  width: 24%; align-self: stretch; flex-shrink: 0;
  background: #665162;
}
.alm-fortune-copy { display: grid; padding-block: 24px; font-size: .88rem; }
.alm-fortune-copy strong { font: 600 clamp(1.45rem, 2.6vw, 2.15rem)/1.6 var(--alm-serif); }
.alm-fortune a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.alm-arrow { margin-left: auto; margin-right: 4%; font: 1.8rem/1 Georgia, serif; }
@media (max-width: 840px) {
  .alm-section { grid-template-columns: 1fr; gap: 5px; }
  .alm-section-heading { padding-top: 0; }
  .alm-cover { grid-template-columns: 43% 57%; }
}
@media (max-width: 620px) {
  .alm-cover { grid-template-columns: 57% 43%; }
  .alm-mast { padding: 16px 10px 16px 14px; }
  .alm-mast h1 { margin: 0 0 .25em; font-size: clamp(2rem, 9vw, 3.1rem); line-height: 1.1; }
  .alm-deck { font-size: .8rem; line-height: 1.5; }
  .alm-plate img { object-position: 45% center; }
  .alm-index { margin-top: 20px; }
  .alm-index-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 12px; }
  .alm-search { width: 100%; }
  .alm-section { padding: 17px 0 8px; }
  .alm-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .alm-section-heading h3 { order: -1; margin: 0; }
  .alm-entries { grid-template-columns: 1fr; }
  .alm-entries li:nth-child(2 of :not([hidden])) { border-top-color: var(--alm-rule); }
  .alm-entries .tool-tile { min-height: 60px; gap: 7px; }
  .alm-fortune a { gap: 12px; }
  .alm-fortune-copy { padding-block: 18px; font-size: .78rem; }
  .alm-arrow { font-size: 1.25rem; margin-right: 12px; }
}
.alm-mast h1 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.065em; }
.alm-mast h1 b { font-size: 1em; font-style: italic; }
