/* thatsmy.tools/resources. Loaded after site.css. Same plain page, plus the swatches, icons and the type specimen. */

/* the full Recursive, only for the specimen */
@font-face {
  font-family: "Recursive Full";
  src: url("/fonts/recursive-full-latin.woff2") format("woff2");
  font-weight: 300 1000;
  font-style: oblique 0deg 15deg;
  font-display: swap;
}

.back { margin: 10px 0 0; }
.back a { text-decoration: none; }

.shelf { margin: 0 0 34px; }
.shelf > h2 { font-size: 20px; margin: 0 0 4px; }
.shelf > h2 small { font-size: 12px; color: #666; font-weight: normal; }
.shelf > .intro { max-width: 90ch; margin: 0 0 14px; font-style: italic; }

/* one colour per section, like the rooms on the home page */
.s-approved > h2 { color: #ff7eb6; }
.s-icons > h2 { color: #6cb6ff; }
.s-palettes > h2 { color: #4fd1c5; }
.s-type > h2 { color: #a6c34a; }
.s-styles > h2 { color: #ff9b4a; }
.s-looks > h2 { color: #ff6b5b; }
.s-themes > h2 { color: #b8a6e8; }
.s-tools > h2 { color: #6cb6ff; }

.group { margin: 0 0 22px; }
.group > h3 { font-size: 13px; font-weight: normal; color: #666; margin: 16px 0 4px; }
.group > p { max-width: 90ch; margin: 0 0 10px; }

/* the lists of entries: no cards, just blocks of text in columns */
.sheets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 18px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.sheets.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sheets.pals { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sheets.icons { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); }

.sheet > * { margin: 0; }
.sheet > * + * { margin-top: 6px; }
.sheet header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.sheet h3, .sheet h4 { margin: 0; font-size: 16px; font-weight: bold; color: #fff; }
.sheet h4 a, .sheet h3 a { text-decoration: none; }
.sheet h4::before { content: "» "; }
.era { color: #555; font-size: 12px; }
.sheet .say { color: #968e85; }
b.say { color: #c9c3b9; font-weight: normal; }

.facts { margin: 0; padding: 0; list-style: none; font-size: 12px; color: #555; }
.facts li { display: inline; }
.facts li + li::before { content: " | "; }
.facts a { color: #aaa; }

/* paint chips: a square of colour, the name and the hex */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips.tight { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.chips li { min-width: 0; }
.chips i { display: block; height: 30px; background: var(--c); outline: 1px solid #333; }
.chips b, .chips code { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.chips b { margin-top: 3px; font-weight: normal; color: #777; }
.chips code { color: #ccc; white-space: nowrap; }
.set-label { margin-top: 12px !important; color: #c9c3b9; }

.strip { display: flex; height: 12px; margin-top: 8px !important; padding: 0; list-style: none; outline: 1px solid #333; }
.strip li { flex: 1; background: var(--c); }

/* folded notes */
.sheet details { margin-top: 8px; }
.sheet summary { cursor: pointer; color: #fff; list-style: none; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::before { content: "[+] "; color: #777; }
.sheet details[open] > summary::before { content: "[-] "; }
.sheet summary:hover { background: #fff; color: #000; }
.sheet details > * + * { margin-top: 8px; }

.lines { margin: 0; padding-left: 0; list-style: none; }
.lines li::before { content: "- "; color: #555; }
.lines li + li { margin-top: 3px; }

.fit { margin: 0; }
.fit div + div { margin-top: 4px; }
.fit dt { color: #c9c3b9; }
.fit dd { margin: 0; }

/* the type specimen keeps its own font, that is the point of it */
.specimen { font-family: "Recursive Full", monospace; }
.specimen .big {
  margin: 0;
  font: 1000 clamp(2.6rem, 1.6rem + 5vw, 5rem)/.95 "Recursive Full", monospace;
  font-variation-settings: "CASL" 1, "MONO" 0;
  color: #fff;
}
.specimen .big::before { content: none; }
.specimen .rows { margin-top: 14px; padding: 0; list-style: none; }
.specimen .rows li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px dashed #333;
}
.specimen .rows b { font: 12px/1.3 monospace; color: #666; }
.specimen .rows span { font-size: clamp(1.1rem, 1rem + .8vw, 1.6rem); line-height: 1.25; color: #eee; overflow-wrap: anywhere; }
.r-sl { font-weight: 300; font-variation-settings: "CASL" 0, "MONO" 0; }
.r-sc { font-weight: 700; font-variation-settings: "CASL" 1, "MONO" 0; }
.r-ml { font-weight: 400; font-variation-settings: "CASL" 0, "MONO" 1; }
.r-mc { font-weight: 800; font-style: oblique 15deg; font-variation-settings: "CASL" 1, "MONO" 1, "CRSV" 1; }
.r-it { font-weight: 500; font-style: oblique 15deg; font-variation-settings: "CASL" 0.5, "MONO" 0, "CRSV" 1; }
.tip { max-width: 90ch; margin-top: 12px !important; font-family: monospace; }
.specimen .facts, .specimen .lines { font-family: monospace; }

/* m-icons: eight icons in every style, in two strips */
.iconset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 8px !important; }
.iconset figure { margin: 0; }
.iconset img { display: block; width: 100%; height: auto; }
.iconset.pixel img { image-rendering: pixelated; }
.iconset figcaption { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3px; text-align: center; }
.iconset code { font-size: 10px; color: #666; overflow-wrap: anywhere; }

/* screenshots and the little trays with a taste of each tool */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; outline: 1px solid #333; }
.sample {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  background: #e8e6dc;
  color: #100f0f;
  overflow: hidden;
}
.sample img { display: block; width: 34px; height: 34px; object-fit: contain; }
.sample.big img { width: 46px; height: 46px; }
.sample.round img { border-radius: 50%; }
.sample.pixel img { width: 36px; height: 36px; image-rendering: pixelated; }
.sample.flags img { width: 44px; height: 33px; object-fit: cover; }
.sample.cards img { width: 40px; height: 58px; object-fit: contain; }
.sample.art { padding: 6px; }
.sample.art img { width: 100%; height: 96px; object-fit: contain; }
.sample.art.pixel img { image-rendering: pixelated; object-fit: cover; }
.sample.square img { width: 96px; height: 96px; }
.sample.pair img { width: 84px; height: 84px; min-width: 0; flex: 0 1 auto; object-fit: contain; }
.sample.pair img + img { width: 120px; object-fit: cover; }
.sample.tiles { gap: 8px; padding: 8px; }
.sample .tile { flex: 1; height: 64px; background-color: #FFFCF0; background-size: 72px; }
.pat-jigsaw { background-image: url(/img/tools/hero-patterns/jigsaw.svg); }
.pat-circuit-board { background-image: url(/img/tools/hero-patterns/circuit-board.svg); }
.pat-bubbles { background-image: url(/img/tools/hero-patterns/bubbles.svg); }
.pat-i-like-food { background-image: url(/img/tools/hero-patterns/i-like-food.svg); }

.sample.demo { gap: 16px; flex-wrap: wrap; font: bold 14px/1.2 monospace; }
.demo-paper {
  padding: 7px 16px;
  background: #FFFCF0;
  border: 2px solid #100F0F;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.demo-paper.alt { border-color: #4385BE; color: #205EA6; border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; }
.demo-rough { padding: 6px 10px; background: no-repeat center / 100% 100%; }
.demo-rough.circle { background-image: url(/img/tools/rough-notation/circle.svg); }
.demo-rough.under { padding-inline: 2px; background-image: url(/img/tools/rough-notation/underline.svg); background-size: 100% 10px; background-position: 0 100%; }
.demo-wired { padding: 9px 18px; background: url(/img/tools/wired-elements/button.svg) no-repeat center / 100% 100%; }
.demo-check { display: inline-flex; align-items: center; gap: 6px; }
.demo-check::before { content: ""; width: 24px; height: 24px; background: url(/img/tools/wired-elements/check.svg) no-repeat center / contain; }
.license { font-size: 12px; color: #555; }
.license::before { content: "["; }
.license::after { content: "]"; }

.mono { font-family: monospace; }

@media (max-width: 560px) {
  .iconset { grid-template-columns: 1fr; }
  .specimen .rows li { grid-template-columns: 1fr; gap: 2px; }
}
