/* Yos Development Labs — studio site
   No external requests: system font stack, inline SVG, no web-font CDN.
   See README.md for why. */

:root {
  --bg:        #faf8f3;
  --bg-sunk:   #f3f0e8;
  --ink:       #22201b;
  --ink-soft:  #55504a;
  --ink-faint: #857f76;
  --rule:      #e2ddd1;

  /* Palette sampled from the real app icon (urban-explorer/logo/*-512.png).
     --accent-ink is the only one used for TEXT: 7.41:1 on this cream (AA pass).
     --accent (3.71:1) is UI-only — focus rings, borders — where 3.0 is the bar.
     --pin (3.86:1) is DECORATION ONLY. Never put text in it. */
  --accent:    #4a8f50;
  --accent-ink:#2a5c2e;
  --pin:       #c4622d;

  /* District mosaic ramp — the icon's four greens, plus one lighter step. */
  --m1: #dce9dd;
  --m2: #b5d4b8;
  --m3: #7ab57f;
  --m4: #4a8f50;
  --m5: #2a5c2e;

  --serif: Iowan Old Style, Palatino Linotype, Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #16150f;
    --bg-sunk:   #1e1c15;
    --ink:       #eae6dc;
    --ink-soft:  #b3ada1;
    --ink-faint: #7d776c;
    --rule:      #322f26;
    /* Dark-mode text accent: 11.39:1 on this background (AA pass). */
    --accent:    #7ab57f;
    --accent-ink:#b5d4b8;
    --pin:       #c4622d;

    /* Same ramp, anchored on the icon's greens but darkened to sit on near-black. */
    --m1: #20291f;
    --m2: #2a5c2e;
    --m3: #3d7442;
    --m4: #4a8f50;
    --m5: #63a468;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding-inline: var(--pad);
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 10;
  background: var(--bg);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule);
}

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

.site-head {
  padding-block: 1.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
}
.wordmark:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 5.5rem);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.mosaic {
  width: 100%;
  height: auto;
  max-width: 20rem;
  justify-self: end;
  border-radius: 3px;
}
.mosaic polygon {
  stroke: var(--bg);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.m1 { fill: var(--m1); } .m2 { fill: var(--m2); } .m3 { fill: var(--m3); }
.m4 { fill: var(--m4); } .m5 { fill: var(--m5); }

/* ---------- badge ---------- */

.badge {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-sunk);
  color: var(--ink-soft);
}
a.badge {
  color: var(--accent-ink);
  text-decoration: none;
  border-color: var(--accent);
}
a.badge:hover { background: var(--bg); }

/* ---------- sections ---------- */

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}

section p { max-width: var(--measure); }
section p + p { margin-top: 1rem; }

/* ---------- app section ---------- */

.app-head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1.25rem;
}
.app-head h2 { margin: 0; }

.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  /* The icon art is full-bleed to its edges, so it expects to be masked —
     this is the web stand-in for Android's adaptive-icon mask. */
  border-radius: 22%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.10), 0 4px 12px rgb(0 0 0 / 0.06);
}
@media (prefers-color-scheme: dark) {
  .app-icon { box-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3); }
}

@media (max-width: 32rem) {
  .app-head { gap: 0.875rem; }
  .app-icon { width: 3.5rem; height: 3.5rem; }
}

/* ---------- principles ---------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.principles li { max-width: 24rem; }
.principles b {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.principles span { color: var(--ink-soft); }

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-bottom: 2rem;
}
.foot-grid h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li + li { margin-top: 0.25rem; }
.copyright { color: var(--ink-faint); font-size: 0.875rem; margin: 0; }

/* ---------- prose (privacy page) ---------- */

.prose { max-width: var(--measure); padding-block: 1rem 4rem; }
.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.prose h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); }

.stamp {
  color: var(--ink-faint);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.9375rem;
}

/* ---------- responsive ---------- */

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mosaic { justify-self: start; max-width: 13rem; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .mosaic, .skip { display: none; }
  body { background: #fff; color: #000; }
}
