/* RARankin, LLC — site styles. No external fonts, no JS. */

:root {
  color-scheme: light dark;

  --bg:        #fbfbfa;
  --surface:   #ffffff;
  --border:    #e2e1dd;
  --text:      #1b1b19;
  --text-soft: #56544e;
  --text-mute: #7a776f;
  --accent:    #1f5c46;
  --accent-sf: #2d7a5e;

  --measure: 34rem;
  --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #131311;
    --surface:   #1b1b19;
    --border:    #32312d;
    --text:      #eceae4;
    --text-soft: #b6b3aa;
    --text-mute: #8d8a82;
    --accent:    #7fc6a8;
    --accent-sf: #9ad9bd;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.wordmark a {
  color: var(--text);
  text-decoration: none;
}

.wordmark a:hover { color: var(--accent); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---- main ---- */

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  font-weight: 620;
  margin: 1.75rem 0 0.4rem;
}

p, ul, ol, dl { max-width: var(--measure); }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

a { color: var(--accent); }
a:hover { color: var(--accent-sf); }

ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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

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

.apps li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem 1.25rem;
}

.apps h2 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.apps p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.apps .app-link {
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 550;
}

.apps .app-link:hover { text-decoration: underline; }

/* ---- definition-style contact block ---- */

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}

.contact p { margin: 0; font-size: 0.9375rem; }

.updated {
  font-size: 0.875rem;
  color: var(--text-mute);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.site-footer p { margin: 0 0 0.3rem; max-width: none; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--accent); }

/* ---- 404 ---- */

.centered {
  text-align: center;
  padding: 5rem 0;
}

.centered p { margin-left: auto; margin-right: auto; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.625rem; }
  main { padding: 2.25rem 0 3rem; }
  .site-nav { gap: 1rem; font-size: 0.875rem; width: 100%; margin-left: 0; }
}
