/* CreatorKit documentation. Same palette and typefaces as creatorkit.online. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --mist: #edf1f0; --paper: #fff; --ink: #10231f; --soft: #4a5d58; --petrol: #0e4f4a; --yellow: #f5b80c; --line: #c9d3d0;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.03rem/1.65 var(--body); }
a { color: var(--petrol); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.top { background: var(--petrol); color: #fff; }
.top-in { width: min(100% - 2.5rem, 76rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.2rem/1 var(--display); color: #fff; text-decoration: none; }
.mark small { font: 500 .95rem/1 var(--body); color: #b9d2ce; }
.top nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .96rem; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.layout { width: min(100% - 2.5rem, 76rem); margin-inline: auto; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.side { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 2rem 0 2rem; }
.side strong { display: block; font: 650 1.05rem/1.2 var(--display); margin-bottom: .9rem; }
.side a { display: block; padding: .32rem .7rem; color: var(--ink); text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.side a:hover { background: #dfe6e4; }
.side a.on { border-left-color: var(--yellow); font-weight: 600; background: #dfe6e4; }
.doc { background: var(--paper); border-inline: 1px solid var(--line); padding: 2.4rem clamp(1.2rem, 4vw, 3.4rem) 5rem; min-height: 100vh; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .4rem; }
.doc h2 { font-size: 1.6rem; margin: 2.8rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.15rem; margin: 1.7rem 0 .4rem; letter-spacing: -.01em; }
.doc p, .doc li { max-width: 74ch; }
.doc li { margin-bottom: .3rem; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--mist); border-radius: 6px; }
code { padding: .1em .35em; } pre { padding: .9rem 1rem; overflow-x: auto; line-height: 1.5; } pre code { padding: 0; background: none; }
table { border-collapse: collapse; width: 100%; margin: .9rem 0; font-size: .95rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--soft); font-size: .88rem; font-weight: 600; }
.note, .warn { padding: .85rem 1.1rem; border-radius: 8px; margin: 1rem 0; border-left: 4px solid var(--petrol); background: var(--mist); }
.warn { border-left-color: var(--yellow); background: #fdf5dc; }
.muted { color: var(--soft); }

/* list of products */
.home { width: min(100% - 2.5rem, 52rem); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5rem); }
.home h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; }
.home > p { color: var(--soft); font-size: 1.15rem; max-width: 56ch; }
.books { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; }
.books a { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: 10px; padding: 1.4rem 1.6rem; text-decoration: none; color: var(--ink); }
.books a:hover { border-color: var(--petrol); border-left-color: var(--yellow); }
.books strong { display: block; font: 650 1.5rem/1.2 var(--display); margin-bottom: .3rem; }
.books span { color: var(--soft); }
.foot { width: min(100% - 2.5rem, 76rem); margin-inline: auto; padding-block: 1.6rem 2.5rem; color: var(--soft); font-size: .92rem; }

@media (max-width: 56rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; }
  .side { position: static; max-height: none; padding: 1.2rem 1.25rem; columns: 2; }
  .side strong { column-span: all; }
  .side a { break-inside: avoid; }
  .doc { border-inline: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
