/* Incus Software: the studio. A drawing sheet, not a product page:
   limestone paper, graphite ink, one red pencil. IBM Plex, the family the
   Incus app and the Forge website use, so the studio and its products read
   as one hand. Self-hosted: no font CDN, no outside requests. */
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/IBMPlexSans-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/IBMPlexSans-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/IBMPlexSans-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/IBMPlexMono-Medium.woff2') format('woff2');font-weight:500;font-display:swap}

:root{
  --paper:#F3F0E8;
  --paper-2:#EAE6DB;
  --sheet:#FBFAF6;
  --line:#D6D0C2;
  --line-strong:#B9B1A0;
  --grid:rgba(28,29,31,.045);

  --ink:#1C1D1F;
  --ink-soft:#4C4D4F;
  --ink-faint:#77746C;

  --pencil:#C2412A;      /* the red pencil: links, the one call to action */
  --pencil-deep:#9E3220;

  /* the products' own colors, used only on their cards */
  --incus:#0A1A2B;
  --incus-blue:#5FA9E4;
  --markset:#0B5BD3;
  --foreman:#6A5A2E;

  --mono:'IBM Plex Mono',ui-monospace,monospace;
  --sans:'IBM Plex Sans',system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box}
html{background:var(--paper)}
body{
  margin:0;color:var(--ink);font-family:var(--sans);
  font-size:17px;line-height:1.62;-webkit-font-smoothing:antialiased;
  background:
    linear-gradient(var(--grid) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/24px 24px,
    var(--paper);
}
h1,h2,h3{margin:0;font-weight:300;line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
h3{font-weight:500;letter-spacing:-.01em}
p{margin:0}
a{color:var(--pencil);text-underline-offset:3px}
a:hover{color:var(--pencil-deep)}
:focus-visible{outline:2px solid var(--pencil);outline-offset:3px}
img{max-width:100%}

.wrap{max-width:1080px;margin:0 auto;padding:0 28px}
.label{
  font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-faint);
}
/* a dimension line: |———— LABEL ————| */
.dim{display:flex;align-items:center;gap:12px;color:var(--ink-faint)}
.dim::before,.dim::after{content:"";flex:1;height:1px;background:var(--line-strong)}
.dim::before{border-left:1px solid var(--line-strong);height:9px;background:linear-gradient(var(--line-strong),var(--line-strong)) center/100% 1px no-repeat}
.dim::after{border-right:1px solid var(--line-strong);height:9px;background:linear-gradient(var(--line-strong),var(--line-strong)) center/100% 1px no-repeat}

/* ---------- top bar ---------- */
.top{border-bottom:1px solid var(--line);background:rgba(243,240,232,.92);position:sticky;top:0;z-index:5;backdrop-filter:blur(6px)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;height:66px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}
.brand svg{width:22px;height:22px;flex:none}
.brand b{font-weight:600;font-size:17px;letter-spacing:-.01em}
.brand span{font-weight:400;color:var(--ink-soft)}
.nav{display:flex;gap:24px;align-items:center}
.nav a{color:var(--ink-soft);text-decoration:none;font-size:15px}
.nav a:hover,.nav a[aria-current=page]{color:var(--ink)}
.nav a[aria-current=page]{box-shadow:inset 0 -2px 0 var(--pencil)}
@media (max-width:640px){
  .top .wrap{height:auto;padding-top:14px;padding-bottom:12px;flex-wrap:wrap;gap:8px 20px}
  .nav{gap:18px;flex-wrap:wrap}
}

/* ---------- hero ---------- */
.hero{padding:96px 0 84px;border-bottom:1px solid var(--line)}
.hero h1{font-size:clamp(44px,7.4vw,86px);max-width:15ch}
.hero h1 em{font-style:normal;color:var(--pencil)}
.hero .lede{margin-top:28px;font-size:clamp(19px,2.2vw,22px);color:var(--ink-soft);max-width:54ch}
.hero .actions{margin-top:36px;display:flex;gap:14px;flex-wrap:wrap}
.hero.small{padding:72px 0 60px}
.hero.small h1{font-size:clamp(38px,6vw,64px)}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--sans);font-weight:600;font-size:16px;text-decoration:none;
  padding:13px 22px;border-radius:6px;border:1px solid var(--ink);
  background:var(--ink);color:var(--sheet);cursor:pointer;
  transition:background 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out;
}
.btn:hover{background:var(--pencil);border-color:var(--pencil);color:#fff}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn.ghost:hover{border-color:var(--ink);background:transparent;color:var(--ink)}
.btn[disabled]{opacity:.55;cursor:default}

/* ---------- sections ---------- */
section{padding:84px 0;border-bottom:1px solid var(--line);scroll-margin-top:66px}
.head{display:flex;flex-direction:column;gap:14px;margin-bottom:44px;max-width:64ch}
.head h2{font-size:clamp(30px,4.2vw,46px)}
.head p{color:var(--ink-soft);font-size:18px}

/* a sheet: the card, with a title block along the bottom */
.sheet{
  background:var(--sheet);border:1px solid var(--line-strong);border-radius:4px;
  display:flex;flex-direction:column;
}
.sheet .body{padding:28px 26px;display:flex;flex-direction:column;gap:14px;flex:1}
.sheet h3{font-size:24px}
.sheet p{color:var(--ink-soft);font-size:16px}
.sheet .tb{
  display:grid;grid-template-columns:1fr auto;border-top:1px solid var(--line-strong);
  font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;
}
.sheet .tb > *{padding:11px 16px;color:var(--ink-faint)}
.sheet .tb > * + *{border-left:1px solid var(--line-strong)}
.sheet .tb a{color:var(--ink);text-decoration:none;font-weight:500}
.sheet .tb a:hover{color:var(--pencil)}

/* product cards */
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.chip{display:flex;align-items:center;gap:12px}
.chip .ic{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;flex:none}
.chip .ic svg{width:24px;height:24px}
.status{
  font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  padding:4px 9px;border-radius:999px;border:1px solid var(--line-strong);color:var(--ink-soft);
}
.status.live{border-color:var(--ink);color:var(--ink)}
.products .who{font-family:var(--mono);font-size:12.5px;color:var(--ink-faint)}

/* principles: three numbered notes, like general notes on a sheet */
.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;counter-reset:n}
.notes > div{counter-increment:n;border-top:1px solid var(--ink);padding-top:18px}
.notes > div::before{content:counter(n,decimal-leading-zero);font-family:var(--mono);font-size:12px;color:var(--pencil);letter-spacing:.1em}
.notes h3{margin-top:8px;font-size:20px}
.notes p{margin-top:8px;color:var(--ink-soft);font-size:16px}

/* founder story */
.story{display:grid;grid-template-columns:.9fr 1.1fr;gap:56px;align-items:start}
.story .quote{font-size:clamp(24px,3.2vw,34px);font-weight:300;line-height:1.24;letter-spacing:-.015em}
.story .quote em{font-style:normal;color:var(--pencil)}
.story .text p + p{margin-top:1em}
.story .text p{color:var(--ink-soft)}
.story .text b{color:var(--ink);font-weight:600}

/* feature list */
.list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:0 40px}
.list li{padding:16px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.list li b{font-weight:600}
.list li span{color:var(--ink-soft);font-size:16px}
.list li .label{color:var(--pencil)}

/* price */
.buy{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}
.price{font-family:var(--mono);font-size:52px;font-weight:500;letter-spacing:-.03em;line-height:1}
.price small{font-size:15px;color:var(--ink-faint);letter-spacing:0;font-weight:400}
.fine{font-size:14.5px;color:var(--ink-faint)}
.notice{
  margin-top:4px;padding:14px 16px;border-left:3px solid var(--pencil);background:var(--paper-2);
  font-size:15px;color:var(--ink-soft);display:none;
}
.notice.show{display:block}

/* forms */
.form{display:flex;gap:10px;max-width:520px;margin-top:8px}
.form input{
  flex:1;min-width:0;font:inherit;font-size:16.5px;padding:13px 15px;border-radius:6px;
  border:1px solid var(--line-strong);background:var(--sheet);color:var(--ink);
}
.form input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(194,65,42,.18)}

/* prose pages: about, support, legal */
.prose{max-width:68ch}
.prose h2{font-size:28px;margin:48px 0 14px}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{color:var(--ink-soft)}
.prose p + p{margin-top:1em}
.prose ul{padding-left:20px}
.prose li + li{margin-top:6px}
.draft{
  font-family:var(--mono);font-size:12.5px;letter-spacing:.06em;
  padding:12px 16px;border:1px dashed var(--pencil);color:var(--pencil-deep);
  background:var(--sheet);margin-bottom:36px;border-radius:4px;
}

/* ---------- footer: a title block ---------- */
footer{padding:48px 0 64px}
.titleblock{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;border:1px solid var(--ink);
  background:var(--sheet);font-size:14.5px;
}
.titleblock > div{padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.titleblock > div + div{border-left:1px solid var(--ink)}
.titleblock .label{font-size:10.5px}
.titleblock a{color:var(--ink);text-decoration:none}
.titleblock a:hover{color:var(--pencil)}
.titleblock .name{font-weight:600;font-size:16px}
.titleblock .muted{color:var(--ink-faint)}

@media (max-width:880px){
  .products,.notes,.story,.buy,.list{grid-template-columns:1fr}
  .story{gap:28px}
  .titleblock{grid-template-columns:1fr 1fr}
  .titleblock > div:nth-child(3){border-left:0}
  .titleblock > div:nth-child(n+3){border-top:1px solid var(--ink)}
  .hero{padding:64px 0 60px}
  section{padding:64px 0}
}
@media (max-width:520px){
  .wrap{padding:0 16px}
  .titleblock{grid-template-columns:1fr}
  .titleblock > div + div{border-left:0;border-top:1px solid var(--ink)}
  .form{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
