/* The whole site's styles. Headings are Goudy Bookletter 1911, the wordmark's face, served from
   here (fonts/, with its licence); body text is the system's sans. Light and dark follow the
   device. */

@font-face {
  font-family: "Goudy Bookletter 1911";
  src: url("/fonts/goudy-bookletter-1911.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --fg: #1f2a44;
  --muted: #5b6478;
  --rule: #e3ddd2;
  --card: #ffffff;
  --link: #2f5d9e;
  --serif: "Goudy Bookletter 1911", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f;
    --fg: #ece8e1;
    --muted: #a3abb9;
    --rule: #2a313d;
    --card: #1b2029;
    --link: #8fb4ec;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.15em; }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: the wordmark, home; the pages beside it, or under it on a narrow phone. */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.home { display: block; line-height: 0; }
.home img { height: 30px; width: auto; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
}
.top nav a:hover { color: var(--fg); }
.top nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom: 2px solid currentColor;
}

main.wrap { padding-top: 3rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 {
  font-size: clamp(2.2rem, 8vw, 3rem);
  letter-spacing: -0.005em;
  margin: 0 0 0.9rem;
}
h2 { font-size: 1.75rem; margin: 2.75rem 0 0.6rem; }
h3 { font-size: 1.4rem; margin: 0 0 0.35rem; }
.lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 2.5rem; }
p { margin: 0 0 1rem; }

/* Products: a card each. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
}
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 0.6rem; }
.status {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

/* A product's name with its own marks: its icon, and its wordmark where it has one (Plumtime's is
   its name in Bagnard, as its own site sets it); otherwise the name in our heading face. */
.product-name { display: flex; align-items: center; gap: 0.7rem; }
a.product-name { color: var(--fg); text-decoration: none; }
a.product-name:hover span, a.product-name:focus-visible span { text-decoration: underline; }
.product-name .mark { border-radius: 22%; flex: none; }
.product-name .wordmark { display: block; height: 22px; width: auto; }
h2.product-name .wordmark { height: 26px; }
.card h3 { margin-bottom: 0.55rem; }

.product { padding-top: 0.5rem; }
.product h2 { margin: 2.5rem 0 0.25rem; }
.lede + .product h2 { margin-top: 0; }
.product .status { margin-bottom: 0.9rem; }
.product ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.product li { margin-bottom: 0.4rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Company details: label above value on a phone, beside it when there is room. */
.details { display: grid; grid-template-columns: 1fr; gap: 0.15rem 1.5rem; margin: 0 0 1rem; }
.details dt { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.details dd { margin: 0; }
@media (min-width: 34rem) {
  .details { grid-template-columns: 9rem 1fr; }
  .details dt, .details dd { margin-top: 0.6rem; }
}

.more { margin-top: 2rem; }

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
footer a { color: var(--muted); }
