/* Texelwright publisher site. Colours and type come from the Kit Optimizer brand tokens (brand/tokens.css). */

:root {
  color-scheme: dark;
  --gutter: 16px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-synthesis: none; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wpm-ink);
  color: var(--wpm-text);
  font-family: "Inter Tight", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wpm-cyan); text-underline-offset: 3px; }
a:hover { color: var(--wpm-text); }
a:focus-visible { outline: 2px solid var(--wpm-cyan); outline-offset: 3px; border-radius: 4px; }

code { font-family: "JetBrains Mono", "Cascadia Mono", monospace; font-size: 0.88em; color: var(--wpm-text); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--wpm-muted); }

.label {
  font-family: "JetBrains Mono", "Cascadia Mono", monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wpm-muted);
}

/* Header */
.top { border-bottom: 1px solid var(--wpm-hairline); background: var(--wpm-ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.publisher { color: var(--wpm-text); text-decoration: none; font-weight: 680; font-size: 21px; letter-spacing: -0.028em; display: inline-flex; align-items: center; gap: 10px; }
.publisher img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--wpm-muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--wpm-text); }

/* Intro */
.intro { padding-top: 72px; padding-bottom: 56px; }
.intro h1 {
  margin: 12px 0 16px;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.lead { color: var(--wpm-muted); font-size: 19px; max-width: 60ch; margin: 0; }

/* Product */
.product { background: var(--wpm-graphite); border-top: 1px solid var(--wpm-hairline); border-bottom: 1px solid var(--wpm-hairline); padding: 64px 0; }
.lockup { width: min(420px, 100%); height: auto; }
.tagline { font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 28px 0 12px; }
.store { margin: 24px 0 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-block;
  background: var(--wpm-cyan);
  color: var(--wpm-ink);
  font-weight: 650;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
}
.button:hover { background: var(--wpm-text); color: var(--wpm-ink); }
.soon { color: var(--wpm-muted); }
.hero-shot { margin: 0 0 48px; border: 1px solid var(--wpm-hairline); border-radius: 12px; overflow: hidden; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 48px; }
.features article { background: var(--wpm-slate); border: 1px solid var(--wpm-hairline); border-radius: 12px; padding: 20px; }
.features h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.features p { margin: 0; color: var(--wpm-muted); font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--wpm-hairline); border-radius: 10px; }
.shots figcaption { color: var(--wpm-muted); font-size: 15px; margin-top: 8px; }
.requirements { margin: 40px 0 0; color: var(--wpm-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }

/* Docs and support */
.docs, .support { padding-top: 56px; }
.section-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin: 0 0 12px; }
.docs > p, .support > p { color: var(--wpm-muted); max-width: 70ch; }
.links { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.links li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 18px; }
.links .alt { font-family: "JetBrains Mono", "Cascadia Mono", monospace; font-size: 13px; letter-spacing: 0.06em; }
.support strong { color: var(--wpm-text); font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--wpm-hairline); margin-top: 72px; padding-top: 24px; padding-bottom: 40px; font-size: 15px; }
.foot p { margin: 0 0 8px; }

.products-title { margin-bottom: 32px; }
