/* PuzzleShelf website. Plain CSS, no scripts, nothing loaded from other sites.
   The colours are the app's own: petrol, the lighter petrol of the puzzle piece, cream and the
   orange shelf from the icon. The headings use Fraunces, as the titles in the app do. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f7f4ee;          /* the cream of the P, a little lighter */
  --panel: #fffdf9;
  --ink: #142b2a;
  --ink-soft: #485d5c;
  --line: #dbe2df;
  --accent: #006a6a;      /* petrol, the icon's background and the app's default colour */
  --accent-soft: #d8ebe8;
  --on-accent: #ffffff;
  --shelf: #e0b04f;       /* the shelf under the P */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1716;
    --panel: #142120;
    --ink: #e5eeed;
    --ink-soft: #a6bab8;
    --line: #253534;
    --accent: #72d0cc;
    --accent-soft: #163433;
    --on-accent: #002020;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 60rem; margin: 0 auto; padding-inline: 1rem; }
.narrow { max-width: 40rem; }

header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font: 600 1.45rem/1 var(--display); text-decoration: none; }
.brand img { border-radius: 0.6rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

/* The top of the page: a wash of petrol that fades out, as on the other Apps With Manners sites. */
.hero { margin-top: 0.5rem; padding: 3rem 1.5rem 2.75rem; border-radius: 1.5rem; background: linear-gradient(160deg, var(--accent-soft) 35%, var(--bg)); }
h1 { font: 600 clamp(2.3rem, 7.5vw, 3.8rem)/1.08 var(--display); margin: 0 0 1.25rem; letter-spacing: -0.01em; text-wrap: balance; max-width: 16ch; }
/* The emphasised words stand on the orange shelf of the icon. */
h1 em { font-style: normal; text-decoration: underline var(--shelf); text-decoration-thickness: 0.14em; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }
.lead { font-size: 1.2rem; max-width: 38rem; margin: 0 0 1.25rem; }
.badge { display: inline-block; margin: 0; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.95rem; }
h2 { font: 600 1.9rem/1.15 var(--display); margin: 3.25rem 0 1rem; text-wrap: balance; }
p { margin: 0 0 1rem; }

.points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; }
.points li { background: var(--panel); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.1rem 1.2rem; min-width: 0; }
.points strong { display: block; margin-bottom: 0.25rem; font-size: 1.08rem; }
.points span { color: var(--ink-soft); font-size: 0.98rem; }

/* Screenshots of the app: three phones in a row, and under them a pile of the six colours. */
/* Each phone as wide as the front phone of the pile below: 495 of its 1342 pixels, at 34rem. */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 12.5rem)); justify-content: center; gap: 1rem clamp(0.6rem, 2vw, 1.25rem); margin: 1.5rem auto 2rem; }
.shots figure, .colours { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: clamp(0.5rem, 1.6vw, 0.9rem); border: 1px solid var(--line); }
.shots figcaption, .colours figcaption { font-size: 0.85rem; line-height: 1.4; color: var(--ink-soft); margin-top: 0.5rem; text-align: center; }
.colours { max-width: 34rem; margin: 0 auto 1.5rem; }
.colours img { display: block; width: 100%; height: auto; }
.shots + .colours + .note { text-align: center; }

.text { max-width: 40rem; }
.note { color: var(--ink-soft); font-size: 0.92rem; }

main.text { padding-block: 2.5rem; max-width: none; }

footer.site .wrap { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; color: var(--ink-soft); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer.site a { color: var(--ink-soft); }
