/* Notaki website. The colours are the app's own Tatami tokens
   (Shared/TatamiTokens.swift): cream stock by day, graphite by night,
   sumi ink, one shu accent. No web fonts and no outside requests. */

:root {
  --paper: #f4eddc;
  --board: #f2dcbb;
  --card: #fbf7ee;
  --rule: #e2d6bf;
  --heading: #211c16;
  --body: #2e2721;
  --reading: #4a4239;
  --muted: #6b6156;
  --shu: #b03a29;
  --shu-face: #f7ece0;
  --kept: #3f8a4c;
  --shadow: 0 1px 0 rgba(59, 46, 30, 0.06), 0 8px 24px rgba(59, 46, 30, 0.08);
  --mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho",
    "Noto Serif JP", "Noto Serif", Georgia, "Times New Roman", serif;
  --kaku: "Hiragino Kaku Gothic ProN", "Hiragino Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans JP", "Noto Sans", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2c2d2e;
    --board: #25272a;
    --card: #343940;
    --rule: #41474c;
    --heading: #d8e7f3;
    --body: #c2d4e2;
    --reading: #a1b4c2;
    --muted: #8b9dab;
    --shu: #d4614c;
    --shu-face: #1e2226;
    --kept: #62b56f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--kaku);
  font-size: 17px;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--mincho);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.prose { max-width: 680px; }

/* Header */

.site-head {
  border-bottom: 1px solid var(--rule);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
  font-family: var(--mincho);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }

.site-nav a {
  color: var(--reading);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; }

/* Hero */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--reading);
  max-width: 560px;
  margin: 0 auto 28px;
}

.button {
  display: inline-block;
  background: var(--shu);
  color: var(--shu-face);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.button:hover { filter: brightness(1.06); text-decoration: none; }
.button[aria-disabled="true"] { cursor: default; filter: none; }

.fine { color: var(--muted); font-size: 0.9rem; }

.hero .fine { margin-top: 14px; }

/* Feature cards */

.band {
  background: var(--board);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0 48px;
}

.band h2 { margin-top: 0; text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px 20px 8px;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }
.card p { color: var(--reading); font-size: 0.97rem; }

.seal {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--shu);
  color: var(--shu-face);
  font-family: var(--mincho);
  font-weight: 600;
  margin-bottom: 10px;
  transform: rotate(-3deg);
}

/* Sections */

.section { padding: 32px 0 16px; }

.pledge {
  background: var(--card);
  border-left: 4px solid var(--shu);
  border-radius: 8px;
  padding: 16px 20px 4px;
  margin: 1.5rem 0;
}

.faq details {
  background: var(--card);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--heading);
}

.faq details[open] summary { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
}

th { color: var(--heading); font-weight: 600; }

.table-scroll { overflow-x: auto; }

.page-head { padding: 40px 0 8px; }
.page-head .fine { margin: 0; }

/* Footer */

.site-foot {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot a { color: var(--muted); }

.todo {
  background: #fff3a8;
  color: #3a3000;
  padding: 0 4px;
  border-radius: 3px;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; gap: 6px; }
  .hero { padding-top: 36px; }
  .hero .icon { width: 104px; height: 104px; border-radius: 24px; }
}
