/* nftcash.com: a sale page. Its theme, deals; the name in an angled box in its accent colour. Bricolage Grotesque for
   the name, Atkinson Hyperlegible for reading. Fonts served from this site. Made by sale.py: change the theme there. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: hsl(339 52% 27%);
  --ground-deep: hsl(339 58% 17%);
  --pat: hsla(0 0% 100% / 0.10);
  --pat2: hsla(0 0% 100% / 0.05);
  --paper: hsl(339 30% 98%);
  --ink: hsl(339 40% 12%);
  --muted: hsl(339 14% 34%);
  --accent: hsl(42 92% 60%);
  --accent-light: hsl(42 95% 72%);
  --on-accent: hsl(42 60% 10%);
  --rule: hsl(339 20% 88%);
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: hsl(339 50% 15%); --ground-deep: hsl(339 55% 9%); --pat: hsla(0 0% 100% / 0.07); --pat2: hsla(0 0% 100% / 0.035);
    --paper: hsl(339 26% 14%); --ink: hsl(339 20% 94%); --muted: hsl(339 14% 70%); --rule: hsl(339 20% 26%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--ground-deep); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 18px/1.65 var(--body);
  background-color: var(--ground);
  background-image:
    radial-gradient(circle at 14px 14px, var(--pat) 4px, transparent 4.5px),
    repeating-linear-gradient(135deg, var(--pat2) 0 2px, transparent 2px 22px);
  background-size: 56px 56px, auto;
}
main { max-width: 800px; margin: 0 auto; padding: 18px 20px 40px; display: grid; gap: 26px; }

/* the price tag at the very top: the name is for sale, plainly */
.forsale { justify-self: start; text-decoration: none; }
.forsale span {
  display: inline-flex; align-items: center; gap: 11px;
  font: 700 19px/1 var(--body); background: var(--accent); color: var(--on-accent);
  padding: 13px 22px 13px 26px; clip-path: polygon(15px 0, 100% 0, 100% 100%, 15px 100%, 0 50%);
}
.forsale span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ground); } /* the tag's hole */
a.forsale span::after { content: "→"; }
a.forsale:hover span { background: var(--accent-light); }

.site { display: grid; gap: 6px; color: #fff; }
h1 { margin: 0; font: 800 40px/1.15 var(--display); letter-spacing: 0.01em; overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
[data-page="article"] h1 { font-size: clamp(26px, 4.4vw, 34px); }
.tagline { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
/* the title's key word in an angled box, in this site's accent */
.hl {
  display: inline-block; color: var(--on-accent); text-shadow: none; padding: 0 0.14em; margin-left: 0.06em;
  border-radius: 8px; background: linear-gradient(100deg, var(--accent), var(--accent-light)); transform: rotate(-2deg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.forsale:focus-visible, .tile a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* the article: a sheet on the ground, an accent stripe down its edge */
.article {
  background: var(--paper); border-radius: 4px; padding: 28px 32px 32px; border-left: 6px solid var(--accent);
  display: grid; gap: 14px;
}
.article > * { margin: 0; max-width: 66ch; }
.article .lead { font-size: 21px; line-height: 1.55; }
.article h2, .article h3, .article h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin-top: 12px; }
.article h2 { font-size: 30px; }
.article h3 { font-size: 23px; }
.article ul, .article ol { padding-left: 1.4em; }
.article li + li { margin-top: 6px; }
.article a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.article a:hover { background: var(--accent); color: var(--on-accent); }
.article blockquote { border-left: 3px solid var(--rule); padding-left: 16px; color: var(--muted); }
.article figure img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.article .picture { max-width: none; }
.article hr { border: 0; border-top: 1px solid var(--rule); width: 100%; }

/* the tile, inside the article after its first paragraph */
.tile { display: grid; justify-items: center; gap: 6px; max-width: none; margin: 8px 0; }
.tile[hidden] { display: none; }
.tile img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; max-width: 62ch; }

/* the articles, under the page */
.more { background: var(--paper); border-radius: 4px; padding: 24px 32px; }
.more h2 { margin: 0 0 12px; font: 800 22px/1.2 var(--display); }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
/* a card: the thumbnail beside the title and description; stacked on a phone */
.more li { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.more li.bare { grid-template-columns: 1fr; }
.more .thumb img { display: block; width: 100%; height: auto; border-radius: 3px; }
.more .title { font: 800 21px/1.25 var(--display); color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.more .title:hover { background: var(--accent); color: var(--on-accent); }
.more p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* on another page, in place of the For Sale tag: the way back to the home page */
.home { justify-self: start; color: #fff; font: 800 20px/1 var(--display); text-decoration: none; padding: 6px 0; }
.home:hover { color: var(--accent); }
footer { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
footer p { margin: 0 0 4px; }
footer .pages { margin: 0 0 6px; }
footer .pages a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 520px) {
  main { padding-top: 14px; }
  h1 { font-size: 32px; }
  .forsale span { font-size: 17px; }
  .article, .more { padding-left: 20px; padding-right: 20px; }
  .article .lead { font-size: 19.5px; }
  .more li { grid-template-columns: 1fr; gap: 10px; }
}
