/* fractal.macleodlabs.com. The work board's palette: warm neutrals, one clay accent, serif headings, sans body. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#faf9f5, #1f1e1d);
  --card: light-dark(#ffffff, #262624);
  --raised: light-dark(#f0eee6, #30302e);
  --line: light-dark(#e3e1d8, #3e3d39);
  --text: light-dark(#141413, #f5f4ee);
  --text-dim: light-dark(#6b6a64, #a6a39a);
  --accent: light-dark(#c96442, #d97757);
  --on-accent: light-dark(#ffffff, #1f1e1d);
  --ok: light-dark(#2f7d4f, #6fbf8b);
  --font-ui: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgb(20 20 19 / 6%), 0 8px 28px light-dark(rgb(20 20 19 / 10%), rgb(0 0 0 / 40%));
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
code { font-family: var(--font-mono); font-size: .9em; }
.dim { color: var(--text-dim); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 66ch; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 21px var(--font-serif); }
.nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--text-dim); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 48px 0 32px; }
.hero .lede { font-size: 18px; color: var(--text-dim); max-width: 62ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.quiet { border-color: var(--line); color: var(--text); }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.shot figcaption { padding: 10px 14px; font-size: 14px; color: var(--text-dim); border-top: 1px solid var(--line); }

/* sections */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card p:last-child { margin-bottom: 0; }

/* the hosted engine: two columns, ours and yours */
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.split h3 { font-family: var(--font-ui); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.split ul { margin: 0; padding-left: 18px; }
.split li { margin-bottom: 6px; }

/* pricing */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 500 48px/1 var(--font-serif); }
.plan { max-width: 560px; }
.plan ul { padding-left: 18px; margin: 12px 0 16px; }

/* install */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; }
.steps > li::before { content: counter(step); grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-weight: 600; font-size: 14px; }
.steps > li > * { grid-column: 2; min-width: 0; }
.hosts { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 720px) { .hosts { grid-template-columns: 1fr 1fr; } }
.host { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.host b { display: block; margin-bottom: 6px; }
.cmd { display: flex; align-items: flex-start; gap: 8px; background: var(--raised); border-radius: var(--r-sm); padding: 8px 10px; }
.cmd code { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: var(--r-sm); font: inherit; font-size: 13px; padding: 2px 8px; cursor: pointer; }
.copy::after { content: "Copy"; }
.copy.done::after { content: "Copied"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* documents: privacy, terms */
.doc { padding: 40px 0 56px; }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc ul { padding-left: 20px; }
.draft { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0 10px; margin-bottom: 12px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--text-dim); }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--text-dim); }
