/* Bulgu web — tokens mirrored from src/design/tokens.ts ("Deney defteri"). */
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-SmBld.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/IBMPlexMono.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F5F6F3;
  --surface: #FBFCFA;
  --ink: #16181D;
  --ink-soft: #3A3E46;
  --ink-muted: #5D626B;
  --rule: #DADDD6;
  --grid: #D5D9D2;
  --signal: #2F46D0;
  --caution: #F6EBCB;
  --caution-ink: #4F3A06;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1114;
    --surface: #171A1F;
    --ink: #E8EAEE;
    --ink-soft: #C9CDD4;
    --ink-muted: #9AA0AA;
    --rule: #2A2E35;
    --grid: #1F2328;
    --signal: #8C9BFF;
    --caution: #2E2615;
    --caution-ink: #E9CF94;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Plex Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

header.site { border-bottom: 1px solid var(--rule); }
.bar {
  max-width: var(--max); margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.bar a.home { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.bar a.home svg { width: 34px; height: 34px; display: block; margin-left: -6px; }
.bar a.home .dot { fill: var(--signal); }
.bar .name { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
nav.lang { display: flex; gap: 14px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 14px; letter-spacing: 0.08em; }
nav.lang a { color: var(--ink-muted); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
nav.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

main { max-width: var(--max); margin: 0 auto; padding: 44px 22px 80px; }
h1 { font-weight: 600; font-size: clamp(32px, 6vw, 44px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(21px, 3.6vw, 25px); line-height: 1.3; margin: 44px 0 12px; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 18px; margin: 28px 0 6px; }
p, li { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--signal); text-underline-offset: 3px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 44px 0; }
code { font-family: "Plex Mono", ui-monospace, monospace; font-size: 0.9em; }

/* Mono section label with a full ink rule, as in the app's `Section`. */
.label {
  font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.1em;
  color: var(--signal); margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 8px; }
.updated { font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-muted); margin: 0 0 32px; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; margin: 24px 0; }
.card h2 { margin-top: 0; }
.note { background: var(--caution); color: var(--caution-ink); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.note p, .note strong { color: var(--caution-ink); margin: 0; }

/* Notebook rows: hairline-separated, full width. */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { padding-top: 0; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows strong { display: block; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
.scroll { overflow-x: auto; margin: 18px 0; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: "Plex Mono", ui-monospace, monospace; font-weight: 400; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.hero { display: flex; gap: 20px; align-items: center; margin-bottom: 6px; }
.hero img { width: 84px; height: 84px; border-radius: 19px; border: 1px solid var(--rule); flex: 0 0 auto; }
.hero h1 { margin: 0; }
/* Store badges. Apple ships its badge with no padding; Google bakes clear space
   of an eighth of the badge height into every side of the PNG, so the Play badge
   is drawn a quarter taller and pulled back by that margin to match visually. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 8px; }
.stores a { display: inline-flex; border-radius: 8px; }
.stores a:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.stores img { display: block; width: auto; }
.stores .apple img { height: 52px; }
.stores .play img { height: 65px; margin: -6px -7px; }
.soon { font-family: "Plex Mono", ui-monospace, monospace; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-muted); margin: 22px 0 8px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 8px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--rule); }
@media (max-width: 560px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots img { scroll-snap-align: start; }
}

.contact { font-size: 18px; font-weight: 600; }
footer.site { border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-muted); }
footer.site .bar { padding: 24px 22px; }
footer.site a { color: var(--ink-soft); margin-right: 16px; }
