/* Innsigle microsite — craft stamp, not startup chrome (DESIGN.md) */

:root {
  color-scheme: light dark;
  --ink: #141210;
  --ink-mute: #5c564e;
  --paper: #f4f0e8;
  --paper-raised: #faf7f1;
  --line: #d4cdc0;
  --accent: #3d4a3a;
  --focus: #2a5a8a;
  --seal: var(--ink);
  --max: 42rem;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ebe6dc;
    --ink-mute: #a39c90;
    --paper: #161411;
    --paper-raised: #1e1b17;
    --line: #3a352e;
    --accent: #9aaf96;
    --focus: #7eb0e0;
    --seal: var(--ink);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 1.05rem/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand img,
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  /* Solid SVG disk; avoid wash-out when used as img */
  background: transparent;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.nav a {
  color: var(--ink-mute);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

/* Main */
main {
  padding: 2.25rem 0 3.5rem;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
  padding-top: 0.25rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  font-family: var(--sans);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.pronounce {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
}

.pronounce strong {
  color: var(--ink);
  font-weight: 650;
}

/* Hero seal */
.hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}

.hero-seal {
  width: 7rem;
  height: 7rem;
  color: var(--seal);
  flex-shrink: 0;
}

.hero-seal img {
  width: 100%;
  height: 100%;
}

/* Cards / panels */
.panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.panel h2:first-child,
.panel h3:first-child {
  margin-top: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.75rem 0 1.25rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
  background: var(--paper-raised);
}

/* Mark catalog (families + composition cues) */
.mark-family {
  margin: 1.75rem 0 2rem;
}

.mark-family > h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mark-family > .note {
  margin: 0 0 0.85rem;
}

/* Code */
pre,
code {
  font-family: var(--mono);
  font-size: 0.84rem;
}

pre {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  line-height: 1.4;
}

code {
  background: color-mix(in srgb, var(--line) 45%, transparent);
  padding: 0.08em 0.3em;
  border-radius: 2px;
}

pre code {
  background: none;
  padding: 0;
}

/* Lists */
ul.tight {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

ul.tight li {
  margin: 0.35rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.innsigle-footer-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.innsigle-footer-seal:hover {
  text-decoration: none;
}

.innsigle-footer-seal img {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.innsigle-footer-seal strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.innsigle-footer-seal .cue {
  font-size: 0.8rem;
}

/* Marks pack previews — reset figure defaults (browser 40px side margins break cards) */
.mark-pack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
}

@media (max-width: 720px) {
  .mark-pack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mark-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0; /* figure reset — critical */
  min-width: 0;
  padding: 0.85rem 0.5rem 0.75rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  text-align: center;
  box-sizing: border-box;
}

.mark-card img {
  width: 4.75rem;
  height: 4.75rem;
  max-width: 100%;
  display: block;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.14);
  flex-shrink: 0;
}

.mark-card .label {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.35;
  width: 100%;
  word-break: break-word;
}

.mark-card .label strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.mark-card code {
  font-size: 0.68rem;
  word-break: break-all;
}

/* Story walkthrough: conversation → document → colo */
.story-convo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.story-bubble {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-family: var(--sans);
  font-size: 0.95rem;
  max-width: 36rem;
}

.story-bubble p {
  margin: 0.35rem 0 0;
}

.story-bubble.human {
  border-left: 3px solid var(--accent);
}

.story-bubble.agent {
  border-left: 3px solid var(--ink-mute);
  margin-left: 1.5rem;
}

.story-who {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.story-doc {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.story-doc-title {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0 0 0.75rem;
}

.story-doc p {
  margin: 0.5rem 0;
}

.story-doc-h {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 650;
  margin: 1rem 0 0.35rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}

.story-doc ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.story-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  border-radius: 0.25rem;
  color: var(--ink-mute);
}

.story-arrow {
  color: var(--accent);
  font-weight: 700;
}

.story-colo {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 0.25rem;
}

.story-colo-head {
  font-family: var(--sans);
  font-weight: 650;
  margin: 0 0 0.75rem;
}

.story-colo table {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.story-footer-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.story-footer-demo img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: block;
}

.story-footer-demo strong {
  display: block;
  color: var(--ink);
}

.story-footer-demo .cue {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* Utility */
.note {
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.pill {
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--ink-mute);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
