/* poko.world: the studio page. Same visual system as wiit.world (Figtree, Snow / Black bases,
   Cobalt accent, cards), no third-party requests. */

@font-face {
  font-family: 'Figtree';
  src: url('figtree.woff2') format('woff2-variations'), url('figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAFA; --card: #FFFFFF; --card2: #F0F0F0;
  --ink: #111112; --ink-2: #606063; --ink-3: #707074;
  --line: rgba(0, 0, 0, .08);
  --accent: #35558C; --accent-2: #2A4372; --accent-soft: #DEE5F1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #121316; --card2: #1C1E22;
    --ink: #F5F4F1; --ink-2: #9B9DA1; --ink-3: #85878C;
    --line: rgba(255, 255, 255, .11);
    --accent: #8AAAE8; --accent-2: #6F8DC8; --accent-soft: rgba(138, 170, 232, .15);
    --shadow: none;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink); min-height: 100dvh;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: 0 0 14px 0;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* Languages: both are in the page; html[data-lang] shows one (assets/lang.js). English without JS. */
[data-lang="en"] [lang="es"],
[data-lang="es"] [lang="en"] { display: none !important; }

/* header: the wordmark stands in for the logo until there is one; the language switch on the right */
.head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(18px, 2.8vh, 30px) clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.wordmark { grid-column: 2; font-size: 26px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.lang { grid-column: 3; justify-self: end; display: flex; gap: 2px; }
.lang button {
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-3);
  background: none; border: 0; padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }

main { flex: 1; width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); width: 100%; }
section { padding: clamp(40px, 7vh, 84px) 0; }
section + section { border-top: 1px solid var(--line); }

h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.038em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.032em; line-height: 1.1; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.flabel { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; display: block; }
.lede { margin-top: 16px; font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.small { font-size: 13.5px; color: var(--ink-3); }
.hero { padding-top: clamp(36px, 6vh, 72px); }
.hero h1 { margin-top: 10px; max-width: 18ch; }

/* apps */
.grid { display: grid; gap: 12px; margin-top: clamp(22px, 3.4vh, 32px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border-radius: 18px; padding: clamp(18px, 2.4vw, 24px);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.app-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; background: var(--card2); }
.app-icon.empty { display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--ink-3); }
.card .tagline { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); margin-top: 1px; flex: none; }
.status {
  display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px;
}
.status.muted { color: var(--ink-3); background: var(--card2); }
.card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.card .go { margin-top: 16px; font-weight: 700; font-size: 15px; text-decoration: none; }
.card .go:hover { text-decoration: underline; }

/* contact */
.shout { background: var(--accent-soft); border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.shout .flabel { color: var(--accent); opacity: .8; }
.shout h2 { color: var(--accent); margin-top: 6px; }
.shout p { color: var(--accent); max-width: 58ch; margin-top: 12px; }
.mail { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .shout p { color: var(--ink-2); } }

.foot { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

@media (max-width: 520px) {
  .head { grid-template-columns: auto 1fr; }
  .wordmark { grid-column: 1; }
  .lang { grid-column: 2; }
}
