/* MicroGuru Apps — shared styles */
:root {
  --mist: #EEF2EF;      /* page */
  --ink: #18272C;       /* text */
  --slate: #2F5D6B;     /* monsoon teal, links */
  --rain: #9EC3CF;      /* rain strokes, rules */
  --leaf: #3E7A4C;      /* status */
  --muted: #4E5F64;
  --line: #CBD8D6;
  --measure: 66ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Anek Latin", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--slate); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 28px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 112;
}
.wordmark svg { flex: none; }
.site-header nav a { color: var(--ink); text-decoration: none; margin-left: 20px; }
.site-header nav a:hover { color: var(--slate); text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; border-bottom: 1px solid var(--line); }
.rain {
  position: absolute; inset: -40px 0 0 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0 46px,
    rgba(158, 195, 207, 0.55) 46px 47.5px,
    transparent 47.5px 92px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
  animation: drift 14s linear infinite;
}
@keyframes drift { from { transform: translateY(-40px); } to { transform: translateY(0); } }

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 120;
}
.hero p {
  position: relative;
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: 1.25rem;
  color: var(--muted);
}
.hero .contact-line { margin-top: 20px; font-size: 1.125rem; color: var(--ink); }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
h2 {
  margin: 0 0 24px;
  font-size: 1.75rem; line-height: 1.2; font-weight: 700;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
}

/* App list: rows, not cards */
.apps { list-style: none; margin: 0; padding: 0; }
.apps li {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.apps li:last-child { border-bottom: 1px solid var(--line); }
.apps h3 { margin: 0; font-size: 1.375rem; font-weight: 700; font-variation-settings: "wdth" 108; }
.apps p { margin: 0; color: var(--muted); max-width: 52ch; }
.status { color: var(--leaf); font-weight: 600; white-space: nowrap; font-size: 1rem; }

/* About facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 40px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Long-form (privacy) */
.doc { padding: 48px 0 72px; }
.doc .wrap > * { max-width: var(--measure); }
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 750;
  letter-spacing: -0.02em; font-variation-settings: "wdth" 118;
}
.doc .effective { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 1.375rem; margin: 44px 0 12px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--muted); }

@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .site-header { padding: 20px 0; }
  .wordmark { font-size: 1.0625rem; gap: 8px; white-space: nowrap; }
  .wordmark svg { width: 24px; height: 24px; }
  .site-header nav { white-space: nowrap; }
  .site-header nav a { margin-left: 14px; font-size: 1rem; }
  .hero { padding: 32px 0 64px; }
  .rain { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 90%); mask-image: linear-gradient(90deg, transparent 0%, #000 90%); opacity: 0.35; }
  .apps li { grid-template-columns: 1fr; gap: 4px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rain { animation: none; transform: none; }
}
