/* Tinman — "Stamped nameplate". Used by the company page and the 404 only; the
   Articulate pages have their own look in articulate.css. */
:root {
  /* Dark (default look) */
  --ground: #1D2023;  /* graphite */
  --ink: #D9DCDE;     /* brushed aluminium — 11.6:1 */
  --muted: #9198A0;   /* zinc — 5.3:1 */
  --rule: #3A3F44;    /* plate edge, rivets */
  --accent: #D9A441;  /* amber — 7.2:1 */
  --plate: transparent;
  --mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #E3E6E8;  /* tin */
    --ink: #1A1D20;     /* 13.9:1 */
    --muted: #50575E;   /* 6.0:1 */
    --rule: #A9AFB4;
    --accent: #8A5A00;  /* dark amber — 5.0:1 */
    --plate: #ECEEEF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 1;
  padding: .75rem 1rem; background: var(--ink); color: var(--ground);
}
.skip:focus { left: 1rem; top: 1rem; }

.page {
  min-height: 100vh;
  padding: clamp(2.5rem, 9vw, 6rem) 1rem clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* The plate */
.plate {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(2.25rem, 7vw, 3rem) clamp(1.375rem, 6vw, 2.5rem) clamp(2rem, 6vw, 2.5rem);
}
.rivet {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
}
.rivet.tl { top: 12px; left: 12px; }
.rivet.tr { top: 12px; right: 12px; }
.rivet.bl { bottom: 12px; left: 12px; }
.rivet.br { bottom: 12px; right: 12px; }

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  margin: 0;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  line-height: 1.2;
}
.wordmark a { color: var(--ink); text-decoration: none; }
.tag {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro {
  margin: 1.75rem 0 2.5rem;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 3.2vw, 1.1875rem);
  line-height: 1.55;
}

h2 {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.apps { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--rule); }
.apps li { border-bottom: 1px dashed var(--rule); }
.apps a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .125rem 1rem;
  padding: .875rem 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.apps .num { color: var(--muted); }
.apps .name {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .25em;
  transition: color .15s, text-decoration-color .15s;
}
.apps .desc { color: var(--muted); }
.apps .arrow { margin-left: auto; color: var(--accent); transition: transform .15s; }
.apps a:hover .name,
.apps a:focus-visible .name { color: var(--accent); text-decoration-color: currentColor; }
.apps a:hover .arrow { transform: translateX(3px); }

/* On narrow screens, the description drops to its own line */
@media (max-width: 30rem) {
  .apps .desc { order: 3; flex-basis: 100%; padding-left: 2.25ch; }
}

footer {
  width: 100%;
  max-width: 37.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .8125rem;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { color: var(--ink); text-underline-offset: .2em; }
footer a:hover { color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
