/* Pickle Software LLC — picklesoftware.dev */

:root {
  --bg: #ffffff;
  --surface: #f6f8f6;
  --text: #191d19;
  --muted: #5b625b;
  --accent: #2f6b45;
  --accent-soft: #eaf2ed;
  --border: #e3e8e3;
  --max: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --surface: #1a1f1b;
    --text: #e8ece8;
    --muted: #9aa39b;
    --accent: #7fc79a;
    --accent-soft: #1d2a22;
    --border: #2a312c;
  }
}

*,
*::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.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.site-header .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .llc {
  color: var(--muted);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 550;
}

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

main {
  flex: 1;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

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

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.4rem;
}

p {
  margin: 0 0 1.1rem;
}

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

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

ul.spaced li,
ol.spaced li {
  margin-bottom: 0.5rem;
}

/* ---------- home ---------- */

.hero {
  padding-bottom: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}

.pillars h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.pillars p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
}

.cta:hover {
  filter: brightness(1.08);
}

/* ---------- legal docs ---------- */

.doc-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.4rem 0 2rem;
}

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  padding: 1rem 1.2rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

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

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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