/* Each illustration has its own portrait composition. The small landscape print
   doubles as the gallery cover and the artwork in the page banner. */
.tm-lunar {
  --t-bg: #151513;
  --t-card-solid: #252522;
  --t-ink: #fff2dc;
  --t-muted: #d4c7b4;
  --t-line: #666055;
  --t-accent: #ffa457;
  --t-accent-ink: #231408;
  --t-accent2: #e9d3a3;
  --t-theirs: #33332d;
  --t-mine: #824119;
  --t-danger: #ff9b89;
  --t-admin: #ffcd76;
  --t-scheme: dark;
  --t-display: "Space Grotesk", system-ui, sans-serif;
  --t-display-weight: 700;
  --t-h1: 29px;
  --t-h1-track: -.035em;
  --t-tech: "Chakra Petch", system-ui, sans-serif;
  --t-radius: 6px;
  --t-btn-radius: 4px;
  --t-card-shadow: inset 3px 0 #b87740, 0 4px 14px #09090745;
  --t-wall: url(/static/theme4/lunar/portrait.webp?v=1795401507) center/cover no-repeat;
  --t-wall-wide: url(/static/theme4/lunar/wall.webp?v=1795401507) center/cover no-repeat;
  --print-cover: url(/static/theme4/lunar/cover.webp?v=1795401507);
  --print-position: 80% 54%;
}
.tm-tidepool {
  --t-bg: #f5ead5;
  --t-card-solid: #fff8e8;
  --t-ink: #152e39;
  --t-muted: #3e5860;
  --t-line: #b6b3a4;
  --t-accent: #9b3322;
  --t-accent-ink: #fff8e8;
  --t-accent2: #176371;
  --t-theirs: #e3e5da;
  --t-mine: #175867;
  --t-danger: #9a252a;
  --t-admin: #794509;
  --t-scheme: light;
  --t-display: "Instrument Serif", Georgia, serif;
  --t-display-weight: 400;
  --t-h1: 35px;
  --t-h1-track: -.013em;
  --t-tech: "Inter", system-ui, sans-serif;
  --t-radius: 4px;
  --t-btn-radius: 4px;
  --t-card-shadow: 2px 3px 0 #24445135;
  --t-wall: url(/static/theme4/tidepool/portrait.webp?v=1795401507) center/cover no-repeat;
  --t-wall-wide: url(/static/theme4/tidepool/wall.webp?v=1795401507) center/cover no-repeat;
  --print-cover: url(/static/theme4/tidepool/cover.webp?v=1795401507);
  --print-position: 65% 64%;
}
.tm-velvet {
  --t-bg: #241020;
  --t-card-solid: #3b1d37;
  --t-ink: #fff0e4;
  --t-muted: #e3c5dc;
  --t-line: #80566e;
  --t-accent: #ffb17c;
  --t-accent-ink: #32192a;
  --t-accent2: #ebb5ef;
  --t-theirs: #53324b;
  --t-mine: #723e68;
  --t-danger: #ffa5b6;
  --t-admin: #ffca83;
  --t-scheme: dark;
  --t-display: "Fraunces", Georgia, serif;
  --t-display-weight: 650;
  --t-h1: 30px;
  --t-h1-track: -.04em;
  --t-tech: "Space Grotesk", system-ui, sans-serif;
  --t-radius: 20px;
  --t-btn-radius: 999px;
  --t-card-shadow: inset 0 1px #f9d5f122, 0 6px 24px #17091466;
  --t-wall: url(/static/theme4/velvet/portrait.webp?v=1795401507) center/cover no-repeat;
  --t-wall-wide: url(/static/theme4/velvet/wall.webp?v=1795401507) center/cover no-repeat;
  --print-cover: url(/static/theme4/velvet/cover.webp?v=1795401507);
  --print-position: 76% 65%;
}
:is(.tm-lunar, .tm-tidepool, .tm-velvet) {
  --t-card: var(--t-card-solid);
  --t-body: "Inter", system-ui, sans-serif;
  --t-tabfont: var(--t-tech);
  --t-sec: var(--t-ink);
  --t-link: var(--t-accent);
  --t-btn: var(--t-accent);
  --t-btn-ink: var(--t-accent-ink);
  --t-mine-ink: #fff9f1;
  --t-title: linear-gradient(100deg, var(--t-ink), var(--t-accent2));
  --t-tabs: var(--t-card-solid);
  --t-header: var(--t-card-solid);
  --t-sheet: var(--t-card-solid);
  --t-input: var(--t-bg);
  --t-blur: none;
  --t-veil: linear-gradient(color-mix(in srgb, var(--t-bg) 83%, transparent), color-mix(in srgb, var(--t-bg) 88%, transparent));
  --t-veil-wide: linear-gradient(100deg, color-mix(in srgb, var(--t-bg) 87%, transparent) 5%, color-mix(in srgb, var(--t-bg) 76%, transparent) 75%);
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) .appban .ab-art {
  background: var(--print-cover) var(--print-position)/cover no-repeat;
  animation: none;
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) .appban::after {
  background: linear-gradient(90deg, var(--t-bg) 0%, color-mix(in srgb, var(--t-bg) 90%, transparent) 35%, transparent 83%);
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) :is(header.top h1, .appban .ab-name, .appban .ab-tag) {
  filter: none;
  text-shadow: none;
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) .appban :is(.ab-theme, .ab-work, .ab-ticker) {
  background: var(--t-card-solid);
  color: var(--t-ink);
  border-color: var(--t-line);
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) #tabs a .ic {
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--icm) center/contain no-repeat;
  -webkit-mask: var(--icm) center/contain no-repeat;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
}
html:is(.tm-lunar, .tm-tidepool, .tm-velvet) #tabs a.on { color: var(--t-accent); }
.th-illustrated .th-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.th-illustrated .th-card {
  display: flex;
  flex-direction: column;
  background: var(--t-card-solid);
  border-radius: var(--t-radius);
}
.th-illustrated .th-card:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 3px; }
.th-cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.th-illustrated .th-meta { flex: 1; padding: 14px 16px 16px; }
.th-illustrated .th-meta b { font-size: 1.55rem; letter-spacing: var(--t-h1-track); }
.th-illustrated .th-meta p { font-size: .9375rem; line-height: 1.45; }
.th-illustrated .th-sw { margin-top: 12px; }
