/**
 * about.css — About-page–specific styles for Nihongo Hanashi.
 *
 * Loaded after design.css + page.css, so all design tokens (--brass,
 * --text, --text-soft, --canvas-elev, --rule, --hanada, --vermilion,
 * --font-jp / --font-en / --font-ui) and the shared page chrome
 * (.page, .page-main, .page-col, .page-title, .page-lede,
 * .page-section-label) are already in scope.
 *
 * The About page is a single scrollable column of sections. These rules
 * add the long-form prose styling, the pull-quote, the tile legend, the
 * source list, and the privacy / support blocks on top of the page-col
 * skeleton. Nothing here overrides reader / library styling — every
 * selector is scoped under .about-page.
 */

/* ---- Prose defaults inside the About column -------------------------- */
.about-page .page-main { padding-bottom: 4rem; }

.about-page p {
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  margin: 0 0 1rem;
}
.about-page p:last-child { margin-bottom: 0; }

.about-page strong { color: var(--text); font-weight: 600; }
.about-page em { color: var(--text); }

.about-page ul {
  list-style: none;
  margin: 0.6rem 0 1.2rem;
  padding: 0;
}
.about-page ul li {
  position: relative;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
}
.about-page ul li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  top: -0.05em;
  color: var(--brass);
  font-weight: 700;
}
.about-page ul li strong { color: var(--text); }

/* Sub-headings within a section (smaller than the section label). */
.about-page h3 {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--bone-bright);
  margin: 1.5rem 0 0.5rem;
}

/* ---- Pull-quote / highlight ----------------------------------------- */
.about-highlight {
  background: rgba(201, 164, 100, 0.08);
  border-left: 3px solid var(--brass);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0 1.4rem;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

/* ---- Tile legend (the four flip-tiles) ------------------------------- */
.tile-legend {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0.6rem;
}
.tile-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--canvas-elev);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
/* The bone "tile" chip — echoes the dominos / reader flip-tile material. */
.tile-row .tile-glyph {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.7rem;
  color: #1a1d2c;
  background: linear-gradient(155deg, var(--bone-bright), var(--bone-shadow));
  border: 1px solid var(--tile-edge);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.tile-row .tile-text { min-width: 0; }
.tile-row .tile-name {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--bone-bright);
  letter-spacing: 0.02em;
}
.tile-row .tile-name .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-left: 0.5rem;
  letter-spacing: 0.01em;
}
.tile-row .tile-desc {
  font-family: var(--font-en);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0.35rem 0 0;
}
/* Frequency-coverage line under each tile — the headline stat. */
.tile-row .tile-coverage {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass);
  margin: 0.5rem 0 0;
}

/* ---- Source list ----------------------------------------------------- */
.source-list { margin: 1rem 0 0.5rem; }
.source-item {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  background: rgba(232, 220, 196, 0.03);
}
.source-item h3 { margin-top: 0; }
.source-item .source-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}
.source-item .source-meta strong { color: var(--text); font-weight: 600; }
.source-item p {
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}
.source-item p:last-child { margin-bottom: 0; }

/* ---- Maker / support callout ---------------------------------------- */
.about-credit {
  text-align: center;
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* The About column reads better a touch wider than the library default. */
.about-page .page-col { width: min(680px, 100%); }

/* ---- About hub — navigation cards (one per sub-page) ----------------- *
 * A big tappable block: bold title, one-line teaser, a › arrow on the
 * right. Ported from nihongo_dominos, but built on this repo's tokens so
 * the cards read correctly in BOTH the light (washi) and dark themes —
 * the surface is var(--canvas-elev), not a dark-only rgba tint.          */
.about-nav-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--canvas-elev);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin: 0.8rem 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.about-nav-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}
.about-nav-card:active {
  transform: translateY(0);
}
.about-nav-card .nav-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  padding-right: 1.6rem;       /* room for the arrow */
}
.about-nav-card .nav-teaser {
  font-family: var(--font-en);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
.about-nav-card .nav-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brass);
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.about-nav-card:hover .nav-arrow {
  opacity: 1;
  transform: translateX(3px);
}
