/* Apps With Manners website. Plain CSS, no scripts, nothing loaded from other sites.
   The headings use Cormorant Garamond italic, the typeface of Cyclia's greeting; the colours
   are the site's own: bordeaux. Every colour is built from one hue. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-garamond-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --h: 348; --s: 50%;
  --bg: hsl(var(--h) 30% 97%);
  --panel: hsl(var(--h) 40% 99.5%);
  --ink: hsl(var(--h) 30% 12%);
  --ink-soft: hsl(var(--h) 12% 34%);
  --line: hsl(var(--h) 22% 85%);
  --accent: hsl(var(--h) var(--s) 30%);
  --accent-soft: hsl(var(--h) 55% 89%);
  --on-accent: #ffffff;
  --display: "Cormorant Garamond", "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: hsl(var(--h) 18% 8%);
    --panel: hsl(var(--h) 18% 12%);
    --ink: hsl(var(--h) 20% 90%);
    --ink-soft: hsl(var(--h) 12% 72%);
    --line: hsl(var(--h) 14% 24%);
    --accent: hsl(var(--h) var(--s) 76%);
    --accent-soft: hsl(var(--h) 35% 18%);
    --on-accent: hsl(var(--h) 40% 12%);
    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; }
.wrap { max-width: 58rem; margin: 0 auto; padding-inline: 1.25rem; }

header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; padding-block: 1.1rem; }
.brand { font: italic 600 1.7rem/1 var(--display); color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
nav a { text-decoration: none; color: var(--ink-soft); }
nav a:hover { color: var(--accent); }

/* The top of the page: a wash of the accent colour that fades out, as on the Cyclia site. */
.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: italic 600 clamp(2.6rem, 9vw, 4.6rem)/1 var(--display); margin: 0 0 1.25rem; text-wrap: balance; max-width: 14ch; }
/* A heading with its own line break: the width must not break it a second time. */
h1.two-lines { max-width: none; text-wrap: wrap; }
.lead { font-size: 1.2rem; max-width: 36rem; margin: 0 0 1.25rem; }
.badge { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.95rem; }
h2 { font: italic 600 2.1rem/1.1 var(--display); margin: 3.25rem 0 0.5rem; text-wrap: balance; }
p { margin: 0 0 1rem; }
.intro { color: var(--ink-soft); max-width: 38rem; margin: 0 0 1.5rem; }
.text { max-width: 38rem; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2rem; }
.rules li { border-top: 1px solid var(--line); padding-block: 1rem 1.1rem; min-width: 0; }
.rules strong { display: block; font-size: 1.08rem; }
.rules span { color: var(--ink-soft); font-size: 0.98rem; }

.app { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; }
.app img { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; }
.app div { flex: 1 1 16rem; min-width: 0; }
.app h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.app p { margin: 0; color: var(--ink-soft); }
.app .more { flex: 0 0 auto; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); border-radius: 999px; padding: 0.55rem 1.1rem; }
.status { display: inline-block; margin-top: 0.5rem; font-size: 0.88rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.15rem 0.7rem; }

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; }
