/* ---------------------------------------------------------------
   /learn hub, /learn/reading index, and post pages.

   Follows the design language in style.css: one paper ground, hairline
   rules instead of coloured blocks, Zen Old Mincho for display type.
   The vokabel word list is a genuine aside, so it takes the one filled
   surface allowed by the design language.
   --------------------------------------------------------------- */

/* --- Shared page furniture ---------------------------------------- */

.hub,
.reading-index,
.post {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--space) calc(var(--space) * 5);
}

.hub-intro h1,
.reading-intro h1,
.post h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--indigo);
  margin: 0 0 0.4em;
}

/* No bottom rule here: the first item of the list below carries its own top
   rule, and having both stacks two hairlines a few pixels apart. */
.hub-intro,
.reading-intro {
  padding-bottom: calc(var(--space) * 1.5);
  margin-bottom: calc(var(--space) * 1.5);
}

.hub-intro p,
.reading-intro p {
  max-width: 56ch;
  margin: 0;
}

/* --- Hub ----------------------------------------------------------- */

.hub-list {
  list-style: none;
  margin: 0 0 calc(var(--space) * 3);
  padding: 0;
  display: grid;
  gap: calc(var(--space) * 2.5);
}

.hub-list > li {
  border-top: 1px solid var(--rule);
  padding-top: calc(var(--space) * 1.1);
}

.hub-list h2 {
  font-size: 1.5rem;
  margin: 0 0 0.4em;
}

.hub-list h2 a {
  color: var(--indigo);
  text-decoration: none;
}

.hub-list h2 a:hover {
  color: var(--clay);
}

.hub-list p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
}

.hub-latest {
  margin-top: 0.75em !important;
  font-size: 0.9rem;
}

.hub-cta {
  border-top: 1px solid var(--rule);
  padding-top: calc(var(--space) * 1.25);
}

.hub-cta p {
  margin: 0;
  color: var(--ink-soft);
}

/* --- Reading index -------------------------------------------------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list > li {
  border-bottom: 1px solid var(--rule);
  padding: calc(var(--space) * 1.75) 0;
}

.post-list > li:first-child {
  border-top: 1px solid var(--rule);
}

.post-list h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35em;
}

.post-list h2 a {
  color: var(--indigo);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--clay);
}

.post-list p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.post-empty {
  color: var(--ink-soft);
  font-style: italic;
}

/* --- A post --------------------------------------------------------- */

.post article {
  max-width: 62ch;
}

.post-meta {
  margin: 0 0 0.6em;
  color: var(--moss);
}

.post-summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 2em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--rule);
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-body p {
  margin: 0 0 1.3em;
}

.post-body strong {
  font-weight: 600;
}

.post-body em {
  color: var(--clay);
}

.post-back {
  margin: 2.5em 0 0;
  padding-top: 1.25em;
  border-top: 1px solid var(--rule);
}

.post-back a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.post-back a:hover {
  color: var(--indigo);
}

/* --- The vokabel block ----------------------------------------------- */

.vokabel {
  background: var(--paper-deep);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.25) calc(var(--space) * 1.5);
  margin: 2em 0;
  font-size: 1rem;
  line-height: 1.7;
}

.block-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9em;
}

.vokabel .block-title {
  color: var(--moss);
}

.vokabel dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.4em 1.5em;
}

.vokabel dt {
  font-weight: 600;
}

.vokabel dd {
  margin: 0;
  color: var(--ink-soft);
}

/* --- Small screens --------------------------------------------------- */

@media (max-width: 600px) {
  .vokabel dl {
    grid-template-columns: 1fr;
    gap: 0.1em;
  }

  .vokabel dd {
    margin-bottom: 0.7em;
  }
}
