/* Shared document styling for the privacy policy and the blog.
   The landing page keeps its own inline CSS — different layout, and inlining saves a request
   on the page that matters most. */

:root {
  color-scheme: dark;
  --background: #111511;
  --surface: #1a201b;
  --surface-lift: #212a22;
  --text: #eaeee9;
  --muted: #9fa9a2;
  --line: #2b332d;
  --accent: #c9f27b;
  --accent-soft: rgb(201 242 123 / 10%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 90px -46px rgb(0 0 0 / 75%);
}

main > header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mark {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.4s var(--ease);
}

.brand:hover .mark {
  transform: rotate(-8deg) scale(1.08);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 2.9rem);
}

h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin: 0 0 18px;
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 8px;
}

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

.updated {
  color: var(--muted);
  font-size: 0.93rem;
}

.summary {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgb(201 242 123 / 24%);
  border-radius: 16px;
  background: var(--accent-soft);
}

.summary :last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92em;
}

blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

/* ---------- post list (blog index) ---------- */

.posts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.posts li {
  margin: 0;
}

.posts a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s,
    background 0.28s;
}

.posts a:hover {
  transform: translateY(-3px);
  border-color: rgb(201 242 123 / 32%);
  background: var(--surface-lift);
}

.posts h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

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

/* ---------- end-of-post call to action ---------- */

.cta {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgb(201 242 123 / 26%);
  border-radius: 20px;
  background:
    radial-gradient(75% 95% at 50% 0%, rgb(61 106 16 / 55%), transparent 66%),
    var(--background);
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #a8e35c);
  color: #21300a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 26px rgb(151 205 82 / 32%);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgb(151 205 82 / 42%);
}

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

.doc-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.doc-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

@media (max-width: 560px) {
  main {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
