/* Ledgr tokens */
:root {
  --bg: #fefaf3;
  --surface: #ffebd3;
  --secondary: #cfebff;
  --primary: #ffbe91;
  --text: #25343f;
  --muted: #56626b;
  --sunny: #FFF4CF;
  --sunny-strong: #F6D36B;
  --rainy: #E6F4FF;
  --rainy-strong: #9CCDF0;
  --stormy: #F4ECFF;
  --stormy-strong: #CDBDF0;
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--text); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--primary); }
a:hover { text-decoration-color: var(--text); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: -0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--text); }
.brand .b800 { font-weight: 800; }
.brand .b500 { font-weight: 500; }
.nav { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--primary); }

/* Hero */
.hero { padding: 40px 0 56px; text-align: center; }
.hero .icon { width: 128px; height: 128px; border-radius: 29px; border: 3px solid var(--text); box-shadow: 0 8px 0 var(--text); }
.wordmark { font-size: 48px; line-height: 1.1; letter-spacing: -2px; margin: 28px 0 8px; }
.wordmark .b800 { font-weight: 800; }
.wordmark .b500 { font-weight: 500; }
.tagline { font-size: 16px; font-weight: 600; margin: 0 0 18px; }
.lede { font-size: 16px; max-width: 560px; margin: 0 auto 28px; color: var(--muted); }

.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 10px 18px; border-radius: 14px; border: 2px solid var(--text);
  background: var(--bg); text-decoration: none; min-width: 170px;
}
.badge small { font-size: 11px; font-weight: 600; color: var(--muted); }
.badge strong { font-size: 15px; font-weight: 800; }
.badge.soon { border-style: dashed; }

/* Sections */
section { padding: 32px 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.5px; }
h1 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; }
h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 0 0 8px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: 20px; padding: 22px;
  border: 1px solid var(--primary);
}
.card p { margin: 0; font-size: 14px; }
.card .chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px; margin-bottom: 12px;
  border: 1.5px solid;
}
.chip.sunny { background: var(--sunny); border-color: var(--sunny-strong); }
.chip.rainy { background: var(--rainy); border-color: var(--rainy-strong); }
.chip.stormy { background: var(--stormy); border-color: var(--stormy-strong); }
.chip.peach { background: var(--bg); border-color: var(--primary); }

.callout {
  background: var(--secondary); border-radius: 20px; padding: 24px;
  border: 2px solid var(--text);
}
.callout ul { margin: 8px 0 0; padding-left: 20px; }
.callout li { margin: 4px 0; }

.app-card {
  display: flex; gap: 20px; align-items: center; text-decoration: none;
  background: var(--surface); border-radius: 24px; padding: 24px;
  border: 2px solid var(--text); box-shadow: 0 6px 0 var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--text); }
.app-card img { width: 88px; height: 88px; border-radius: 20px; border: 2px solid var(--text); flex-shrink: 0; }
.app-card h3 { font-size: 22px; margin: 0 0 2px; }
.app-card p { margin: 0; font-size: 14px; color: var(--muted); }
.app-card .go { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--text); }
@media (max-width: 480px) { .app-card { flex-direction: column; align-items: flex-start; } }

/* Policy */
.policy h2 { font-size: 19px; margin-top: 36px; padding-top: 8px; }
.policy h3 { margin-top: 20px; }
.policy p, .policy li { font-size: 14.5px; }
.policy ul { padding-left: 22px; }
.policy li { margin: 6px 0; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.toc { background: var(--surface); border-radius: 16px; padding: 18px 22px; border: 1px solid var(--primary); font-size: 14px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }
.toc li { margin: 3px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--primary); }
th { background: var(--surface); font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* Theminono studio theme (main domain page) */
.theminono {
  --bg: #fbfdff;
  --surface: #eef7fd;
  --primary: #C4E2F5;
}
.studio-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--text);
  background: var(--primary); font-weight: 800; font-size: 18px;
}
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.app-tile {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--surface); border-radius: 20px; padding: 20px;
  border: 2px solid var(--text); box-shadow: 0 5px 0 var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.app-tile:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--text); }
.app-tile img, .app-tile .placeholder { width: 64px; height: 64px; border-radius: 15px; border: 2px solid var(--text); margin-bottom: 8px; }
.app-tile h3 { font-size: 18px; margin: 0; }
.app-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.app-tile .go { font-size: 13px; font-weight: 700; margin-top: auto; padding-top: 8px; }
.app-tile.hatchwell { background: #ffebd3; --primary: #ffbe91; }
.app-tile.soon {
  background: transparent; border-style: dashed; box-shadow: none;
}
.app-tile.soon .placeholder {
  border-style: dashed; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 500; color: var(--muted);
}

/* Footer */
.site-footer { margin-top: 48px; padding: 28px 0 40px; border-top: 2px dashed var(--primary); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
