/* MilliCAD — the site as drawing sheets. Paper, ink and line work; the brand's blue for drawing, amber
   for the ruler. Front end and editor. Sections are core blocks with the class names below. */
:root {
  --paper: var(--wp--preset--color--paper, #F4F2ED);
  --paper-2: var(--wp--preset--color--paper-2, #ECE9E2);
  --ink: var(--wp--preset--color--ink, #1B1A1A);
  --ink-2: var(--wp--preset--color--ink-2, #2E2D2B);
  --muted: var(--wp--preset--color--muted, #6E6A63);
  --blue: var(--wp--preset--color--blue, #6FB2E6);
  --blue-ink: var(--wp--preset--color--blue-ink, #2D6F9F);
  --amber: var(--wp--preset--color--amber, #F2B84B);
  --line: rgba(27, 26, 26, .16);
  --line-soft: rgba(27, 26, 26, .08);
  --on-dark: #D7D2C8;
  --on-dark-muted: #A9A49B;
  --sans: var(--wp--preset--font-family--sans, "Inter Tight", system-ui, sans-serif);
  --mono: var(--wp--preset--font-family--mono, "JetBrains Mono", ui-monospace, monospace);
  --gutter: clamp(16px, 4vw, 56px);
  --rail: 56px;
  --edge: 12px;
  --bar: 72px;
  --max: 1320px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, figure, ul { margin: 0; }
em { font-style: normal; }
.wp-site-blocks { padding: 0; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.screen-reader-text:focus { background: var(--paper); }

/* ---------------------------------------------------------------- Sheets and rails */
.sheet {
  position: relative; margin: var(--edge); border: 1px solid var(--line);
  padding-left: var(--rail);
}
.sheet + .sheet { margin-top: 0; }
/* the rail's line stands without the script; site.js adds the ticks and the label */
.sheet::before { content: ""; position: absolute; left: calc(var(--rail) - 1px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.sheet-cover { min-height: calc(100svh - 2 * var(--edge)); display: flex; flex-direction: column; scroll-margin-top: var(--edge); }
.rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 24px 0; font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .12em; pointer-events: none;
}
.sheet > .bar-slot ~ .rail, .sheet-cover .rail { padding-top: calc(var(--bar) + 24px); }
.rail-label { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; position: sticky; top: 50vh; margin: 48px 0; }
/* sticky keeps the margin box inside the rail, so the label stops short of the end ticks; the cover's label stays put */
.sheet-cover .rail-label { position: static; }
.rail-tick { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }

/* ---------------------------------------------------------------- Header bar */
.bar-slot { height: var(--bar); flex: none; position: relative; z-index: 30; }
.bar {
  display: flex; align-items: center; gap: 32px; flex-wrap: nowrap;
  height: var(--bar); padding: 0 var(--gutter) 0 24px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.bar.is-fixed {
  position: fixed; top: 0; left: calc(var(--edge) + 1px + var(--rail)); right: calc(var(--edge) + 1px); z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px);
  animation: bar-drop .28s ease-out;
}
body.admin-bar .bar.is-fixed { top: var(--wp-admin--admin-bar--height, 32px); }
@keyframes bar-drop { from { transform: translateY(-100%); } }
.brand { display: flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 2; }
.brand .wp-block-image img { width: 34px; height: 34px; }
.brand .wp-block-site-title { font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.brand .wp-block-site-title a { text-decoration: none; }
.brand a:has(img) { display: block; }

/* the main menu: numbered like drawing references */
nav.nav { margin-left: auto; }
.nav .wp-block-navigation__container { gap: 28px; counter-reset: navn; }
.nav .wp-block-navigation-item { counter-increment: navn; }
.nav .wp-block-navigation-item__content {
  text-decoration: none; font-size: 14px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.2; position: relative; padding: 0;
}
.nav .wp-block-navigation-item__content::before {
  content: counter(navn, decimal-leading-zero); font: 400 10px/1 var(--mono); color: var(--muted); margin-bottom: 4px;
}
.nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--ink); transition: right .25s;
}
.nav .wp-block-navigation-item__content:hover::after,
.nav .current-menu-item > .wp-block-navigation-item__content::after { right: 0; }
.nav .nav-cta { display: none; }
.bar-cta { flex: none; }
.bar-cta .wp-block-button__link { height: 40px; font-size: 14px; }

.menu {
  display: none; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--ink); border-radius: 999px;
  background: none; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; position: relative; z-index: 2;
}
.menu-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--paper); transition: transform .25s, top .25s;
}
.menu-icon::before { top: 11px; } .menu-icon::after { top: 16px; }
.menu[aria-expanded="true"] .menu-icon::before { top: 13.5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon::after { top: 13.5px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s, color .15s;
}
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button__link:hover { background: var(--ink-2); }
.is-style-arrow .wp-block-button__link, .is-style-amber-arrow .wp-block-button__link { padding-right: 6px; }
.is-style-arrow .wp-block-button__link::after, .is-style-amber-arrow .wp-block-button__link::after {
  content: "→"; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); transition: transform .2s; font-size: 15px;
}
.bar-cta .is-style-arrow .wp-block-button__link::after { width: 30px; height: 30px; }
.is-style-arrow .wp-block-button__link:hover::after, .is-style-amber-arrow .wp-block-button__link:hover::after { transform: rotate(-45deg); }
.is-style-amber-arrow .wp-block-button__link { background: var(--amber); color: var(--ink); }
.is-style-amber-arrow .wp-block-button__link:hover { background: #F5C66C; }
.is-style-amber-arrow .wp-block-button__link::after { background: var(--ink); color: var(--amber); }
.is-style-line .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.is-style-line .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }
.is-style-line-light .wp-block-button__link { background: transparent; color: var(--paper); border: 1px solid rgba(244,242,237,.4); }
.is-style-line-light .wp-block-button__link:hover { background: transparent; border-color: var(--paper); }
.is-style-text-link .wp-block-button__link { background: none; color: inherit; height: auto; padding: 0 0 2px; border-radius: 0; border-bottom: 1px solid currentColor; }
.is-style-text-link .wp-block-button__link:hover { background: none; }

/* ---------------------------------------------------------------- Type helpers */
.eyebrow {
  font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 22px;
}
.pill { white-space: nowrap; border: 1px solid var(--blue); color: var(--blue-ink); border-radius: 999px; padding: 3px 9px; letter-spacing: .08em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 38em; }
.link a, a.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tag { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--amber); color: var(--ink); padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.fig { font: 500 11px/1.9 var(--mono); color: var(--ink); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; margin-right: 14px; }

/* ---------------------------------------------------------------- Hero (and the page heads, which share its grid) */
.hero {
  position: relative; flex: 1; display: flex; align-items: center;
  overflow: hidden; cursor: crosshair; touch-action: pan-y;
  background-color: var(--paper);
  /* the grid before the canvas draws, and without the script */
  background-image:
    linear-gradient(rgba(27,26,26,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,26,26,.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.hero.has-canvas { background-image: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding: clamp(24px, 7vh, 64px) var(--gutter) clamp(32px, 8vh, 72px); max-width: 980px; pointer-events: none; width: 100%; }
.hero-inner a, .hero-inner button { pointer-events: auto; cursor: pointer; }
.hero h1 { font-size: clamp(40px, min(7.2vw, 11vh), 108px); font-weight: 500; letter-spacing: -.055em; line-height: .94; margin-bottom: 32px; }
.hero h1 em { color: var(--blue-ink); font-weight: 300; }
.hero .lede { margin-bottom: 40px; max-width: 34em; }
.draw-band { display: none; }
.hero-hint {
  position: absolute; right: var(--gutter); top: 26px; font: 400 11px/1 var(--mono); color: var(--muted);
  display: flex; gap: 8px; align-items: center; pointer-events: none; margin: 0;
}
.key { border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; background: var(--paper); color: var(--ink); }
.coords { margin-left: 14px; color: var(--blue-ink); min-width: 15ch; }

/* an inner page's head: the same drafting grid, shorter, and no ghost pen */
.hero-page { flex: none; border-bottom: 1px solid var(--line); }
.hero-page .hero-inner { padding: clamp(56px, 10vh, 112px) var(--gutter) clamp(48px, 8vh, 96px); max-width: 1100px; }
.hero-page h1 { font-size: clamp(40px, 6.4vw, 96px); margin-bottom: 24px; }
.hero-page .lede { margin-bottom: 0; }
.hero-page .wp-block-buttons { margin-top: 32px; }

/* ---------------------------------------------------------------- Screenshots */
.is-style-shot img {
  border: 1px solid var(--ink); border-radius: 10px; background: #222; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(27,26,26,.35);
}
.is-style-shot figcaption, .is-style-shot .wp-element-caption { display: block; margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: left; }
.shot-hero { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 0; box-sizing: content-box; }

/* ---------------------------------------------------------------- Sections */
.section-head { max-width: var(--max); margin: 0 auto 64px; }
.section-head .lede { margin-top: 20px; }
.strip { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 56px var(--gutter); max-width: var(--max); margin: 0 auto; box-sizing: content-box; }
.strip-label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding-right: 28px; border-right: 1px solid var(--line); }
.formats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.formats li { font: 500 13px/1 var(--mono); border: 1px solid var(--line); padding: 9px 12px; border-radius: 6px; }

.rows { border-top: 1px solid var(--line); padding: 120px var(--gutter) 40px; }
.row {
  max-width: var(--max); margin: 0 auto 120px;
  display: grid; grid-template-columns: minmax(150px, 1.1fr) 1.2fr 1.6fr; column-gap: 40px; row-gap: 48px;
}
.num { font-size: clamp(88px, 11vw, 168px); font-weight: 600; letter-spacing: -.07em; line-height: .8; }
.row-title { border-top: 3px solid var(--ink); padding-top: 18px; }
.sub { margin-top: 10px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.row-body { border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-2); }
.row-body > p { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { padding: 9px 0 9px 26px; border-top: 1px dashed var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 1px; background: var(--blue-ink); }
.ticks li::after { content: ""; position: absolute; left: 13px; top: 13px; width: 1px; height: 9px; background: var(--blue-ink); }
.row-shot { grid-column: 2 / 4; }
.row-wide .row-shot { grid-column: 1 / 4; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > * { padding: 44px var(--gutter); border-left: 1px solid var(--line); }
.figures > *:first-child { border-left: 0; }
.fig-n { font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-bottom: 12px; }
.fig-t { font-size: 14px; color: var(--muted); }

.dark { background: var(--ink); color: var(--paper); padding: 140px var(--gutter); }
.dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.dark .eyebrow { color: var(--on-dark-muted); }
.compare { overflow-x: auto; margin-top: 0; }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 20px 16px; border: 0; border-bottom: 1px solid rgba(244,242,237,.14); text-align: center; font-weight: 400; }
.compare tbody td:first-child, .compare tbody th { text-align: left; color: var(--on-dark); font-size: 16px; }
.compare thead th, .compare thead td { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-muted); border-bottom: 1px solid rgba(244,242,237,.14); }
.compare thead th:nth-child(2) { color: var(--paper); }
.compare td { color: var(--on-dark-muted); font-size: 14px; }
.compare tbody td:nth-child(2) { color: var(--blue); font-size: 16px; }
.compare tbody tr:hover { background: rgba(244,242,237,.04); }

.split { max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; box-sizing: content-box; }
.split.is-flipped { grid-template-columns: 1fr 1.3fr; }
.split.is-flipped > :first-child { order: 2; }
.split h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 32px; }
.split .lede { margin-bottom: 28px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; }
.feature-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.feature-list li strong { font-weight: 600; }
.feature-list li span { color: var(--muted); }
.feature-list li .tag { color: var(--ink); }

.pricing { border-top: 1px solid var(--line); padding: 140px var(--gutter); }
.cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.card { padding: 40px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-height: 340px; transition: background .2s; }
.card:first-child { border-left: 0; }
.card:hover { background: var(--paper-2); }
.card p { color: var(--ink-2); }
.card .wp-block-buttons, .card > .link { margin-top: auto; }
.card-k { font: 500 11px/1 var(--mono) !important; width: max-content; border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; color: var(--muted) !important; }
.card h3 { font-size: 40px; letter-spacing: -.04em; }
.card .ticks { margin: 4px 0 0; }
.card-ink { background: var(--ink); color: var(--paper); }
.card-ink:hover { background: var(--ink-2); }
.card-ink p, .card-ink .ticks li { color: var(--on-dark); }
.card-ink .ticks li { border-color: rgba(244,242,237,.16); }
.card-ink .ticks li::before, .card-ink .ticks li::after { background: var(--blue); }
.card-ink .card-k { border-color: rgba(244,242,237,.25); color: var(--on-dark-muted) !important; }

.faq { border-top: 1px solid var(--line); padding: 140px var(--gutter); display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq > * { min-width: 0; }
.faq .section-head { margin: 0; }
.faq-list .wp-block-details { border-top: 1px solid var(--line); margin: 0; }
.faq-list .wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 20px; font-weight: 500; letter-spacing: -.015em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 300 26px/1 var(--sans); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > :not(summary) { padding: 0 40px 26px 0; color: var(--ink-2); }

.cta { position: relative; background: var(--ink); color: var(--paper); padding: 140px var(--gutter) 120px; overflow: hidden; }
.cta > * { max-width: var(--max); margin-left: auto !important; margin-right: auto !important; }
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background-color: var(--amber);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 16px, 100% 8px; background-repeat: no-repeat;
}
.cta h2 { font-size: clamp(40px, 6vw, 88px); margin-bottom: 24px; }
.cta h2, .cta .lede { max-width: var(--max); }
.cta h2 { padding-right: 20%; }
.cta .lede { color: var(--on-dark); margin-bottom: 40px; }
.cta .eyebrow { color: var(--on-dark-muted); }

/* the roadmap: four stages left to right; the shipped one in ink, the far one dashed */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stage { padding: 36px 28px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; position: relative; }
.stage:first-child { border-left: 0; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--blue-ink); }
.stage-later::before { background: repeating-linear-gradient(90deg, var(--muted) 0 8px, transparent 8px 14px); }
.stage-status { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; width: max-content; border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; color: var(--muted); }
.stage h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.035em; }
.stage-promise { color: var(--muted); margin-bottom: 8px; }
.stage .ticks { margin: 0; }
.stage .ticks li { font-size: 14.5px; }
.stage-now { background: var(--ink); color: var(--paper); }
.stage-now::before { background: var(--amber); }
.stage-now .stage-status { border-color: var(--amber); color: var(--amber); }
.stage-now .stage-promise, .stage-now .ticks li { color: var(--on-dark); }
.stage-now .ticks li { border-color: rgba(244,242,237,.16); }
.stage-now .ticks li::before, .stage-now .ticks li::after { background: var(--amber); }

/* plain sections for inner pages */
.band { border-top: 1px solid var(--line); padding: 120px var(--gutter); }
.band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band-tight { padding-top: 88px; padding-bottom: 88px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.cols-3 > * { padding: 32px 32px 32px 0; }
.cols-3 > * + * { padding-left: 32px; border-left: 1px solid var(--line); }
.cols-3 h3 { margin-bottom: 12px; font-size: 22px; }
.cols-3 p { color: var(--ink-2); font-size: 15px; }
.step-n { font: 500 11px/1 var(--mono); color: var(--blue-ink); margin-bottom: 18px; letter-spacing: .1em; }

/* forms: a form sits in a framed panel */
.form-panel { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); background: var(--paper); padding: 40px; position: relative; }
.form-label { position: absolute; top: -9px; left: 24px; background: var(--paper); padding: 0 8px; font: 500 10px/18px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.form-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.form-split > * { min-width: 0; }
.form-split .form-panel { max-width: none; margin: 0; }
.form-split h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 24px; overflow-wrap: anywhere; }
.form-split h2 a { text-decoration: none; }
.form-split h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.form-split .lede { margin-bottom: 24px; }
.form-note p { font-size: 14px; color: var(--muted); }
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.fluentform .ff-el-form-control {
  background: #FBFAF7; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
}
.fluentform .ff-el-form-control:focus { border-color: var(--ink); box-shadow: none; outline: none; }
.fluentform .ff-btn-submit, .fluentform .ff-btn.ff-btn-submit {
  background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; border-radius: 999px !important;
  height: 46px; padding: 0 24px !important; font: 500 15px/1 var(--sans) !important;
}
.fluentform .ff-btn-submit:hover { background: var(--ink-2) !important; }
.fluentform .ff-el-form-check label { font-size: 15px; }
.ff-message-success { border: 1px solid var(--blue); background: #EEF5FB; border-radius: 8px; padding: 18px; }

/* prose: the privacy page and news posts */
.prose { max-width: 760px; margin: 0 auto; padding: 88px var(--gutter) 120px; box-sizing: content-box; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; letter-spacing: -.025em; margin-top: 2em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue-ink); }
.prose .wp-block-image img { border-radius: 8px; }

/* news */
.news-list { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 120px; box-sizing: content-box; }
.news-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.news-list .wp-block-post { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.news-list .wp-block-post:last-child { border-bottom: 1px solid var(--line); }
.news-list .wp-block-post-date { font: 500 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.news-list .wp-block-post-title { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; margin-bottom: 10px; }
.news-list .wp-block-post-title a { text-decoration: none; }
.news-list .wp-block-post-title a:hover { text-decoration: underline; }
.news-list .wp-block-post-excerpt { color: var(--ink-2); }
.news-list .wp-block-post-excerpt__more-text { margin-top: 10px; }
.news-list .wp-block-query-pagination { margin-top: 40px; gap: 16px; font: 500 13px/1 var(--mono); }
.post-meta { font: 500 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }

/* ---------------------------------------------------------------- Footer */
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 72px var(--gutter) 32px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-brand .wp-block-image img { width: 28px; height: 28px; }
.foot-brand .wp-block-site-title { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.foot-brand .wp-block-site-title a { text-decoration: none; }
.foot-brand > p:last-child { flex-basis: 100%; font-size: 14px; color: var(--muted); max-width: 26em; margin-top: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col a { text-decoration: none; color: var(--ink-2); }
.foot-col a:hover { text-decoration: underline; }
.foot h4, .foot-col > h2 { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.foot-line { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--muted); }
.foot-line .mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- Tablets and phones */
@media (max-width: 1000px) {
  .menu { display: inline-flex; margin-left: auto; }
  .js .bar-cta { margin-left: 0; }
  .js nav.nav {
    position: fixed; inset: var(--edge); z-index: 1; margin: 0; padding: calc(var(--bar) + 32px) 24px 32px;
    display: flex; flex-direction: column; border: 1px solid var(--line);
    background-color: var(--paper);
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .js nav.nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .nav .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .js .nav .wp-block-navigation-item__content {
    flex-direction: row; align-items: baseline; gap: 16px; font-size: clamp(30px, 8vw, 44px); letter-spacing: -.03em;
    padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--paper); width: 100%; box-sizing: border-box;
  }
  .js .nav .wp-block-navigation-item__content::before { font-size: 11px; margin: 0; width: 22px; flex: none; }
  .js .nav .wp-block-navigation-item__content::after { display: none; }
  .js .nav .nav-cta { display: block; margin-top: auto; }
  .js .nav .nav-cta .wp-block-navigation-item__content { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 18px 24px; font-size: 20px; margin-top: 32px; }
  .js .nav .nav-cta .wp-block-navigation-item__content::before { color: var(--on-dark-muted); }
  body.menu-open { overflow: hidden; }
  .row { grid-template-columns: 1fr; row-gap: 24px; margin-bottom: 88px; }
  .row-shot, .row-wide .row-shot { grid-column: auto; }
  .num { font-size: 88px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > *:nth-child(3) { border-left: 0; }
  .figures > *:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split.is-flipped, .faq, .form-split { grid-template-columns: 1fr; }
  .split.is-flipped > :first-child { order: 0; }
  .cards, .cols-3 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .stage:nth-child(3) { border-left: 0; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols-3 > *, .cols-3 > * + * { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .cols-3 > *:first-child { border-top: 0; }
  .card { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .card:first-child { border-top: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .news-list .wp-block-post { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  :root { --rail: 0px; --edge: 8px; --gutter: 20px; --bar: 60px; }
  .sheet::before, .rail { display: none; }
  .bar { padding: 0 10px 0 16px; gap: 12px; }
  .brand .wp-block-site-title { font-size: 17px; }
  .brand .wp-block-image img { width: 28px; height: 28px; }
  .bar .bar-cta { display: none; }
  /* the ghost pen draws in a band between the headline and the lede (hero.js measures .draw-band) */
  .hero { align-items: flex-start; }
  .hero-inner { padding: 36px var(--gutter) 40px; }
  .hero:not(.hero-page) h1 { font-size: clamp(30px, 8.8vw, 40px); line-height: .98; margin-bottom: 0; }
  .hero:not(.hero-page) .draw-band { display: block; position: relative; height: clamp(170px, 28svh, 250px); margin-bottom: 20px; }
  .draw-band p {
    position: absolute; left: 0; bottom: 0; font: 500 11px/1 var(--mono); text-transform: uppercase;
    letter-spacing: .12em; color: var(--blue-ink);
  }
  .draw-band p::before { content: "+ "; }
  .hero .lede { font-size: 16px; margin-bottom: 28px; }
  .hero-page .hero-inner { padding: 48px var(--gutter) 48px; }
  .hero-page h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero .wp-block-buttons .wp-block-button { width: 100%; }
  /* full-width buttons; both labels start at the same left edge as the text above */
  .hero .wp-block-button__link { width: 100%; justify-content: space-between; padding-left: 24px; }
  .hero .is-style-line .wp-block-button__link { padding-left: 23px; } /* less its 1px border */
  .hero-hint { display: none; }
  .shot-hero { padding-top: 48px; }
  .is-style-shot img { border-radius: 6px; }
  .strip { gap: 16px; padding: 40px var(--gutter); }
  .strip-label { border: 0; padding: 0; }
  .formats li { font-size: 12px; padding: 8px 10px; }
  .num { font-size: 72px; }
  .feature-list li { grid-template-columns: 1fr; gap: 4px; }
  .figures > * { padding: 28px 20px; }
  .fig-n { font-size: 34px; }
  .dark, .split, .pricing, .faq, .rows, .cta, .band { padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 40px; }
  .card { padding: 32px 24px; }
  .roadmap { grid-template-columns: 1fr; }
  .stage { border-left: 0; padding: 32px 24px 28px; }
  .stage:nth-child(n+2) { border-top: 1px solid var(--line); }
  .faq-list summary { font-size: 18px; }
  .cta h2 { padding-right: 0; }
  .form-panel { padding: 28px 20px; }
  .prose { padding-top: 56px; padding-bottom: 80px; }
  .foot { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .foot-line { flex-direction: column; }
  /* the comparison as one card per row: the feature, then the three answers labelled */
  .compare table, .compare tbody, .compare tr { display: block; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(244,242,237,.14); padding: 16px 0; }
  .compare tbody td:first-child { grid-column: 1 / -1; padding: 0 0 12px; border: 0; }
  .compare td { border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
  .compare tbody td:not(:first-child)::before { font: 500 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #8A857C; }
  .compare tbody td:nth-child(2)::before { content: "MilliCAD"; color: var(--blue); }
  .compare tbody td:nth-child(3)::before { content: "Enterprise BIM"; }
  .compare tbody td:nth-child(4)::before { content: "2D CAD"; }
}
@media (hover: none) {
  .hero-hint { display: none; }
  /* a long press draws: no text selection or callout menu on the grid */
  .hero { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- Editor */
.editor-styles-wrapper .hero { min-height: 520px; }
.editor-styles-wrapper .hero-inner { pointer-events: auto; }
.editor-styles-wrapper .draw-band { display: block; height: 24px; opacity: .6; }
