/* Seismor — shared styles. No framework, no JavaScript. */

/* Mulish, the brand face, taken from the apps and served from this origin —
   no Google Fonts request, and nothing about a visit leaves with a third
   party. Two static weights exist and no more: 400 and 800, so nothing here
   asks for anything in between; a browser handed 600 would synthesise it.
   These paths are fingerprinted at deploy time, which is why deploy.sh hashes
   fonts before the stylesheet that names them. */
@font-face {
  font-family: Mulish;
  src: url(fonts/mulish-regular.2dc9cef2f8.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Mulish;
  src: url(fonts/mulish-extrabold.95a218719e.woff2) format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --border: #e3e2df;
  --text: #1b1b19;
  --muted: #6a6862;
  --accent: #7a4a2b;
  --accent-soft: #f2ebe4;
  /* The mark's own two colours, fixed by the brand sheet. Kept apart from
     --accent, which is the link colour and a different job. */
  --mark-shell: #1f1e1c;
  --mark-accent: #9c7a55;
  --radius: 10px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --surface: #1f1f23;
    --border: #33333a;
    --text: #eceae6;
    --muted: #a3a09a;
    --accent: #d9a273;
    --accent-soft: #2a2420;
    --mark-shell: #eae7e2;
    --mark-accent: #d4b08c;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: Mulish, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
}

.wrap--prose {
  max-width: var(--measure);
}

/* ---------- header ---------- */

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

/* Mark above wordmark, centred — the stacked lockup, same as the home page.
   The whole thing is the link home, so the anchor carries no link styling of
   its own. */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  color: inherit;
  text-decoration: none;
}

.lockup .mark {
  display: block;
  width: 92px;
  height: 92px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mark-shell);
  text-decoration: none;
}

.brand span {
  color: var(--mark-accent);
}

/* Stroke widths stay on the elements, exactly as the brand files set them. */
.mk-shell {
  fill: none;
  stroke: var(--mark-shell);
}

.mk-line {
  fill: none;
  stroke: var(--mark-accent);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
}

/* ---------- sections ---------- */

section {
  margin: 0 0 3.25rem;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-weight: 800;
}

h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul {
  max-width: var(--measure);
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ---------- app cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.card .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.card .card-foot {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.1rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------- tables (permissions) ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.95rem;
}

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

th {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---------- callout ---------- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.5rem;
  max-width: var(--measure);
}

.note p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-foot p {
  margin-bottom: 0.4rem;
}

.backlink {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
