/* pons-mcp site. One column, read top to bottom. */

:root {
  --paper: #f5f7f6;
  --ink: #1c2422;
  --muted: #5f6b66;
  --rule: #d9e0dc;
  --accent: #2f6f52;
  --accent-ink: #245a42;
  --code-bg: #e9eeec;
  --note-bg: #eef3f0;
  --text: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141a18;
    --ink: #e4e9e6;
    --muted: #98a49e;
    --rule: #2a3430;
    --accent: #86c8a6;
    --accent-ink: #a3d8bc;
    --code-bg: #1d2523;
    --note-bg: #1a2320;
  }
}
:root[data-theme="dark"] {
  --paper: #141a18;
  --ink: #e4e9e6;
  --muted: #98a49e;
  --rule: #2a3430;
  --accent: #86c8a6;
  --accent-ink: #a3d8bc;
  --code-bg: #1d2523;
  --note-bg: #1a2320;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 0 4rem;
}
@media (min-width: 900px) { body { font-size: 18px; } }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* header */
.top {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.4rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark { width: 22px; height: 22px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-color: var(--accent); }

/* main column */
main { max-width: var(--measure); margin: 0 auto; }
main > section { padding-block: 2.2rem 0.4rem; }
main > section + section { margin-top: 1.2rem; border-top: 1px solid var(--rule); }
.intro { padding-top: 2.8rem; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.15rem); margin-bottom: 1rem; }
h2 { font-size: 1.3rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.08em; }
strong { font-weight: 700; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}
a code { color: inherit; }

/* use cases on the index */
.ask { padding-block: 1.1rem 0.9rem; border-top: 1px solid var(--rule); }
.ask:first-of-type { border-top: 0; padding-top: 0.4rem; }
.ask h3 { font-style: italic; font-weight: 400; font-size: 1.12rem; margin-bottom: 0.55rem; }
.ask p:last-child { margin: 0; }
.tools { color: var(--muted); font-size: 0.9rem; }
.tools code { background: transparent; padding: 0; color: var(--muted); font-size: 0.92em; }

/* real sequences */
ol.steps, ol.phases { padding-left: 1.4rem; margin: 0 0 1rem; }
ol.steps li, ol.phases li { margin-bottom: 0.85rem; padding-left: 0.2rem; }
ol.steps li::marker, ol.phases li::marker { font-family: var(--mono); color: var(--muted); font-size: 0.85em; }

/* definition lists: tools, facts, env */
dl { margin: 0 0 1rem; }
.tools-list dt { font-family: var(--mono); font-size: 0.92rem; margin-top: 1rem; }
.tools-list dt code { background: transparent; padding: 0; font-size: 1em; }
.tools-list dd { margin: 0.25rem 0 0; }
.w {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  margin-left: 0.4rem;
  vertical-align: 0.1em;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.55rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; row-gap: 0.15rem; }
  .facts dd { margin-bottom: 0.7rem; }
}

/* tables */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table.diff { border-collapse: collapse; width: 100%; font-size: 0.95em; }
table.diff th, table.diff td { text-align: left; vertical-align: top; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
table.diff th { font-weight: 700; color: var(--muted); font-size: 0.85em; letter-spacing: 0.03em; text-transform: uppercase; }
table.diff td:first-child { color: var(--muted); width: 42%; }

/* code blocks */
.code { border: 1px solid var(--rule); border-radius: 4px; margin: 0 0 1rem; overflow: hidden; }
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
}
.copy {
  font: inherit; color: var(--muted); background: none; border: 1px solid var(--rule);
  border-radius: 3px; padding: 0.1rem 0.5rem; cursor: pointer;
}
.copy:hover { color: var(--ink); }
.copy.done { color: var(--accent); border-color: var(--accent); }
pre {
  margin: 0; padding: 0.85rem 0.95rem;
  background: var(--code-bg);
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.55;
  overflow-x: auto; white-space: pre;
}

/* the one lifted element */
.note {
  border-left: 3px solid var(--accent);
  background: var(--note-bg);
  padding: 0.7rem 0.95rem;
  margin-top: 1.2rem;
}

/* footer */
.foot {
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--mono); font-size: 0.78rem; }
.foot .meta a { color: var(--muted); }
.foot .meta code { background: transparent; padding: 0; font-size: 1em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* social buttons (header) */
.socials { display: flex; gap: 0.5rem; margin-left: auto; }
@media (max-width: 560px) { .socials { margin-left: 0; } }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--rule); border-radius: 4px;
  color: var(--muted);
}
.social svg { width: 1rem; height: 1rem; }
a.social:hover { color: var(--ink); border-color: var(--muted); }
.social.off { opacity: 0.45; cursor: default; }

/* token contract address */
.ca {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 0.8rem;
}
.ca code { font-size: 0.95rem; padding: 0.35rem 0.6rem; overflow-wrap: anywhere; }
