/* guides.inktree.ai, styled as part of inktree.ai. Tokens, fonts and signature moves come from the InkTree brand kit
   (~/inktree-brand/README.md): white page, Nanum Myeongjo headlines with tight tracking, Rethink Sans in soft grey,
   one violet accent, a floating white pill nav, white cards, a warm cream band. Light only, like inktree.ai. */
:root {
  --ink: #0C0C0C;
  --text: #262626;
  --text-soft: #4C4C4C;
  --quiet: #5E5E5E;
  --violet: #923CF6;
  --violet-deep: #7A2ED4;
  --violet-tint: #F3E8FF;
  --violet-wash: #FAF5FF;
  --hair: #DDE5ED;
  --page: #FFFFFF;
  --cream: #F7F3EE;
  --cool: #F4F7F9;
  --sans: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Nanum Myeongjo", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --gutter: 16px;
  --column: 600px;
  --radius: 18px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text-soft);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
strong, b { color: var(--text); font-weight: 600; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* the one accent word: violet italic serif with a hand-drawn underline */
.nobr { white-space: nowrap; }
.accent { position: relative; display: inline-block; font-style: italic; color: var(--violet); padding-right: .04em; }
.accent .scribble { position: absolute; left: -2%; width: 104%; bottom: -0.12em; height: .3em; color: var(--violet); pointer-events: none; }
.sparkle { display: inline-block; width: .7em; height: .7em; color: var(--violet); vertical-align: .05em; margin-right: .2em; }

/* buttons: the violet "Try Now" pill */
.btn, .try {
  display: inline-flex; align-items: center; justify-content: center; background: var(--violet); color: #fff;
  border-radius: 999px; font-family: var(--sans); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn { padding: 12px 24px; font-size: 1rem; }
.btn:hover, .try:hover { background: var(--violet-deep); color: #fff; }
.btn:focus-visible, .try:focus-visible { outline-offset: 3px; border-radius: 999px; }
.nocard { font-size: 0.8125rem; color: var(--quiet); margin: 10px 0 0; }

/* floating pill nav */
.top { padding: 20px var(--gutter) 0; position: relative; z-index: 2; }
.pill {
  max-width: 62.5rem; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 8px 8px 8px 20px;
}
.brand { display: inline-flex; align-items: center; padding: 6px 4px; flex: none; }
.brand img { width: 26px; height: 26px; }
.links { display: flex; gap: 4px; margin-left: clamp(8px, 5vw, 64px); margin-right: auto; }
.links a { color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.links a:hover { color: var(--ink); background: var(--cool); }
.links a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 6px; }
.try { padding: 9px 16px; font-size: 0.9375rem; }
@media (max-width: 420px) {
  .pill { padding-left: 14px; gap: 2px; }
  .links { margin-left: 4px; }
  .links a { padding: 8px 8px; font-size: 0.875rem; }
  .try { padding: 8px 13px; font-size: 0.875rem; }
}

/* home hero */
.hero-one { text-align: center; padding-top: 88px; padding-bottom: 96px; }
.kicker { margin: 0 0 18px; font-size: 0.875rem; color: var(--text); display: inline-block; border: 1px solid var(--hair); border-radius: 999px; padding: 4px 14px; }
.hero-one h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.12; letter-spacing: -0.05em; margin: 0 auto 24px; max-width: 15ch; }
.hero-one .lede { font-size: 1.125rem; color: var(--text-soft); max-width: 34rem; margin: 0 auto 30px; }
.hero-actions { margin: 0; }

/* sections */
.cream { background: var(--cream); }
.section { padding-top: 80px; padding-bottom: 88px; }
.section-head { text-align: center; margin: 0 auto 40px; max-width: 36rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 10px; }
.section-head p { margin: 0; color: var(--text-soft); }
.more-guides { text-align: center; margin: 32px 0 0; font-weight: 500; }

/* white cards, inktree.ai style: hairline, icon tile top left, violet title in the sans, grey description */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 20px; max-width: 62.5rem; margin: 0 auto; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: var(--radius);
  border: 1px solid #EEF1F4; padding: 22px 24px 24px; text-decoration: none; color: var(--text-soft);
  box-shadow: 0 1px 2px rgba(12, 12, 12, .03);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 28px -18px rgba(12, 12, 12, .25); transform: translateY(-1px); color: var(--text-soft); }
.tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--hair); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 12, 12, .06); flex: none; }
.tile img { width: 22px; height: 22px; }
.card img { width: 96px; border-radius: 12px; }
.card h2 { font-family: var(--sans); color: var(--violet); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin: 20px 0 6px; }
.card p { font-size: 0.9375rem; margin: 0 0 14px; }
.card .more { margin-top: auto; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.card:hover .more { color: var(--violet-deep); }
.empty { grid-column: 1 / -1; background: #fff; border: 1px solid #EEF1F4; border-radius: var(--radius); padding: 28px; max-width: 40rem; margin: 0 auto; text-align: center; }
.empty h2 { font-size: 1.625rem; margin: 0 0 10px; }
.empty p { margin: 0; }
.cards:empty { display: none; }

/* about InkTree (home) and the closing call to action (every page) */
.about, .cta-band { padding: 88px 0 96px; }
.about-in, .cta-in { text-align: center; max-width: 40rem; }
.about-in h2, .cta-in h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -0.04em; margin: 0 0 16px; }
.about-in p, .cta-in p { margin: 0 auto 26px; max-width: 34rem; }
.about-in .nocard, .cta-in .nocard { margin: 10px 0 0; }
.cta-in img { width: 160px; margin: 0 auto 20px; border-radius: 18px; }

/* landing pages and guides: centred ~600px column, big serif title, grey sans body */
.page-hero { padding: 72px 0 8px; text-align: center; }
.hero-row { max-width: calc(var(--column) + 2 * var(--gutter) + 120px); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.05em; margin: 0 auto 18px; max-width: 12em; }
.page-hero .lede { font-size: 1.125rem; max-width: 34rem; margin: 0 auto 18px; }
.page-hero .btn { margin-bottom: 8px; }
.eyebrow { font-size: 0.875rem; margin: 0 0 18px; }
.eyebrow a { color: var(--text); text-decoration: none; display: inline-block; border: 1px solid var(--hair); border-radius: 999px; padding: 4px 14px; }
.eyebrow a:hover { color: var(--violet-deep); border-color: var(--violet); }
.byline { font-size: 0.875rem; color: var(--quiet); margin: 0 0 8px; }
.hero-art { width: min(260px, 70%); margin: 24px auto 0; border-radius: 22px; }
.list-hero { padding-bottom: 56px; }
.list-hero + .cream { padding: 64px 0 88px; }

.prose { max-width: calc(var(--column) + 2 * var(--gutter)); padding-top: 36px; padding-bottom: 40px; font-size: 1.125rem; line-height: 1.7; }
.prose p, .prose li { color: var(--text-soft); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.875rem, 4.2vw, 2.625rem); line-height: 1.12; letter-spacing: -0.045em; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.02em; margin: 1.6em 0 .45em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: #9A9A9A; }
.prose a { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; margin: 1.4em 0; display: block; overflow-x: auto; border: 1px solid var(--hair); border-radius: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; min-width: 9rem; }
.prose thead th { background: var(--cool); color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 44px; position: relative; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: .35em; width: 26px; height: 19px; background: var(--violet); -webkit-mask: url(/quote-mark.svg) no-repeat center / contain; mask: url(/quote-mark.svg) no-repeat center / contain; }
.prose blockquote p { color: inherit; }
.prose code { background: var(--cool); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em 0; }
.legal > p:first-child { font-size: 1rem; }

.inline-cta { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px 22px; margin: 2.2em 0; box-shadow: 0 10px 30px -24px rgba(12, 12, 12, .3); }
.inline-cta img { width: 84px; flex: none; border-radius: 12px; }
.inline-cta .tile img { width: 22px; border-radius: 0; }
.inline-cta p { margin: 0 0 14px; font-size: 1rem; }
.inline-cta b { color: var(--violet); font-weight: 500; }
@media (max-width: 520px) { .inline-cta { flex-direction: column; } }

/* footer: quiet, hairline, small grey links */
.foot { border-top: 1px solid var(--hair); padding-top: 32px; padding-bottom: 36px; color: var(--quiet); font-size: 0.875rem; }
.foot > .wrap:first-child { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.foot-brand img { width: 22px; height: 22px; }
.foot-brand:hover { color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot a:not(.foot-brand) { color: var(--quiet); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot a:not(.foot-brand):hover { color: var(--violet-deep); text-decoration: underline; }
.foot-more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.foot-more h2 { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0; margin: 0; color: var(--text); font-weight: 600; }
.fine { font-size: 0.8125rem; margin-top: 18px; margin-bottom: 0; }

/* 404 */
.doc { max-width: 44rem; }
.notfound { padding-top: 80px; padding-bottom: 112px; max-width: 34rem; margin: 0 auto; text-align: center; }
.notfound h1 { font-size: clamp(2.25rem, 5vw, 3rem); letter-spacing: -0.04em; margin: 0 0 14px; }

@media (max-width: 640px) {
  .hero-one { padding-top: 56px; padding-bottom: 64px; }
  .section { padding-top: 56px; padding-bottom: 64px; }
  .about, .cta-band { padding: 64px 0 72px; }
  .page-hero { padding-top: 48px; }
  .prose { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
