/* KIOKU public site — shared stylesheet
 * (2026-06-01) App Store submission-safe: no JS, no external fonts,
 * no analytics, no third-party CDN. Mobile-first, readable on small
 * screens. Muted neutral palette to match KIOKU's calm aesthetic.
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Helvetica Neue", Helvetica, "Yu Gothic UI", "Meiryo",
               sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
  background: #fafaf7;
  padding: 24px 20px 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Site header (small, always present) ── */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e6e3da;
}

.site-header .logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #1a1a1a;
  text-decoration: none;
}

.site-header nav a {
  font-size: 0.9rem;
  color: #6e6e73;
  text-decoration: none;
  margin-left: 16px;
}

.site-header nav a:hover {
  color: #1a1a1a;
}

/* ── Headings ── */

h1 {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  line-height: 1.4;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
  line-height: 1.4;
}

h3 {
  font-size: 1.0rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #2a2a2a;
}

/* ── Text body ── */

p,
ul,
ol,
table {
  margin-bottom: 16px;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

a {
  color: #1959c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #103f8f;
}

strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f0ede4;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ── Metadata blocks (dates, contact) ── */

.meta {
  font-size: 0.9rem;
  color: #6e6e73;
  margin-bottom: 24px;
}

.meta dt {
  font-weight: 600;
  display: inline;
  color: #2a2a2a;
}

.meta dt::after {
  content: ": ";
}

.meta dd {
  display: inline;
  margin-right: 18px;
}

/* ── Tables (3rd-party partners, data retention) ── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid #e6e3da;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid #e6e3da;
}

th {
  background: #f3f0e8;
  font-weight: 600;
  color: #2a2a2a;
}

tr:last-child td {
  border-bottom: 0;
}

/* ── Callout box (operational logs §, etc.) ── */

.note {
  border-left: 3px solid #b39d6a;
  background: #fbf6e7;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
  color: #4a4030;
}

.note strong {
  color: #2a2a2a;
}

/* ── Footer ── */

.site-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid #e6e3da;
  font-size: 0.85rem;
  color: #8a857a;
  text-align: center;
}

.site-footer a {
  color: #6e6e73;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ── Small-screen tweaks ── */

@media (max-width: 480px) {
  body {
    padding: 18px 14px 60px;
    font-size: 15px;
  }
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .site-header nav a {
    margin-left: 10px;
    font-size: 0.85rem;
  }
  th,
  td {
    padding: 6px 8px;
    font-size: 0.88rem;
  }
}
