/*
 * A warmer look, on trial (November 8, 2026; to-do doc-533: "the site feels bland").
 *
 * Loaded after site.css, in the drafts build only, while the owner looks at
 * it. It adds three things: a line drawing for each topic group, the newest
 * options pages as cards on the home page, and a warm accent taken from the
 * brand sand. Its colors are tokens here at the top, built from site.css's
 * own; the build checks this file with the same rules as site.css. If the
 * look is kept, these rules move into site.css and this file goes.
 *
 * Text contrast stays at least 7:1:
 *   --warm-text, light #5b4a1f: 7.22:1 on the page, 8.59:1 on cards, 7.97:1 on --warm-tint.
 *   --warm-text, dark #dcc08a: 10.43:1 on the page, 9.23:1 on cards, 8.78:1 on --warm-tint.
 *   Body text on --warm-tint: 13.61:1 light, 12.17:1 dark; links 8.73:1 and 8.50:1.
 */

:root {
  --warm-text: var(--dated-text);            /* labels and drawings in the warm color */
  --warm-edge: var(--brand-sand);            /* card edges and rules; never text */
  --warm-tint: var(--dated-background);      /* behind today's option and a drawing */
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --warm-text: #dcc08a;
  }
}

@media screen {
  :root[data-theme="dark"] {
    --warm-text: #dcc08a;
  }
}

/* ---------- Topic group drawings ---------- */

.group-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  color: var(--warm-text);
}

/* On All topics and the home page's group cards: the drawing in a warm circle. */
.group-heading,
.group-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.group-heading .group-icon,
.group-card h3 .group-icon {
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: var(--warm-tint);
}

/* In the Topics menu: the drawing before each group's name. */
.topics-panel .menu-group-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* ---------- The warm accent ---------- */

.group-card {
  border-top-color: var(--warm-edge);
}

.home-tip {
  background: var(--warm-tint);
  border-left-color: var(--warm-edge);
}

.home-tip h2 {
  color: var(--warm-text);
}

.page-list .page-kind,
.option-card .page-kind {
  border-color: var(--warm-edge);
  background: var(--warm-tint);
  color: var(--warm-text);
}

/* ---------- The newest options pages as cards (home page) ---------- */

.option-cards {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.4rem 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-top: 4px solid var(--warm-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.option-card h3 {
  margin: 0.6rem 0 0.35rem;
}

.option-card h3 a {
  color: var(--text-heading);
  text-decoration-thickness: 1px;
}

.option-card-summary {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: var(--size-small);
}

.option-card-facts {
  margin: 0 0 0.6rem;
  font-size: var(--size-small);
}

.option-card-facts > div {
  margin: 0 0 0.2rem;
}

.option-card-facts dt {
  display: inline;
  font-weight: 600;
}

.option-card-facts dt::after {
  content: ": ";
}

.option-card-facts dd {
  display: inline;
  margin: 0;
}

.option-card-date {
  margin: auto 0 0;
  color: var(--text-muted);
  font-size: var(--size-small);
}

@media (min-width: 48rem) {
  .option-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The kinds of cost, one after another: some kinds hold a comma ("Free, or paid plans"), so a dot parts them. */
.option-card-costs {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option-card-costs li {
  display: inline;
}

.option-card-costs li + li::before {
  content: " \00b7  ";
  content: " \00b7  " / "";
  color: var(--text-muted);
}
