/* mikrodev.net: the studio page. Neutral on purpose; each app brings
   its own color (Sprout's green panel). Cards 16px, buttons round. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f2f2ee;
  --ink: #161a17;
  --ink-2: #515853;
  --line: rgb(22 26 23 / 0.12);
  --focus: #2f5233;
  --sprout: #2f5233;
  --on-sprout: #f3f0e8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --ink: #eceeeb;
    --ink-2: #a6ada8;
    --line: rgb(236 238 235 / 0.12);
    --focus: #9ccc65;
    --sprout: #203a24;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
main { flex: 1; }

.hero { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(4.2rem, 15.5vw, 12rem); font-weight: 800;
  line-height: 0.9; letter-spacing: -0.065em; margin: 0 0 24px 0;
  margin-left: -0.04em;
}
.hero p { font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--ink-2); max-width: 30ch; margin: 0; line-height: 1.35; }

/* An app: its own colored panel, with the app rising out of it. */
.app {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: end;
  background: var(--sprout); color: var(--on-sprout); border-radius: 16px;
  padding: 56px 56px 0; overflow: hidden; margin-bottom: 96px;
}
.app-copy { align-self: center; padding-bottom: 56px; }
.app-copy img { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 24px; outline: 1px solid rgb(243 240 232 / 0.3); }
.app h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.045em; margin: 0 0 14px; font-weight: 750; }
.app p { margin: 0 0 8px; color: rgb(243 240 232 / 0.85); font-size: 1.15rem; max-width: 34ch; }
.app .soon { font-size: 1rem; color: rgb(243 240 232 / 0.7); margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 13px 24px; border-radius: 999px;
  background: #f3f0e8; color: #17231a; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.app :focus-visible { outline-color: #f3f0e8; }
.app-art { display: flex; justify-content: center; }
.phone {
  width: min(100%, 320px); aspect-ratio: 393 / 700; overflow: hidden;
  border-radius: 13% 13% 0 0 / 7.3% 7.3% 0 0;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
}
.phone img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; padding: 36px 28px 0; }
  .app-copy { padding-bottom: 0; }
  .phone { width: min(78%, 300px); }
}

footer { color: var(--ink-2); font-size: 0.95rem; }
footer .wrap { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { footer .wrap { border-top: 0; } }

.lost { padding-top: 96px; padding-bottom: 96px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.05em; line-height: 1.04; margin: 0 0 12px; }
.lost p { color: var(--ink-2); font-size: 1.15rem; max-width: 46ch; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero p { animation-delay: .08s; }
  .app { animation: rise .9s .16s cubic-bezier(.16, 1, .3, 1) both; }
  .phone { animation: rise 1s .3s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
