/* NuYu site: one small stylesheet, no frameworks. Colors follow the app's warm paper and indigo. */
:root {
  --paper: #f5f4f0;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-soft: #6b6a70;
  --hairline: #e7e5df;
  --accent: #5b5bd6;
  --accent-soft: #ece8fd;
  --mint-soft: #ddf4ea;
  --peach-soft: #fdebe2;
  --sky-soft: #e1f0fc;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --surface: #24211c;
    --ink: #f2f2f7;
    --ink-soft: #a6a4aa;
    --hairline: #3a352e;
    --accent: #9291ff;
    --accent-soft: #2a2740;
    --mint-soft: #1b3029;
    --peach-soft: #3a2a22;
    --sky-soft: #1d2c3a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 19px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #7b7bea, #4b48c9);
  display: inline-block; position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95); border-top-color: rgba(255,255,255,.3);
}
nav a { margin-left: 18px; color: var(--ink-soft); font-size: 15px; }
h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 12px; }
h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p.lede { font-size: 20px; color: var(--ink-soft); margin: 0 0 24px; }
.hero { text-align: center; padding-top: 12px; }
.hero img {
  width: min(100%, 360px); height: auto; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(28,28,30,.16); margin: 20px auto 0; display: block;
}
.badge {
  display: inline-block; margin: 20px 0 0; padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px;
}
.badge:hover { text-decoration: none; opacity: .9; }
.note { color: var(--ink-soft); font-size: 14px; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--hairline);
}
.card h3 { margin: 10px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.tile.lavender { background: var(--accent-soft); }
.tile.mint { background: var(--mint-soft); }
.tile.peach { background: var(--peach-soft); }
.tile.sky { background: var(--sky-soft); }
section.doc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 8px 24px 20px; margin-top: 20px; }
section.doc h2:first-child { margin-top: 16px; }
details { border-top: 1px solid var(--hairline); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; font-weight: 600; }
summary::-webkit-details-marker { color: var(--accent); }
details p { margin: 8px 0 0; color: var(--ink-soft); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; }
footer { margin-top: 48px; color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--hairline); padding-top: 20px; }
footer a { margin-right: 16px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
