/* JipJip official site — design system (SITE-VISUAL-DIRECTION-001).
   Plain CSS. No web fonts, no CDN, no tracking. Light + dark. Mobile-first. */

:root {
  --paper:   #f6f3ec;   /* warm off-white, not pure white */
  --card:    #fbf9f4;
  --ink:     #191a17;   /* warm near-black */
  --muted:   #5c5f57;
  --line:    #e0dacd;   /* hairline */
  --accent:  #0d6a54;   /* deep teal-green — the one accent */
  --accent-ink: #0a5545;
  --sand:    #a86e1c;   /* rare warm accent (Myanmar warmth, sparingly) */
  --maxw:    44rem;
  --serif:   "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Myanmar", sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #131512;
    --card:   #191b17;
    --ink:    #e9e7df;
    --muted:  #a6a89e;
    --line:   #2a2d27;
    --accent: #4bb597;
    --accent-ink: #6cc7ad;
    --sand:   #d69a4a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* a single quiet warm rule at the very top — the only "brand" flourish */
  border-top: 3px solid var(--sand);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---- header ---- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand svg { display: block; }
.brand b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .2px; }
.nav { display: flex; gap: 1.1rem; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.2px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.85rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 0 0 .5rem;
}
.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---- hero ---- */
.hero { padding: 3rem 0 2rem; }
.hero .meta { font-size: .92rem; color: var(--muted); margin-top: 1.2rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 6px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.4rem; }
.textlink { font-weight: 600; }

/* ---- download card ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem 1.25rem 1.4rem; margin: 1.5rem 0;
}
.dl-row { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .8rem; font-size: .95rem; }
.dl-row .k { color: var(--muted); }
.sha {
  font-family: var(--mono); font-size: .82rem; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-all;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: .55rem .7rem; margin: .35rem 0 .1rem;
}
.verify { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }

/* ---- lists / steps ---- */
.why { list-style: none; padding: 0; margin: 1rem 0; }
.why li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: 0; }
.why li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .5rem; height: .5rem;
  background: var(--accent); border-radius: 2px; }
.why b { font-weight: 600; }
.steps { padding-left: 1.3rem; margin: 1rem 0; }
.steps li { margin: .5rem 0; }
.note { border-left: 3px solid var(--sand); padding: .3rem 0 .3rem .9rem; color: var(--muted); margin: 1rem 0; }

/* ---- generic content page ---- */
.doc h2:first-of-type { margin-top: 1.4rem; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin: .35rem 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }

/* ---- status list ---- */
.status-list { list-style: none; padding: 0; margin: 1rem 0; }
.status-list li { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); flex: none; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.8rem 0 3rem; color: var(--muted); font-size: .92rem; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0 0 .8rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.site-foot .fine { font-size: .85rem; }

/* ---- focus visibility (a11y) ---- */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 30rem) {
  .nav { gap: .8rem; font-size: .9rem; }
  .actions .btn { flex: 1 1 auto; }
}
