/* mikhailappdevelopment.ge — one stylesheet, no JavaScript.
   Light and dark follow the system setting. Mobile first. */

:root {
  color-scheme: light dark;

  --bg: #e9eeea;
  --card: #f4f5f0;
  --ink: #1c1f17;
  --ink-2: #5c6052;
  --ink-3: #676c5c;
  --line: rgba(28, 31, 23, 0.12);
  --accent: #556a24;
  --lime: #d6f23e;
  --on-lime: #1c1f17;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 1.25rem;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161914;
    --card: #1f231b;
    --ink: #ecefe4;
    --ink-2: #a7ad99;
    --ink-3: #8e947f;
    --line: rgba(236, 239, 228, 0.12);
    --accent: #d6f23e;
    --lime: #d6f23e;
    --on-lime: #161914;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

p {
  margin: 0 0 1em;
}

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

/* Top bar */

.top {
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.brand svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.brand .tile {
  fill: var(--ink);
}

.brand .glyph {
  stroke: var(--bg);
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.kicker,
.label {
  margin: 0;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero h1 {
  margin: 1rem 0 0;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1 .pre {
  display: block;
  font-size: clamp(1.375rem, 5.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero h1 .name {
  display: block;
  margin-top: 0.3rem;
  font-size: clamp(2.25rem, 10.5vw, 4rem);
}

.hero .lead {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Sections */

.block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.block .label {
  margin-bottom: 1rem;
}

.block:last-child {
  padding-bottom: 3.5rem;
}

/* App card */

.app {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.app h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-block;
  margin: 0.75rem 0 1rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font: 600 0.75rem/1.2 var(--mono);
  letter-spacing: 0.02em;
}

.app .links {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.dot {
  margin: 0 0.4em;
  color: var(--ink-3);
}

/* Contact facts */

.facts {
  margin: 0;
}

.facts > div {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:first-child {
  padding-top: 0;
}

.facts dt {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-3);
}

.facts dd {
  margin: 0.25rem 0 0;
}

.facts address {
  font-style: normal;
}

.num {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Footer */

.foot {
  flex: none;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.375rem 1.5rem;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--ink-2);
}

.nb {
  white-space: nowrap;
}

/* Privacy policy and other long-form pages */

.doc {
  padding: 2.5rem 0 3.5rem;
  max-width: 40rem;
}

.doc h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.doc .meta {
  margin: 0.75rem 0 2rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.doc h2 {
  margin: 2.25rem 0 0.625rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.doc ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.doc li {
  margin: 0.375rem 0;
}

.doc li::marker {
  color: var(--ink-3);
}

.summary {
  margin: 0 0 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.summary h2 {
  margin-top: 0;
}

.summary ul {
  margin-bottom: 0;
}

.doc address {
  font-style: normal;
}

/* Wider screens: label column beside the content */

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }

  .top {
    padding: 2rem 0;
  }

  .hero {
    padding: 5rem 0 4.5rem;
  }

  .block {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .block .label {
    margin: 0.3rem 0 0;
  }

  .app {
    padding: 1.75rem;
  }

  .doc {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
