/* Software Etc. — shared styles.
   One small stylesheet, no build step, no framework. The site's main job is
   hosting legal documents, so readability outranks everything else here.

   The identity, taken from the logo: Georgia for headings and the wordmark,
   set lowercase, each followed by a full stop in the accent orange. Body
   text is a contrasting sans — deliberately not Georgia, partly for the
   contrast and partly because Georgia's old-style numerals sit badly next
   to prices and dates, which these pages are full of. Restraint is the
   point: no photography, no gradients, no hero imagery. */

:root {
  /* Sampled from the logo artwork itself rather than eyeballed. */
  --orange: #ee6538;
  --ink: #111111;
  --body: #24252a;
  --muted: #5c5f66;
  --rule: #e4e4e6;
  --bg: #ffffff;
  --accent-bg: #f7f7f8;
  --warn-bg: #fdf6ec;
  --warn-border: #e3b778;
  --warn-fg: #6b4a1b;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --body: #dcdde0;
    --muted: #a1a3a9;
    --rule: #303238;
    --bg: #141519;
    --accent-bg: #1c1d22;
    --warn-bg: #2a2113;
    --warn-border: #7a5e28;
    --warn-fg: #e6cc98;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Base is 17px: "nothing below 16px for body text" is a floor, not a
     target, and long legal documents are easier at 17. Every smaller size
     below is expressed so it still lands at or above 16px. */
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  line-height: 1.65;
}

/* ---------- the full-stop motif ----------
   Carried from the logo through every heading and nav item. Done in CSS so
   the markup stays clean and a heading never has to be written with a stray
   trailing stop that would end up in a <title> or a copy-paste. */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1.15;
}

main h1::after,
main h2::after,
main h3::after {
  content: ".";
  color: var(--orange);
}

/* Headings that are really labels inside a banner or box shouldn't take the
   motif — it belongs to the page's own structure, not to furniture. */
.no-stop::after { content: none !important; }

h1 { font-size: 2.5rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.6rem; margin: 3rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p, ul, ol, table { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--orange); text-underline-offset: 0.15em; }
a:hover { text-decoration: none; }

strong { font-weight: 600; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ---------- wordmark ----------
   "software" in the ink colour with "etc." beneath it in orange italic —
   and the final full stop in ink, not orange, exactly as the logo sets it. */

.wordmark {
  display: inline-block;
  font-family: var(--serif);
  line-height: 0.92;
  text-decoration: none;
  text-transform: lowercase;
}

.wm-software { display: block; color: var(--ink); }

.wm-etc {
  display: block;
  text-align: right;
  font-style: italic;
  color: var(--orange);
}

.wm-dot { color: var(--ink); font-style: normal; }

.wordmark--lg { font-size: clamp(3.5rem, 11vw, 7.5rem); }
.wordmark--sm { font-size: 1.5rem; }

/* ---------- front page ----------
   Follows the design rough: products top-left, wordmark large at the
   bottom-right, company line bottom-left. */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem 2rem;
  max-width: 78rem;
  margin: 0 auto;
}

.home-products { flex: 1; }

.product-entry { margin-bottom: 2.25rem; }

.product-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  text-transform: lowercase;
  color: var(--orange);
  text-decoration: none;
  line-height: 1.1;
}

.product-name .wm-dot { color: var(--ink); }

.product-meta {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.product-meta a { color: var(--ink); text-decoration: none; }
.product-meta a:hover { text-decoration: underline; }

/* Orange dot separators between the sub-links, as in the rough. */
.product-meta .sep { color: var(--orange); margin: 0 0.45rem; }

.home-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4rem;
}

.home-colophon {
  font-family: var(--serif);
  color: var(--orange);
  font-size: 1rem;
  margin: 0;
}

.home-colophon a { color: var(--orange); }

/* ---------- inner pages ---------- */

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

.site-head { border-bottom: 1px solid var(--rule); padding: 1.75rem 0; margin-bottom: 3rem; }

.site-head .wrap {
  max-width: 60rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.site-nav {
  font-family: var(--serif);
  text-transform: lowercase;
  font-size: 1.05rem;
}

.site-nav a { color: var(--ink); text-decoration: none; margin-left: 1.4rem; }
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a::after { content: "."; color: var(--orange); }

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 2rem 0 3.5rem;
  font-size: 1rem;
}

.site-foot .wrap { max-width: 60rem; }

.site-foot nav {
  font-family: var(--serif);
  text-transform: lowercase;
  margin-bottom: 0.75rem;
}

.site-foot nav a { color: var(--ink); text-decoration: none; margin-right: 1.4rem; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot nav a::after { content: "."; color: var(--orange); }

.site-foot p { color: var(--muted); margin: 0; }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.meta { color: var(--muted); margin-bottom: 2rem; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; }

table { border-collapse: collapse; width: 100%; font-size: 1rem; }

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 600; background: var(--accent-bg); color: var(--ink); white-space: nowrap; }

/* ---------- draft banner / version box ---------- */

.draft-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-fg);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}

.draft-banner strong { display: block; margin-bottom: 0.25rem; color: inherit; }
.draft-banner p { margin: 0; }

.version-box {
  background: var(--accent-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  color: var(--muted);
}

.version-box p { margin: 0 0 0.4rem; }
.version-box p:last-child { margin-bottom: 0; }

.version-box code {
  font-size: 0.95em;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
}

/* ---------- FAQ blocks on the product page ---------- */

.faq { margin-bottom: 1.75rem; }

.faq-q {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.faq p { margin: 0 0 0.7rem; }

.callout {
  border-left: 3px solid var(--orange);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .home { padding: 2rem 1.25rem 1.5rem; }
  .home-foot { margin-top: 2.5rem; }
  h1 { font-size: 2rem; }
}
